rdt-cli knowledge
Browse Reddit feeds, read posts, search, and interact — all from your terminal
rdt is a command-line Reddit client that uses reverse-engineered APIs with automatic browser cookie extraction. Browse your home feed, read posts with full comment trees, search content, upvote, save, and subscribe — without leaving the terminal.
Features
- Browse home feed, popular posts, /r/all, and specific subreddits
- Read posts with syntax-highlighted code blocks and expandable comment trees
- Full-text search with subreddit and time filters
- Upvote/downvote, save/unsave, and subscribe to subreddits
- Export search results to CSV or JSON
- Structured output modes (JSON, YAML, compact) for AI agent integration
- Automatic browser cookie extraction from Chrome, Firefox, Edge, and Brave
Install
uv: uv tool install rdt-clipipx: pipx install rdt-cli Commands
| Command | Syntax | Description |
|---|---|---|
login | rdt login | Extract and save browser cookies for authentication |
feed | rdt feed | Display your Reddit home feed |
sub | rdt sub <subreddit> | Browse a specific subreddit |
search | rdt search <query> | Full-text search across Reddit |
read | rdt read <post_id> | Read a specific post with comments |
show | rdt show <index> | Read the Nth post from the last listing |
export | rdt export <query> --format csv | Export search results to CSV or JSON |
Links
Agent Usage Example
Use cases:
- Browse and summarize Reddit discussions on a topic
- Search Reddit for community feedback on tools or libraries
- Export Reddit threads for analysis or reporting
Example workflow:
rdt search 'best CLI tools 2025' --json | jq '.[].title'