xAI Grok Integration for Openclaw

A high-performance integration for Openclaw Skills that enables interaction with xAI's Grok models for advanced reasoning and real-time information retrieval.

mvanhorn
v1.3.1
Mar 7, 2026
5
3.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install xai

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install xai using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is xAI Grok Integration?

This skill brings the full power of xAI's ecosystem into your agentic workflow. By utilizing Openclaw Skills, developers can chat with Grok-3, perform complex image analysis, and access live data from the X platform through specialized tools. It bridges the gap between static model responses and real-time social data, making it an essential component for any modern Openclaw Skills toolkit.\n\nWhether you need the reasoning capabilities of Grok-3 or the speed of Grok-3-mini, this skill handles the authentication and request logic seamlessly. The inclusion of the x_search tool allows your agent to cite real-world events as they happen on X, providing a level of currency that standard LLMs often lack when integrated into Openclaw Skills.

xAI Grok Integration Use Cases

  • Analyzing live social media trends and sentiment via real-time X search.\n- Developing vision-capable AI agents that can describe and interpret image contents.\n- Executing complex reasoning tasks using the Grok-3 model within an agent workflow.\n- Querying specific X handles for recent updates or product announcements.\n- Integrating fast, cost-effective LLM responses for simple tasks using Grok-3-mini.

How xAI Grok Integration Works

  1. The user triggers the skill using keywords like 'grok' or 'xai' within the Openclaw environment.\n2. The skill authenticates using the provided XAI_API_KEY from the environment or local configuration.\n3. Commands are routed to specific scripts for text chat, vision analysis, or real-time web search.\n4. For search queries, the skill utilizes the xAI Responses API to fetch live posts and citations from X.\n5. The resulting data is processed and returned to the agent or user in a structured format.

xAI Grok Integration Setup

To begin using this entry in your collection of Openclaw Skills, you must first obtain an API key from the xAI console. Configure the key using the following commands:\n\nbash\n# Configure via openclaw\nopenclaw config set skills.entries.xai.apiKey \"xai-YOUR-KEY\"\n\n# Or set as an environment variable\nexport XAI_API_KEY=\"xai-YOUR-KEY\"\n\n\nYou can also optionally set XAI_MODEL to specify your preferred default model.

xAI Grok Integration Data Schema & Taxonomy

The skill handles structured requests and responses to interact with xAI. Below is the metadata and model configuration schema used by this part of the Openclaw Skills ecosystem:\n\n| Attribute | Description |\n| :--- | :--- |\n| XAI_API_KEY | Primary authentication token for the xAI platform. |\n| XAI_MODEL | The specific model ID (e.g., grok-3, grok-3-mini). |\n| --image | Path to local image files for vision tasks. |\n| --handles | Specific X user accounts to filter search results. |\n| --days | Time range for real-time search queries. |

xAI Grok Integration Advanced Features

  • Real-time X search integration with verifiable citations for up-to-the-minute data.\n- Multi-model support including high-reasoning Grok-3 and speed-optimized fast variants.\n- Native vision support for image-to-text and visual analysis tasks.\n- Flexible CLI parameters for filtering social data by handle or date range.\n- Deep integration with Openclaw Skills configuration for secure credential management.

SKILL.md


Loading

Related Openclaw Skills

Featured*