Browse, search, post, and moderate Reddit directly from your terminal or Claude Code agent.
- โ Browse subreddits - View posts from any subreddit
- โ Search Reddit - Search across all Reddit or within specific subreddits
- โ Hot/New/Top posts - Get trending and recent content
- โ User profiles - View user info and recent posts
- โ Comments - Read post comments
- โ Trending subreddits - Discover what's popular
- โ No auth required - Read-only features work out of the box
- ๐ OAuth support - Optional authentication for posting/moderation (future)
# Clone or download this skill
cd ~/.openclaw/skills # or your skills directory
git clone https://github.com/YOUR_USERNAME/reddit-skill.git
# Or download directly
curl -o reddit.sh https://raw.githubusercontent.com/YOUR_USERNAME/reddit-skill/main/reddit.sh
chmod +x reddit.shcurl- Required for API requestsjq- Required for JSON parsing
Install dependencies:
# macOS
brew install jq
# Ubuntu/Debian
sudo apt-get install jq curl
# Arch Linux
sudo pacman -S jq curlBrowse a subreddit:
./reddit.sh browse cryptocurrency 10
./reddit.sh browse wallstreetbets 5Search Reddit:
./reddit.sh search "bitcoin prediction"
./reddit.sh search "AI agents" technologyGet hot posts:
./reddit.sh hot cryptocurrency
./reddit.sh hot # Front pageGet new posts:
./reddit.sh new cryptocurrencyGet top posts:
./reddit.sh top cryptocurrency week
./reddit.sh top technology month
# Time periods: hour, day, week, month, year, allView user profile:
./reddit.sh user deepfuckingvalue
./reddit.sh user spezRead comments:
./reddit.sh comments "https://www.reddit.com/r/cryptocurrency/comments/xxxxx/post_title/"Get trending subreddits:
./reddit.sh trending| Command | Description | Example |
|---|---|---|
browse <subreddit> [limit] |
Browse posts from subreddit | browse bitcoin 10 |
search <query> [subreddit] |
Search Reddit | search "web3" technology |
hot [subreddit] |
Get hot posts | hot wallstreetbets |
new [subreddit] |
Get new posts | new cryptocurrency |
top [subreddit] [time] |
Get top posts | top bitcoin week |
user <username> |
View user profile | user vitalik |
comments <post_url> |
Read post comments | comments https://reddit.com/... |
trending |
Get trending subreddits | trending |
For read-only access, no authentication is needed. The skill works out of the box!
For posting and moderation (future feature), you'll need Reddit OAuth credentials:
- Go to https://www.reddit.com/prefs/apps
- Click "Create App" or "Create Another App"
- Fill in:
- Name: Your app name (e.g., "My Reddit Skill")
- App type: Select "script"
- Description: Optional
- About URL: Optional
- Redirect URI: http://localhost:8080 (required but not used for script apps)
- Click "Create app"
- Note your client ID (under the app name) and secret
export REDDIT_CLIENT_ID="your_client_id_here"
export REDDIT_CLIENT_SECRET="your_client_secret_here"
export REDDIT_USERNAME="your_reddit_username"
export REDDIT_PASSWORD="your_reddit_password"Or add to your ~/.zshrc or ~/.bashrc:
echo 'export REDDIT_CLIENT_ID="your_client_id"' >> ~/.zshrc
echo 'export REDDIT_CLIENT_SECRET="your_secret"' >> ~/.zshrc
echo 'export REDDIT_USERNAME="your_username"' >> ~/.zshrc
echo 'export REDDIT_PASSWORD="your_password"' >> ~/.zshrc
source ~/.zshrc./reddit.sh hot cryptocurrency./reddit.sh search "Polymarket predictions"./reddit.sh user VitalikButerin./reddit.sh top artificial week./reddit.sh comments "https://www.reddit.com/r/CryptoCurrency/comments/xyz123/bitcoin_reaches_new_ath/"This skill is designed to work seamlessly with Claude Code agents. You can:
- Direct execution: Claude can run commands directly
- Data extraction: Parse Reddit data for analysis
- Monitoring: Track subreddits for specific topics
- Research: Gather community sentiment and discussions
Example prompt to Claude:
"Use the reddit skill to browse r/cryptocurrency and summarize the top 5 posts about Bitcoin this week"
# Add to ~/.zshrc or ~/.bashrc
alias reddit='/path/to/reddit-skill/reddit.sh'
# Now you can use:
reddit hot bitcoin
reddit search "AI agents" technology./reddit.sh top cryptocurrency week > crypto_top_posts.txt
./reddit.sh search "Polymarket" > polymarket_discussions.txt# Search and count mentions
./reddit.sh search "Claude AI" | grep -c "Claude"
# Get hot posts and save as JSON
./reddit.sh hot technology | jq '.' > tech_posts.jsonPosts are displayed with:
- ๐ Title
- ๐ค Author and karma
- ๐บ Upvotes
- ๐ฌ Comment count
- ๐ท๏ธ Subreddit
- ๐ Link to post
- ๐ Post text (truncated preview)
- Market Research: Monitor cryptocurrency/trading discussions
- Trend Analysis: Track emerging topics and sentiment
- Community Monitoring: Follow specific subreddits for updates
- User Research: Analyze user posting patterns
- Content Discovery: Find trending content in your niche
- Sentiment Analysis: Gather community opinions on topics
Reddit API has rate limits:
- Without auth: ~60 requests per minute
- With OAuth: ~600 requests per minute
The skill respects Reddit's API guidelines and uses proper user agent strings.
Contributions welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
- Improve documentation
MIT License - See LICENSE file for details
Created by Piggyx ๐ฉต
Built for the Claude Code and OpenClaw community.
Having issues? Open an issue on GitHub or reach out to the community!
Happy Redditing! ๐