Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install x-ai或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install x-ai⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/x-ai/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: xai description: Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more. homepage: https://docs.x.ai user-invocable: true disable-model-invocation: true triggers: - grok - xai - ask grok metadata: clawdbot: emoji: "🤖" primaryEnv: XAI_API_KEY requires: bins: [node] env: [XAI_API_KEY] ---
Chat with xAI's Grok models. Supports text and vision.
INSTALLATION AND USE INSTRUCTIONS
export XAI_API_KEY="xai-YOUR-KEY"
Get your API key at: https://console.x.ai
node {baseDir}/scripts/chat.js "What is the meaning of life?"
node {baseDir}/scripts/chat.js --model grok-3-mini "Quick question: 2+2?"
node {baseDir}/scripts/chat.js --image /path/to/image.jpg "What's in this image?"
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.
node {baseDir}/scripts/models.js
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 understandingUser: "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
xAI API Docs: https://docs.x.ai/api
XAI_API_KEY - Your xAI API key (required)XAI_MODEL - Default model (optional, defaults to grok-3)What this skill does:
api.x.aiscripts/models.js lists available models (read-only)What this skill does NOT do:
--image only accepts files with image extensions (.jpg, .jpeg, .png, .gif, .webp)api.x.aidisable-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.
安装 xAI / Grok 后,可以对 AI 说这些话来触发它
What's trending on X right now related to AI?
Queries Grok's real-time X data feed and returns a ranked list of trending AI topics with engagement metrics
Ask Grok to summarize the latest news about OpenAI
Sends the query to Grok, which pulls live data from X and news sources, then returns a concise summary with source links
Use Grok to fact-check this claim with real-time data
Passes the claim to Grok, which cross-references it against current X posts and news, then returns a verdict with evidence
将技能文件夹放到 ~/.claude/skills/x-ai/ 目录(个人级,所有项目可用),或 .claude/skills/x-ai/(项目级)。重启 AI 客户端后,用 /x-ai 主动调用,或让 AI 根据上下文自动发现并使用。
xAI / Grok 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
xAI / Grok 可免费安装使用。请查阅仓库了解许可证信息。
Chat with Grok models via xAI API. Supports Grok-3, Grok-3-mini, vision, and more.
xAI / Grok 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。