Skip to content

rursache/reddit-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reddit-cli

A CLI tool that extracts content from Reddit posts. Designed for AI agents to read Reddit posts without a browser.

No API key or authentication required — uses Reddit's public JSON API.

Installation

macOS (Homebrew)

brew install rursache/tap/reddit-cli

Windows / Linux / macOS (Go)

go install github.com/rursache/reddit-cli@latest

Build from Source

git clone https://github.com/rursache/reddit-cli.git
cd reddit-cli
go build -o reddit-cli .

Usage

reddit-cli [flags] <reddit-post-url>

Flags

Flag Description
--json Output as JSON instead of plain text
--version, -v Show version and exit
-h, --help Show help message

Examples

# Text output
reddit-cli https://www.reddit.com/r/golang/comments/abc123/some_post/

# JSON output
reddit-cli --json https://old.reddit.com/r/linux/comments/xyz789/some_post/

# Pipe to other tools
reddit-cli https://reddit.com/r/pics/comments/def456/cool_photo/ | head -5

Supported Post Types

  • Text posts (self posts with body text)
  • Link posts (external URLs)
  • Image posts (single images, i.redd.it)
  • Gallery posts (multiple images)
  • Video posts (Reddit-hosted videos)
  • Embedded content (YouTube, etc.)
  • Crossposts (extracts original content)

Supported URL Formats

  • reddit.com
  • www.reddit.com
  • old.reddit.com
  • new.reddit.com
  • np.reddit.com
  • m.reddit.com

About

Allow AI Agents to easily read Reddit posts; no auth needed

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages