Awesome-openclaw-skills xai
Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.
install
source · Clone the upstream repo
git clone https://github.com/sundial-org/awesome-openclaw-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/xai" ~/.claude/skills/sundial-org-awesome-openclaw-skills-xai && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/xai" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-xai && rm -rf "$T"
manifest:
skills/xai/SKILL.mdsource content
xAI / Grok
Chat with xAI's Grok models. Supports text and vision.
Setup
Set your API key in the skill config:
# Via clawdbot config clawdbot config set skills.entries.xai.apiKey "xai-YOUR-KEY" # Or environment variable export XAI_API_KEY="xai-YOUR-KEY"
Get your API key at: https://console.x.ai
Commands
Chat with Grok
node {baseDir}/scripts/chat.js "What is the meaning of life?"
Use a specific model
node {baseDir}/scripts/chat.js --model grok-3-mini "Quick question: 2+2?"
Vision (analyze images)
node {baseDir}/scripts/chat.js --image /path/to/image.jpg "What's in this image?"
🔍 Search X/Twitter (Real-time!)
node {baseDir}/scripts/search-x.js "Remotion video framework" node {baseDir}/scripts/search-x.js --days 7 "Claude AI tips" node {baseDir}/scripts/search-x.js --handles @remotion_dev "updates"
Uses xAI Responses API with x_search tool for real X posts with citations.
List available models
node {baseDir}/scripts/models.js
Available Models
- Most capable, best for complex tasksgrok-3
- Fast and efficientgrok-3-mini
- Optimized for speedgrok-3-fast
- Vision model for image understandinggrok-2-vision-1212
Example Usage
User: "Ask Grok what it thinks about AI safety" Action: Run chat.js with the prompt
User: "Use Grok to analyze this image" (with attached image) Action: Run chat.js with --image flag
User: "What Grok models are available?" Action: Run models.js
API Reference
xAI API Docs: https://docs.x.ai/api
Environment Variables
- Your xAI API key (required)XAI_API_KEY
- Default model (optional, defaults to grok-3)XAI_MODEL