Matt Van Horn

xAI

AI Agentv1.3.1
By Matt Van HornUpdated 2026-05-1110 versions · latest released 2026-03-07xai@clawhub_mvanhorn/xai
Context ManagementTool Use

According to AlphaMoat, as of 2026-09, xAI has 4,156 downloads and 5 stars — ranked #2,418 of 5,078 AI skills overall, and #473 of 969 in AI Agent.

Installs
305
Downloads
4.2K
Stars
5
Overall Rank
#2,418
Top 48% overall · Top 49% in AI Agent
PlatformInstallsDownloadsStarsComments
ClawHub ↗1283.8K5-
SkillHub ↗3054.2K5—

Platforms count differently and update at different times.

What this skill does

Node.js scripts use an xAI API key for prompts, image input, cited X search and model listing. Model declarations differ across documentation, so inspect availability rather than assume a fixed roster. Use only intended xAI requests and approved inputs, keeping the credential source explicit.

Profile published 2026-10-27

What you can do with it

  • Prepare an intentional Grok request

When to use it

  • When xAI processing is requested

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Check available models and prepare this approved query without exposing the API key.

Monthly Trend

Downloads4.2K
2.8K3.5K4.3K2026-03 · Downloads 2.9K2026-05 · Downloads 3.3K2026-06 · Downloads 3.4K2026-07 · Downloads 3.7K2026-08 · Downloads 3.8K2026-09 · Downloads 4.2K26-0326-09
Stars5
4562026-03 · Stars 52026-05 · Stars 52026-06 · Stars 52026-07 · Stars 52026-08 · Stars 52026-09 · Stars 526-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-094.2K—5
2026-083.8K+3.4%5
2026-073.7K+7.0%5
2026-063.4K+4.2%5
2026-053.3K—5
2026-032.9K—5

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.2 KB · ClawHub v1.3.1
---
name: xai
version: "1.1.0"
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.
author: mvanhorn
license: MIT
repository: https://github.com/mvanhorn/clawdbot-skill-xai
homepage: https://docs.x.ai
triggers:
  - grok
Show all (103 lines)
  - xai
  - ask grok
metadata:
  openclaw:
    emoji: "🤖"
    requires:
      env:
        - XAI_API_KEY
    primaryEnv: XAI_API_KEY
    tags:
      - xai
      - grok
      - llm
      - vision
      - x-search
---

# xAI / Grok

Chat with xAI's Grok models. Supports text and vision.

## Setup

Set your API key in the skill config:

```bash
# Via openclaw config
openclaw config set skills.entries.xai.apiKey "xai-YOUR-KEY"

# Or environment variable
export XAI_API_KEY="xai-YOUR-KEY"
```

Get your API key at: https://console.x.ai

## Commands

### Chat with Grok
```bash
node {baseDir}/scripts/chat.js "What is the meaning of life?"
```

### Use a specific model
```bash
node {baseDir}/scripts/chat.js --model grok-3-mini "Quick question: 2+2?"
```

### Vision (analyze images)
```bash
node {baseDir}/scripts/chat.js --image /path/to/image.jpg "What's in this image?"
```

### 🔍 Search X/Twitter (Real-time!)
```bash
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.

### List available models
```bash
node {baseDir}/scripts/models.js
```

## Available Models

- `grok-3` - Most capable, best for complex tasks
- `grok-3-mini` - Fast and efficient
- `grok-3-fast` - Optimized for speed
- `grok-2-vision-1212` - Vision model for image understanding

## Example Usage

**User:** "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

## API Reference

xAI API Docs: https://docs.x.ai/api

## Environment Variables

- `XAI_API_KEY` - Your xAI API key (required)
- `XAI_MODEL` - Default model (optional, defaults to grok-3)

Popular in AI Agent

More from Matt Van Horn

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.