AI-powered Reddit marketing strategist & post generator for startups
Analyze your startup → Research subreddits → Understand the vibe → Generate authentic posts
Reddit Growth Agent (v2) is an interactive CLI tool that helps startups gain their first users from Reddit — powered by AI. It walks you through a complete Reddit marketing workflow:
- 🧠 Startup Analysis — Breaks down your value prop, identifies your ICP (Ideal Customer Profile), and finds the best subreddits to target.
- 📡 Subreddit Research — Fetches real top posts from each subreddit so the AI understands what actually performs well.
- 🎭 Vibe Reports — Generates a "vibe check" for each subreddit: tone, slang, unwritten rules, what gets upvoted vs. downvoted.
- ✍️ Post Generation — Creates multiple ready-to-post Reddit entries tailored to each subreddit's culture and your startup's story.
- 🔄 Interactive Refinement — Chat with the AI to tweak and polish your posts until they're perfect.
- 💾 Export — Save everything to Markdown files for easy use.
All research and generated content is cached in a local SQLite database, so you never lose progress and can pick up where you left off.
| File | Description |
|---|---|
index.js |
🏠 Entry point — Runs the interactive CLI menu and orchestrates the full workflow |
api.js |
🤖 AI & I/O — Handles OpenRouter API calls and readline-based user input |
db.js |
🗄️ Database — SQLite operations for startups, subreddits, vibe reports, and posts |
prompts.js |
📝 Prompt templates — All AI system prompts for analysis, vibes, and post generation |
reddit.js |
📡 Reddit fetcher — Pulls top posts from subreddits via Reddit's .json endpoints |
scraper.js |
🌐 Website scraper — Extracts context from your startup's website automatically |
workflows.js |
⚙️ Workflow engine — Core logic for each step: analysis, research, vibes, generation, refinement, export |
.env.example |
🔑 Config template — Template for required environment variables |
package.json |
📦 Dependencies — Project metadata and npm scripts |
npm installcp .env.example .envOpen .env and add your OpenRouter API key (get one at openrouter.ai/keys):
OPENROUTER_API_KEY=sk-or-v1-your-key-here
OPENROUTER_MODEL=google/gemini-2.5-flashImportant
This step is required. Reddit blocks unauthenticated requests to its .json endpoints with a 403 Forbidden. The agent bypasses this by using your browser's session cookie — no official API keys or OAuth needed.
🍪 How to get your Reddit cookie (click to expand)
- Open reddit.com in your browser while logged in
- Open Developer Tools (
F12orCmd+Opt+I) - Go to the Network tab
- Refresh the page
- Click on any request made to
www.reddit.com - In the Headers section, find
Cookie:under Request Headers - Copy the entire value (it's one long string)
- Paste it into your
.envfile:
REDDIT_COOKIE=reddit_session=abc123; edgebucket=xyz; ...[!NOTE] The cookie is a long string — paste it all on one line, no quotes needed. It may expire after a while; just repeat these steps to get a fresh one.
npm startYou'll be greeted with an interactive menu:
╔══════════════════════════════════════════════════════════════╗
║ 🚀 Reddit Growth Agent v2 🚀 ║
║ AI post generator with SQLite caching ║
╚══════════════════════════════════════════════════════════════╝
📋 MAIN MENU
0. 🚀 Run Full Flow (Analysis → Research → Vibes → Posts)
1. ▶️ Run Startup Analysis & ICP
2. ▶️ Fetch Subreddit Research
3. ▶️ Generate Vibe Reports
4. ✍️ Generate Reddit Posts
5. 📄 View Saved Posts
6. 🔄 Refine Posts (interactive)
7. 💾 Export All Posts to Markdown
8. 🔙 Switch Startup
9. ❌ Exit
Contributors are welcome! Whether it's improving the AI prompts, adding new features, squashing bugs, or enhancing docs — all contributions are appreciated.
- Fork the repo
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Built with ❤️ for indie hackers and startup founders
Go get those users. 🎯