xAI / Grok
Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.
blueberrywoodsym
@blueberrywoodsym
What This Skill Does
Command-line tool to chat with xAI's Grok models (Grok-3, Grok-3-mini, vision) via the xAI API. Supports text prompts, image analysis, and real-time X/Twitter search with citations. Requires an XAI_API_KEY.
Replaces manually querying the xAI API or using separate tools for Grok chat, vision analysis, and X/Twitter search by providing a unified CLI interface.
When to Use It
- Ask Grok-3 a complex question or get its opinion on a topic
- Analyze an image by sending it to Grok's vision model
- Search X/Twitter for recent posts about a specific topic or handle
- List available Grok models to see which one to use
- Get a quick answer from Grok-3-mini for a simple query
Install
$ openclaw skills install @blueberrywoodsym/x-aixAI / Grok
Chat with xAI's Grok models. Supports text and vision.
Setup
INSTALLATION AND USE INSTRUCTIONS
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
grok-3- Most capable, best for complex tasksgrok-3-mini- Fast and efficientgrok-3-fast- Optimized for speedgrok-2-vision-1212- Vision model for image understanding
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
XAI_API_KEY- Your xAI API key (required)XAI_MODEL- Default model (optional, defaults to grok-3)
Security & Permissions
What this skill does:
- Sends chat prompts to xAI's API at
api.x.ai - Vision mode sends images to xAI for analysis
scripts/models.jslists available models (read-only)
What this skill does NOT do:
- Does not read arbitrary local files —
--imageonly accepts files with image extensions (.jpg,.jpeg,.png,.gif,.webp) - Does not read config files or access the filesystem beyond the specified image path
- Does not store conversation history or logs
- Does not send credentials to any endpoint other than
api.x.ai - Cannot be invoked autonomously by the agent (
disable-model-invocation: true)
Bundled scripts: scripts/chat.js (chat), scripts/models.js (list models), scripts/search-x.js (X search)
Review scripts before first use to verify behavior.
Top skills in this category
ATXP
@emilioaccAccess ATXP paid API tools for web search, AI image generation, music creation, video generation, X/Twitter search, email, and agent account management. Use...
Openai Whisper Api
@steipeteTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
Wechat Article Search
@wuchubuzai2018搜索微信公众号文章技能。通过微信搜索获取文章列表,覆盖科技/AI、社会热点、财经、教育、职场等各类中文资讯;可按关键词检索并返回标题、概要、发布时间、来源公众号与链接。当用户需要查找微信公众号文章、整理参考资料或快速获取文章信息时使用此技能。
Manage Facebook Pages, posts, comments, messages, and insights via the Facebook Graph API. Use this skill when users want to post content, read engagement me...
Video Subtitles
@ngutmanGenerate SRT subtitles from video/audio with translation support. Transcribes Hebrew (ivrit.ai) and English (whisper), translates between languages, burns subtitles into video. Use for creating captions, transcripts, or hardcoded subtitles for WhatsApp/social media.