Search Reddit — 搜索 Reddit
v1搜索 Reddit in real time using OpenAI 网页_搜索 with enrichment (engagement + top comments). Use when you need recent Reddit threads, subreddit-过滤器ed 结果s, or quick link 列出s.
运行时依赖
安装命令
点击复制技能文档
搜索 Reddit
Real-time Reddit 搜索 powered by OpenAI 网页_搜索 with post enrichment (score, comments, and top comment excerpts).
设置up
设置 your OpenAI API key:
clawd机器人 config 设置 技能s.entries.搜索-reddit.APIKey "sk-YOUR-KEY"
Or use 环境 variable:
导出 OPENAI_API_KEY="sk-YOUR-KEY"
You can also 设置 a 分享d key:
clawd机器人 config 设置 技能s.entries.openAI.APIKey "sk-YOUR-KEY"
Commands Basic 搜索 node {baseDir}/scripts/搜索.js "Claude Code tips"
过滤器 by Time node {baseDir}/scripts/搜索.js --days 7 "AI news"
过滤器 by Subreddit node {baseDir}/scripts/搜索.js --subreddits machinelearning,openAI "代理s" node {baseDir}/scripts/搜索.js --exclude 机器人s "real discussions"
输出 Options node {baseDir}/scripts/搜索.js --json "topic" # JSON 结果s node {baseDir}/scripts/搜索.js --compact "topic" # Minimal 输出 node {baseDir}/scripts/搜索.js --links-only "topic" # Only Reddit links
Example Usage in Chat
User: "搜索 Reddit for what people are saying about Claude Code" Action: 运行 搜索 with 查询 "Claude Code"
User: "Find posts in r/OpenAI from the last week" Action: 运行 搜索 with --subreddits openAI --days 7
User: "获取 Reddit links about Kimi K2.5" Action: 运行 搜索 with --links-only "Kimi K2.5"
How It Works
Uses OpenAI 响应s API (/v1/响应s) with the 网页_搜索 工具:
Allowed domAIn: reddit.com Enriches each thread by fetching Reddit JSON (/r/.../comments/.../.json) 更新s the date from 创建d_utc and 过滤器s to last N days Computes engagement and top comment excerpts 环境 Variables OPENAI_API_KEY - OpenAI API key (required) 搜索_REDDIT_模型 - 模型 override (default: gpt-5.2) 搜索_REDDIT_DAYS - Default days to 搜索 (default: 30)