← Back to Skills Marketplace
xAI
by
Matt Van Horn
· GitHub ↗
· v1.3.1
2888
Downloads
5
Stars
9
Active Installs
10
Versions
Install in OpenClaw
/install xai
Description
Chat with Grok models via xAI API. Supports Grok-4, Grok-4.20, Grok-3, Grok-3-mini, vision, and real-time X search.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install xai - After installation, invoke the skill by name or use
/xai - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Frequently Asked Questions
What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 2888 downloads so far.
How do I install xAI?
Run "/install xai" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is xAI free?
Yes, xAI is completely free (open-source). You can download, install and use it at no cost.
Which platforms does xAI support?
xAI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created xAI?
It is built and maintained by Matt Van Horn (@mvanhorn); the current version is v1.3.1.
More Skills