reddit-cli_skill

This skill helps you read Reddit posts, search content, and fetch subreddit details using cookies for authentication.
  • Python

2.5k

GitHub Stars

3

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill reddit-cli

  • _meta.json274 B
  • README.md1.9 KB
  • SKILL.md1.4 KB

Overview

This skill is a command-line Reddit client that uses your browser session cookies for authentication so no API key is required. It lets you read subreddit posts, run site-wide or subreddit searches, retrieve subreddit metadata, and test connection status. The tool is lightweight, respects Reddit rate limits, and is intended for personal use.

How this skill works

The CLI reads your reddit_session (and optional token_v2) cookie values from environment variables to authenticate requests as your logged-in session. It fetches posts by subreddit with configurable limits and sorting, performs search queries across Reddit or within a subreddit, and retrieves basic subreddit info. Commands are simple shells like posts, search, info, and check; cookies must be refreshed periodically when they expire.

When to use it

  • Quickly browse hot/new/top posts from the terminal without an API key
  • Search Reddit from scripts or automation tasks
  • Retrieve subreddit metadata for monitoring or research
  • Test whether your session cookies are valid and connection works
  • Integrate into shell workflows or cron jobs for periodic checks

Best practices

  • Store reddit_session and optional token_v2 in your shell environment (~/.bashrc) and keep the file secure
  • Only use cookies from accounts you control; cookies grant the same access as your browser session
  • Respect Reddit rate limits and avoid aggressive polling or scraping
  • Refresh cookies periodically since session cookies expire
  • Limit output or paginate when fetching many posts to avoid long waits

Example use cases

  • View top 10 hot posts in a subreddit: reddit-cli posts programming 10
  • Search Reddit for guides: reddit-cli search "python tutorial"
  • Search inside a specific subreddit: reddit-cli search "help" --sub linux
  • Fetch subreddit summary for monitoring: reddit-cli info AskReddit
  • Verify authentication and connectivity: reddit-cli check

FAQ

No. The CLI uses your reddit_session cookie (and optionally token_v2) for authentication so no API key is required.

How do I get and refresh the cookies?

Log into reddit.com, open DevTools → Application → Cookies → reddit.com, copy the reddit_session (and token_v2 if desired) values, then set them as environment variables. Repeat when cookies expire.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational