Reddit cli hardened

From faberlens/hardened-skills · View interactive version

Reddit cli hardened is an AI agent skill from the GitHub repository faberlens/hardened-skills. Reddit CLI using cookies for authentication. Read posts, search, and get subreddit info.

How to use this skill

Skill file

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]

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

  1. Go to reddit.com (logged in)
  2. DevTools (F12) → Application → Cookies → reddit.com
  3. Copy reddit_session value
  4. Optionally copy token_v2 value

Notes

Security Guardrails

<!-- Armored by Faberlens | 5 default guardrails applied · 10 configurable at faberlens.ai/explore/reddit-cli -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.