shell Twitter/X from your terminal
No API keys required. Log in with your browser cookies and control Twitter/X from the command line.
Everything You Need
A complete toolkit for Twitter/X automation with 70+ commands covering all major features.
Lightning Fast
~50ms cold start. Built for speed with Go. Optimized for instant command execution.
AI-Ready
50+ MCP tools for seamless AI agent integration. Full Model Context Protocol support.
Media Support
Upload up to 4 images per tweet. Download media with a single command.
Advanced Search
Search tweets with filters for Top, Latest, Photos, and Videos.
User Profiles
View profiles, tweets, likes, followers, and following lists.
List Management
Create, manage, and browse Twitter lists with full CRUD operations.
Direct Messages
Send and manage DMs directly from your terminal.
Scheduled Tweets
Schedule tweets for future posting with Unix timestamps.
Job Search
Search job listings on X/Twitter with location and remote filters.
Batch Operations
Fetch multiple tweets or users in a single command. Perfect for data processing.
AI-Optimized Output
Compact mode with essential fields only. Perfect for AI agents and scripting.
JSON/YAML Output
Structured output formats for scripting and automation. Perfect for pipes and CI/CD pipelines.
AI Agent Integration
Full Model Context Protocol implementation with 50 tools for seamless AI agent connectivity.
What is MCP?
Model Context Protocol is an open protocol that standardizes how AI agents connect to external tools. xsh implements a full MCP server with 50 built-in tools.
Built for Performance
Advanced security and resilience features that keep xsh running smoothly.
TLS Fingerprinting
Chrome impersonation using uTLS to bypass bot detection and mimic real browser behavior.
Dynamic Endpoints
Automatic GraphQL endpoint discovery from X.com JavaScript. Self-healing configuration that adapts to API changes.
Transaction Security
HMAC-SHA256 transaction ID generation for secure write operations and replay protection.
AI Skill Integration
xsh provides a complete skill definition for AI agents. 50+ MCP tools, structured JSON schemas, and semantic understanding.
Structured Output
JSON, YAML, and Compact modes. Perfect for piping and programmatic use.
xsh feed --json | jq '.[].text'Semantic Understanding
Rich data models: Tweets, Users, Lists, Jobs with full engagement metrics.
Get Started
Multiple ways to install xsh. Choose the one that works best for your system.
curl -sSL https://raw.githubusercontent.com/benoitpetit/xsh/master/scripts/install.sh | bashiwr -useb https://raw.githubusercontent.com/benoitpetit/xsh/master/scripts/install.ps1 | iexgit clone https://github.com/benoitpetit/xsh && cd xsh && go build -o xsh .Download the executable directly. Just chmod +x and run — no extraction needed.
Authenticate with your browser cookies
View your timeline
Post your first tweet