Twitter/X from your terminal
No API keys required. Log in with your browser cookies and control Twitter/X from the command line.
curl -fsSL https://xsh.devbyben.fr/install | bash * Approximate startup estimate; results vary by machine and environment.
Everything You Need
A complete toolkit for Twitter/X automation with 119 commands covering all major features.
Lightning Fast
One static Go binary with no runtime dependencies. Commands run in-process, with no interpreter to start.
Advanced Search
Search tweets with filters for Top, Latest, Photos, and Videos.
User Profiles
View profiles, tweets, media, likes, and relationship lists.
Media Support
Upload up to 4 images per tweet. Download media with a single command.
Long-form Notes
Publish long-form Note Tweets from text or a file with explicit confirmation.
Scheduled Tweets
Schedule tweets for future posting with Unix timestamps.
Direct Messages
Send and manage DMs directly from your terminal.
List Management
Browse list metadata, memberships, members, and confirmed updates.
Batch Operations
Fetch multiple tweets or users in a single command. Perfect for data processing.
Job Search
Search job listings on X/Twitter with location and remote filters.
AI-Ready
54 MCP tools for AI agent integration. Full Model Context Protocol support.
Output Formats
Compact, JSON and YAML on every command. Built for AI agents, pipes and CI.
AI Agent Integration
Full Model Context Protocol implementation with 54 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 54 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
Authenticated GraphQL discovery across recursive Vite/Rollup chunks, with per-operation validation and safe isolation of obsolete 404 routes.
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. 54 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 -fsSL https://xsh.devbyben.fr/install | bashiwr -useb https://xsh.devbyben.fr/install | 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