Skip to main content

Real-time X Intelligence for Claude Code

Search, monitor, analyze, and extract structured intelligence from X using Grok’s native x_search tool. No browser required. Real-time access to the full X firehose via the xAI Responses API.

Quick Start

Get up and running with Grok-X in minutes

1

Install the skill

Run the one-line installer to set up Grok-X in your Claude Code environment:
bash <(curl -fsSL https://raw.githubusercontent.com/stat-guy/grok-x/main/install.sh)
The installer creates a virtual environment, installs dependencies, and registers the skill with Claude Code.
2

Configure your API key

Add your xAI API key to ~/.claude/settings.json:
{
  "env": {
    "XAI_API_KEY": "xai-your-key-here"
  }
}
Get your API key at console.x.ai
3

Run your first query

Inside Claude Code, use the /grok-x command:
/grok-x "What is happening with AI regulation on X?"
Grok searches X in real-time and provides thorough analysis with direct quotes and citations.

Core Capabilities

Four distinct intelligence modes for comprehensive X research

X Search

Native x_search tool queries the live X platform with handle filtering, date ranges, and image/video understanding.

Cross-Platform Research

Combine X and web search to verify claims, find corroborating sources, and get a complete picture.

Data Analysis

Execute code to compute engagement statistics, posting frequency, trend velocity, and quantitative signals.

Structured Extraction

Extract typed JSON output with 5 built-in schemas for sentiment, narratives, timelines, profiles, and claims.

Explore by Use Case

Real-world examples showing what Grok-X can do

Handle Monitoring

Track specific accounts with video analysis and engagement metrics

Sentiment Analysis

Extract sentiment scores and key claims from X discussions

Timeline Extraction

Build event timelines from X announcements and posts

Cross-Platform Verification

Verify X claims against web sources with citations

Data Analysis

Analyze posting patterns and engagement trends with code execution

Command Reference

Complete flag and option documentation

Ready to start?

Install Grok-X and bring real-time X intelligence directly into your Claude Code workflow.

Get Started

Build docs developers (and LLMs) love