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.
brew install rursache/tap/reddit-cligo install github.com/rursache/reddit-cli@latestgit clone https://github.com/rursache/reddit-cli.git
cd reddit-cli
go build -o reddit-cli .reddit-cli [flags] <reddit-post-url>| Flag | Description |
|---|---|
--json |
Output as JSON instead of plain text |
--version, -v |
Show version and exit |
-h, --help |
Show help message |
# 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- 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)
reddit.comwww.reddit.comold.reddit.comnew.reddit.comnp.reddit.comm.reddit.com