RE
Open Source
Social MediaResearch
Reddit plugin for OpenCode - navigate subreddit communities and get trending stories
reddit social-media content
Quick Install
npm install @openpets/reddit pnpm add @openpets/reddit Required Environment Variables
-
REDDIT_CLIENT_IDReddit application client ID from https://www.reddit.com/prefs/apps
-
REDDIT_CLIENT_SECRETReddit application client secret
-
REDDIT_REFRESH_TOKENReddit OAuth refresh token
Available Tools (1)
These tools are available when you install the reddit plugin in your AI assistant.
fetch-reddit-hot-threads
Fetch hot threads from a subreddit
Example Queries
get hot posts from r/programming fetch trending posts from r/technology with 20 results get post content for post ID abc123 show me hot posts from r/AskReddit Usage Scenarios
browse subreddits
- 1
get hot posts from r/programming - 2
fetch trending posts from r/technology with 15 results - 3
get hot posts from r/AskReddit with 5 results
deep dive
- 1
get hot posts from r/programming with 10 results - 2
get post content for the first post ID - 3
get post content with 50 comments and depth 5
Optional Configuration
| Variable | Description |
|---|---|
REDDIT_USER_AGENT | Custom user agent string (default: 'openpets-reddit-plugin/1.0.0') |
Use reddit with Your AI Assistant
This open source plugin works with OpenCode-compatible AI assistants including ChatGPT, Claude, Perplexity, and other LLM-powered coding tools. Install the plugin and start using natural language to interact with reddit.
Works with ChatGPT
Works with Claude
Works with Perplexity
MCP Compatible