LaunchKit · 2026
Back to Skills

x-ai

AI & LLMsv1.0.2

Chat with Grok models via xAI API.

15
9.9k downloads
by @blueberrywoodsym

Setup & Installation

openclaw skills install @blueberrywoodsym/x-ai

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install x-ai

Version History

v1.0.2Feb 21, 2026 - Version note by skill developer:

- Added a prominent link to external installation and use instructions at the top of the setup section. - No changes to functionality or commands; documentation update only.

What This Skill Does

Connects to xAI's API to chat with Grok models including Grok-3, Grok-3-mini, and a vision model for image analysis. Supports real-time X/Twitter search via the xAI Responses API, returning live posts with citations.

The built-in X search tool returns live posts with citations, so users get real-time information that static LLM APIs lack.

When to use it

  • Asking Grok a complex coding or reasoning question
  • Analyzing a screenshot or photo with the Grok vision model
  • Searching recent X posts about a topic or person
  • Switching between fast and capable Grok model variants
  • Getting cited, real-time social commentary on a current event

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Search X for posts about the Remotion video framework from the last 7 days

AGENT
  1. 1Runs search-x.js with --days 7 and the query 'Remotion video framework'
  2. 2Sends the request to the xAI Responses API with the x_search tool enabled
  3. 3xAI fetches matching real X posts
  4. 4Returns results with post citations and source links
OUTPUT

A list of recent X posts about Remotion with citation metadata

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

XAI_API_KEY — API key obtained from console.x.ai