No API keys required. Log in with your browser cookies and control Twitter/X from the command line.
A complete toolkit for Twitter/X automation with 40+ commands covering all major features.
20x faster startup than Python. ~50ms cold start. Built for speed with Go.
52 MCP tools for seamless AI agent integration. Full Model Context Protocol support.
Upload up to 4 images per tweet. Download media with a single command.
Search tweets with filters for Top, Latest, Photos, and Videos.
View profiles, tweets, likes, followers, and following lists.
Create, manage, and browse Twitter lists with full CRUD operations.
Send and manage DMs directly from your terminal.
Schedule tweets for future posting with Unix timestamps.
Search job listings on X/Twitter with location and remote filters.
Fetch multiple tweets or users in a single command. Perfect for data processing.
Compact mode with essential fields only. Perfect for AI agents and scripting.
Structured output formats for scripting and automation. Perfect for pipes and CI/CD pipelines.
Full Model Context Protocol implementation with 50 tools for seamless AI agent connectivity.
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.
Advanced security and resilience features that keep xsh running smoothly.
Chrome impersonation using uTLS to bypass bot detection and mimic real browser behavior.
Automatic GraphQL endpoint discovery from X.com JavaScript. Self-healing configuration that adapts to API changes.
HMAC-SHA256 transaction ID generation for secure write operations and replay protection.
xsh provides a complete skill definition for AI agents. 52 MCP tools, structured JSON schemas, and semantic understanding.
JSON, YAML, and Compact modes. Perfect for piping and programmatic use.
xsh feed --json | jq '.[].text'Rich data models: Tweets, Users, Lists, Jobs with full engagement metrics.
Multiple ways to install xsh. Choose the one that works best for your system.
curl -sSL https://raw.githubusercontent.com/benoitpetit/xsh/main/core/scripts/install.sh | bash Auto-detect platform and install binaryiwr -useb https://raw.githubusercontent.com/benoitpetit/xsh/main/core/scripts/install.ps1 | iex Run in PowerShell as Administratorgit clone https://github.com/benoitpetit/xsh && cd xsh/core && go build -o xsh . Any platform with GoDownload the executable directly. Just chmod +x and run — no extraction needed.
Authenticate with your browser cookies
View your timeline
Post your first tweet