Chat with xAI's Grok models from Clawdbot. Supports text chat, vision, and all Grok models including Grok-4.
clawdhub install xai
# or
cd ~/clawd/skills && git clone https://github.com/mvanhorn/clawdbot-skill-xai xaiGet your API key from console.x.ai, then:
clawdbot config set skills.entries.xai.apiKey "xai-YOUR-KEY"Or set environment variable:
export XAI_API_KEY="xai-YOUR-KEY"node scripts/chat.js "What is the meaning of life?"node scripts/chat.js --model grok-4-0709 "Complex question here"
node scripts/chat.js --model grok-3-mini "Quick question"node scripts/chat.js --image photo.jpg "What's in this image?"node scripts/chat.js --system "You are a pirate" "Tell me about ships"node scripts/models.jsgrok-3- Capable general modelgrok-3-mini- Fast and efficientgrok-4-0709- Latest Grok 4grok-4-fast-reasoning- Fast with reasoninggrok-2-vision-1212- Image understandinggrok-2-image-1212- Image generation
Once installed, you can just say:
- "Ask Grok about [topic]"
- "Use Grok to analyze this image"
- "Have Grok 4 explain [concept]"
MIT