search-reddit
Search Reddit
Real-time Reddit search powered by OpenAI web_search with post enrichment (score, comments, and top comment excerpts).
Setup
Set your OpenAI API key:
thinkfleetbot config set skills.entries.search-reddit.apiKey "sk-YOUR-KEY"
Or use environment variable:
export OPENAI_API_KEY="sk-YOUR-KEY"
You can also set a shared key:
thinkfleetbot config set skills.entries.openai.apiKey "sk-YOUR-KEY"
Commands
Basic Search
node {baseDir}/scripts/search.js "Claude Code tips"
Filter by Time
node {baseDir}/scripts/search.js --days 7 "AI news"
Filter by Subreddit
node {baseDir}/scripts/search.js --subreddits machinelearning,openai "agents"
node {baseDir}/scripts/search.js --exclude bots "real discussions"
Output Options
node {baseDir}/scripts/search.js --json "topic" # JSON results
node {baseDir}/scripts/search.js --compact "topic" # Minimal output
node {baseDir}/scripts/search.js --links-only "topic" # Only Reddit links
Example Usage in Chat
User: "Search Reddit for what people are saying about Claude Code" Action: Run search with query "Claude Code"
User: "Find posts in r/OpenAI from the last week" Action: Run search with --subreddits openai --days 7
User: "Get Reddit links about Kimi K2.5" Action: Run search with --links-only "Kimi K2.5"
How It Works
Uses OpenAI Responses API (/v1/responses) with the web_search tool:
- Allowed domain:
reddit.com - Enriches each thread by fetching Reddit JSON (
/r/.../comments/.../.json) - Updates the date from
created_utcand filters to last N days - Computes engagement and top comment excerpts
Environment Variables
OPENAI_API_KEY- OpenAI API key (required)SEARCH_REDDIT_MODEL- Model override (default: gpt-5.2)SEARCH_REDDIT_DAYS- Default days to search (default: 30)
More from thinkfleetai/thinkfleet-engine
local-whisper
Local speech-to-text using OpenAI Whisper. Runs fully offline after model download. High quality transcription with multiple model sizes.
149flyio-cli-public
Use the Fly.io flyctl CLI for deploying and operating apps on Fly.io: deploys (local or remote builder), viewing status/logs, SSH/console, secrets/config, scaling, machines, volumes, and Fly Postgres (create/attach/manage databases). Use when asked to deploy to Fly.io, debug fly deploy/build/runtime failures, set up GitHub Actions deploys/previews, or safely manage Fly apps and Postgres.
24kagi-search
Web search using Kagi Search API. Use when you need to search the web for current information, facts, or references. Requires KAGI_API_KEY in the environment.
22feishu-bridge
Connect a Feishu (Lark) bot to ThinkFleet via WebSocket long-connection. No public server, domain, or ngrok required. Use when setting up Feishu/Lark as a messaging channel, troubleshooting the Feishu bridge, or managing the bridge service (start/stop/logs). Covers bot creation on Feishu Open Platform, credential setup, bridge startup, macOS launchd auto-restart, and group chat behavior tuning.
13bambu-local
Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C.
10voice-transcribe
Transcribe audio files using OpenAI's gpt-4o-mini-transcribe model with vocabulary hints and text replacements. Requires uv (https://docs.astral.sh/uv/).
10