Awesome-openclaw-skills reddit-cli
Reddit CLI using cookies for authentication. Read posts, search, and get subreddit info.
install
source · Clone the upstream repo
git clone https://github.com/sundial-org/awesome-openclaw-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/reddit-cli" ~/.claude/skills/sundial-org-awesome-openclaw-skills-reddit-cli && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/reddit-cli" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-reddit-cli && rm -rf "$T"
manifest:
skills/reddit-cli/SKILL.mdsource content
Reddit CLI
Read Reddit using your session cookies. No API key needed.
Quick start
reddit-cli posts programming 10 # Get 10 hot posts reddit-cli posts gaming 5 top # Get top 5 posts reddit-cli search "python tutorial" # Search all Reddit reddit-cli search "help" --sub linux # Search in subreddit reddit-cli info AskReddit # Subreddit info reddit-cli check # Test connection
Commands
Get posts from subreddit
reddit-cli posts <subreddit> [limit] [sort]
- limit: number of posts (default: 10)
- sort: hot, new, top, rising (default: hot)
Search Reddit
reddit-cli search <query> [--sub <subreddit>] [limit]
Get subreddit info
reddit-cli info <subreddit>
Check connection
reddit-cli check
Environment
Set these in
~/.bashrc:
export REDDIT_SESSION="your_reddit_session_cookie" export TOKEN_V2="your_token_v2_cookie" # optional
Getting cookies
- Go to reddit.com (logged in)
- DevTools (F12) → Application → Cookies → reddit.com
- Copy
valuereddit_session - Optionally copy
valuetoken_v2
Notes
- Cookies expire, you may need to refresh them periodically
- Respects Reddit's rate limits
- For personal use only