Reddit CLI for Openclaw

A lightweight command-line interface that enables Reddit interaction and content retrieval using session cookies instead of standard API keys.

kelsia14
v1.0.2
Jan 26, 2026
4
4.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install reddit-cli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install reddit-cli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Reddit CLI?

The Reddit CLI is a powerful utility designed for developers who need quick, terminal-based access to Reddit content. By utilizing session cookies for authentication, this tool provides a streamlined alternative to traditional API-based integrations, making it a unique addition to the collection of Openclaw Skills. It allows users to browse subreddits, search for specific discussions, and inspect community metadata without the overhead of OAuth2 application management.

This skill is particularly useful for those who want to integrate Reddit data into their local development environment or automated scripts. As part of the Openclaw Skills ecosystem, it prioritizes simplicity and speed, allowing for rapid information gathering from one of the world's largest discussion platforms.

Reddit CLI Use Cases

  • Automating technical research by fetching top posts from programming subreddits.
  • Monitoring community sentiment or trends directly from the terminal within Openclaw Skills workflows.
  • Searching for specific troubleshooting advice across multiple Linux or DevOps communities.
  • Gathering metadata about subreddits for data analysis or community management tasks.

How Reddit CLI Works

  1. The skill utilizes Reddit session cookies stored as environment variables to authenticate requests.
  2. Users issue commands via the CLI to request specific data types such as posts, searches, or subreddit info.
  3. The tool communicates with Reddit's endpoints, mimicking authenticated browser requests to bypass API key requirements.
  4. Resulting data is parsed and presented in a clean, readable format in the console.
  5. The system includes a check command to verify session validity and ensure compatibility with Openclaw Skills standards.

Reddit CLI Setup

To get started with this skill, you must first extract your session cookies from a logged-in browser session. Add them to your environment configuration as follows:

# Add these to your ~/.bashrc or ~/.zshrc
export REDDIT_SESSION="your_reddit_session_cookie"
export TOKEN_V2="your_token_v2_cookie"  # Optional but recommended

# Apply the changes
source ~/.bashrc

# Test your connection
reddit-cli check

Reddit CLI Data Schema & Taxonomy

The Reddit CLI organizes data based on standard Reddit objects. Below is the mapping of parameters used within this skill:

Parameter Description Allowed Values
subreddit The target community name Any valid subreddit string
limit Number of items to return Integer (Default: 10)
sort Criteria for ranking posts hot, new, top, rising
query Search terms for discovery String
--sub Scopes a search to a specific subreddit Subreddit name

Reddit CLI Advanced Features

  • Support for cookie-based authentication to avoid API rate limits associated with standard Openclaw Skills integrations.
  • Scoped search functionality to pinpoint information within specific niche communities.
  • Multiple sorting algorithms to filter content by popularity, recency, or engagement.
  • Connection diagnostics to quickly identify when session cookies need to be refreshed.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*