Scrape Reddit Discussions at Native Speed
A high-performance command-line tool and agent interface for scraping Reddit posts, comment hierarchies, communities, and user submissions via Apify.
cargo install --git https://github.com/SpaceCorps/Reddit-Cli.git --locked
$ reddit search "rust 2024" --community rust --sort top --time month
- id: "t3_1h4k39"
title: "Announcing Rust 2024 Edition stabilized and ready"
author: "ferris_the_crab"
community: "r/rust"
upvotes: 1420
commentsCount: 238
url: "https://www.reddit.com/r/rust/comments/1h4k39/announcing_rust_2024/"
createdAt: "2026-09-15T14:22:10Z"
Zero Runtime Overhead
Compiled to a standalone static native binary for macOS (ARM64 & x86_64), Linux (musl), and Windows. Cold-starts in 1โ3 ms with no .NET, Node, or Python runtime needed.
LLM Agent Native
Delivers clean YAML for terminal readability and structured JSON with --json. Includes stable machine-readable exit codes and an embedded agent-readme manual.
OS Keystore Security
Integrates natively with macOS Keychain, Windows DPAPI, and Linux Secret Service. API tokens never touch plaintext files unless explicitly opted in.
Comprehensive Search
Search across Reddit for posts, comment threads, communities, or users with rich filtering by sort order, time window, and subreddit names.
Deep Thread Scraping
Extract complete post threads with nested comment hierarchies, community overviews, and user submission histories directly from URLs.
Multi-Account Management
Store and switch between multiple Apify accounts safely with reddit accounts and the --account <name> flag.
v1.0.0 Stable Release
Download pre-compiled standalone binaries for macOS, Linux, and Windows.
View full changelog and SHA256 checksums on GitHub Releases.
Command Overview
| Command | Description | Example |
|---|---|---|
reddit search <QUERY> |
Search Reddit for posts, comments, subreddits, or users | reddit search "async await" --community rust |
reddit scrape <URL> |
Scrape a Reddit post, community, or user URL | reddit scrape https://reddit.com/r/rust/... |
reddit login [NAME] |
Authenticate and save Apify token in native keystore | reddit login work |
reddit accounts list |
List configured accounts and verify token validity | reddit accounts list --check |
reddit accounts test <NAME> |
Test token connectivity and inspect account identity | reddit accounts test work |
reddit agent-readme |
Print built-in operating manual and rules for agents | reddit agent-readme --json |