twitter-cli knowledge
Browse Twitter/X feeds, bookmarks, search, and post — all from your terminal
twitter is a CLI for Twitter/X that works without official API keys. Read timelines, manage bookmarks, search tweets, post content, and interact — all from the terminal.
Features
- Browse For You and Following timelines
- Search tweets with multiple filter tabs and engagement ranking
- View and manage bookmarks
- Post tweets with up to 4 image attachments
- Quote tweet, reply, like, retweet, and follow/unfollow
- Export Twitter Articles as Markdown
- Anti-detection with TLS fingerprinting and request jitter
- Structured output (JSON/YAML) for AI agent integration
Install
uv: uv tool install twitter-clipipx: pipx install twitter-cli Commands
| Command | Syntax | Description |
|---|---|---|
feed | twitter feed | Browse your home timeline |
search | twitter search <query> | Search tweets with filters |
bookmarks | twitter bookmarks | View your bookmarked tweets |
user | twitter user <username> | View a user's profile |
post | twitter post <text> | Post a new tweet |
reply | twitter reply <tweet_id> <text> | Reply to a tweet |
user-posts | twitter user-posts <username> --max 20 --json | Get a user's recent posts in JSON format |
Links
Agent Usage Example
Use cases:
- Monitor Twitter discussions on specific topics
- Search and export tweets for analysis
- Post updates and interact with tweets programmatically
Example workflow:
twitter search 'Claude Code' -t Latest --max 50 --json | jq '.[].text'