← 返回 Skills 市场
xAI
作者
Matt Van Horn
· GitHub ↗
· v1.3.1
2888
总下载
5
收藏
9
当前安装
10
版本数
在 OpenClaw 中安装
/install xai
功能描述
Chat with Grok models via xAI API. Supports Grok-4, Grok-4.20, Grok-3, Grok-3-mini, vision, and real-time X search.
安全使用建议
This skill appears coherent and implements what it claims: chat, vision, and X search via the xAI API. Before installing: (1) Ensure you trust the x.ai service and the skill source (repository owner listed in files). (2) Keep your XAI_API_KEY private; the scripts will send any provided images (encoded as base64) and prompts to api.x.ai, so avoid sending sensitive images or secrets. (3) If you plan to install from a third-party copy, verify the files match the repository linked in the metadata. If you want stricter isolation, set the API key via the platform config instead of environment variables.
功能分析
Type: OpenClaw Skill
Name: xai
Version: 1.3.1
The skill bundle is a standard integration for the xAI API, providing functionality for chat, vision analysis, and X (Twitter) search. The scripts (chat.js, models.js, search-x.js) communicate exclusively with the official xAI endpoint (api.x.ai) and handle authentication via environment variables or a local configuration file (~/.clawdbot/clawdbot.json). No evidence of data exfiltration, malicious execution, or prompt injection was found; the file access is limited to reading the API key and user-specified image files for vision tasks.
能力评估
Purpose & Capability
Name/description (chat with Grok, vision, X search) match the shipped scripts and SKILL.md. Required env var XAI_API_KEY is the expected credential for the xAI API; no unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md instructs running the included Node scripts and setting XAI_API_KEY; the scripts implement exactly those behaviors (chat, models list, X search, vision). The scripts read the optional ~/.clawdbot/clawdbot.json to find a saved apiKey (consistent with the documented openclaw config), and otherwise only access files the user supplies (image path).
Install Mechanism
No install spec; this is instruction+script-based and does not download or extract remote archives or run installers. No external package installs or URLs that would pull arbitrary code are used.
Credentials
Only XAI_API_KEY is required (primaryEnv). The code also reads optional XAI_MODEL and HOME for config lookup, which is reasonable. No other secrets or unrelated environment variables are requested.
Persistence & Privilege
Skill is not always-enabled, does not request permanent platform privileges, and does not modify other skills or system-wide settings. It only looks up its own API key from the documented config path.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install xai - 安装完成后,直接呼叫该 Skill 的名称或使用
/xai触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.1
Fix display name (remove Clawdbot prefix)
v1.3.0
Rebrand: clawdbot → openclaw in metadata key and prose references.
v1.2.0
Republish after ClawHavoc moderation sweep. Updated descriptions, Grok-4/API 2026 notes, author/license/repository metadata.
v1.0.6
- No changes detected in this version.
- The SKILL.md file remains unchanged from the previous release.
v1.0.5
- Internal update to scripts/models.js; no user-facing changes.
- All commands, available models, and security details remain the same.
v1.0.4
- Improved security: image mode now only accepts files with standard image extensions (.jpg, .jpeg, .png, .gif, .webp).
- Clarified that the skill no longer reads config files or accesses the filesystem beyond specified image paths.
- Simplified setup instructions (now only shows environment variable method).
- Updated documentation to better explain security limits and file access policies.
v1.0.3
Fix metadata key: use clawdbot namespace for registry recognition
v1.0.2
Fix security scan: add openclaw metadata, declare XAI_API_KEY, add disable-model-invocation, add Security section
v1.1.0
Added X Search via Responses API - real tweets with citations
v1.0.0
Initial release - chat with Grok models, vision support, Grok-4
元数据
常见问题
xAI 是什么?
Chat with Grok models via xAI API. Supports Grok-4, Grok-4.20, Grok-3, Grok-3-mini, vision, and real-time X search. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2888 次。
如何安装 xAI?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install xai」即可一键安装,无需额外配置。
xAI 是免费的吗?
是的,xAI 完全免费(开源免费),可自由下载、安装和使用。
xAI 支持哪些平台?
xAI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 xAI?
由 Matt Van Horn(@mvanhorn)开发并维护,当前版本 v1.3.1。
推荐 Skills