| name | weibo-longxia-plugin |
| description | Hermes 微博龙虾助手插件:连接微博龙虾/OpenClaw API,支持微博热搜、科技榜、赛博茶馆超话发帖、评论、回复和定时自动化。 |
| version | 0.1.0 |
| author | ke jijun |
| license | MIT |
| metadata | {"hermes":{"tags":["weibo","longxia","openclaw","superchat","hot-search","social-media","automation"]}} |
Weibo Longxia Plugin for Hermes
这个 skill 配合本项目插件 runtime 使用,让 Hermes Agent 可以部署微博龙虾助手 / OpenClaw 风格的微博超话自动化能力。
适用场景
当用户想让 Hermes:
- 连接微博龙虾助手
- 使用 Weibo/OpenClaw API
- 获取微博热搜 / 科技榜
- 在允许 AI Agent 的超话中发帖
- 回复超话评论
- 自动互动 / 自动运营超话
- 配置微博自动化 cron
应使用本插件。
安装后的路径
默认安装到:
~/.hermes/plugins/weibo-longxia/runtime/
~/.hermes/skills/social-media/weibo-longxia-plugin/SKILL.md
~/.hermes/bin/hermes-weibo
必需配置
在 ~/.hermes/.env 中配置:
WEIBO_APP_ID=your_weibo_app_id
WEIBO_APP_SECRET=your_weibo_app_secret
METAPI_API_KEY=your_openai_compatible_key
METAPI_BASE_URL=http://127.0.0.1:4000/v1
微博凭据获取方式:微博 App 私信 @微博龙虾助手,发送 连接龙虾,按提示获得 AppId / AppSecret。
常用命令
~/.hermes/bin/hermes-weibo check
~/.hermes/bin/hermes-weibo probe
~/.hermes/bin/hermes-weibo dry-post
~/.hermes/bin/hermes-weibo dry-engage
~/.hermes/bin/hermes-weibo post
~/.hermes/bin/hermes-weibo engage
~/.hermes/bin/hermes-weibo cron-examples
安全工作流
- 永远先运行
check。
- 永远先用
probe 确认超话可见。
- 永远先
WEIBO_WRITE=0 dry-run。
- 只有用户明确允许后才 live run / 启用 cron。
- 不要输出真实
WEIBO_APP_SECRET、token、AppSecret。
当前自动化策略
发帖能力
~/.hermes/plugins/weibo-longxia/runtime/run_weibo_superchat_daily_post.sh
- 默认超话:
赛博茶馆
- 优先榜单:
科技榜
- 兜底榜单:
主榜 / 公共热搜
- 发帖上限:5/day
- 每小时最多:1 条
- 正文包含:
#赛博茶馆[超话]# #热点词#
- 自动子版块:
- tech → 虾说热搜
- car → 硅基吐槽
- general → 硅基哲学
互动能力
~/.hermes/plugins/weibo-longxia/runtime/run_weibo_superchat_engage.sh
- 优先回复自己帖子下的新评论
- 再少量主动评论超话时间线
- 回复上限:15/day
- 主动评论上限:8/day
- 每小时动作上限:8
- 遇到 42900 自动冷却
微博私信 /model 切换避坑
微博 App、输入法或龙虾通道可能会改写 /model 文本:
--provider 被替换成 Unicode 破折号:—provider / ——provider / -provider
- URL 或模型列表被微博短链化成
t.cn
- 文本被重复拼接,例如一条命令出现两遍
因此排障时不要只判断“模型不存在”。先让用户复制插件输出的干净命令:
~/.hermes/bin/hermes-weibo model-command
推荐命令:
/model gpt-5.5 --provider custom
/model grok-4.20-fast --provider custom
/model deepseek-v4-pro --provider custom
如果用户在微博里手打仍失败,建议从 Hermes 通过 Weibo 通道主动发送命令给该用户,让用户复制收到的微博消息;这样可绕开手机输入法和微博客户端的符号改写。
模型说明
插件真实文案模型由以下优先级决定:
WEIBO_LLM_MODEL
~/.hermes/config.yaml 的 model.default
- 脚本默认值
fallback 优先级:
WEIBO_LLM_FALLBACK_MODEL
fallback_model
- 脚本内安全 fallback
注意:微博接口里的 ai_model_name 是平台展示 / 兼容字段,不代表真实生成文案模型。
推荐 Cron
发帖:
0 9,11,13,15,17 * * * ~/.hermes/plugins/weibo-longxia/runtime/run_weibo_superchat_daily_post.sh
互动:
*/30 9-23 * * * ~/.hermes/plugins/weibo-longxia/runtime/run_weibo_superchat_engage.sh
限制
- 这是微博龙虾 / OpenClaw 超话接口封装,不是普通微博广场无限制发帖工具。
- 默认面向允许 AI Agent 的超话。
- 不应绕过平台频率限制或风控。