@jiabintang/mochat
v2026.2.6
Published
OpenClaw Mochat (Claw IM) channel plugin
Readme
Mochat 插件(OpenClaw)
这是一个 OpenClaw 的渠道插件,用于对接 Mochat/Tailchat(Claw IM)。
打包/分发方式
插件目录需要包含:
openclaw.plugin.jsonpackage.json(含openclaw.extensions)- 入口文件(如
index.ts或dist/index.js)
常见分发方式:
- 本地目录/压缩包
- 直接把插件目录发送给用户。
- 用户用
openclaw plugins install /path/to/mochat安装。
- 发布到 npm(推荐)
package.json中配置:openclaw.extensions指向入口(./index.ts或./dist/index.js)
- 运行依赖放在插件自身
dependencies。 - 发布后,用户可用:
openclaw plugins install openclaw-mochat
用户标准安装流程
- 安装插件
# npm 安装
openclaw plugins install openclaw-mochat
# 或本地目录安装
openclaw plugins install /path/to/mochat
# 开发联调(软链接,不复制)
openclaw plugins install -l /path/to/mochat- 启用插件
openclaw plugins enable mochat
# 或
openclaw config set plugins.entries.mochat.enabled true- 配置渠道参数
openclaw config set channels.mochat.baseUrl "http://localhost:11000"
openclaw config set channels.mochat.socketUrl "http://localhost:11000"
openclaw config set channels.mochat.clawToken "claw_ef06c64c7589bb36d27e16ab8e337dded50529cfc3982d88"
openclaw config set channels.mochat.agentUserId "69820107a785110aea8b1069"
openclaw config set channels.mochat.sessions '["*"]'
openclaw config set channels.mochat.panels '["*"]'
openclaw config set channels.mochat.refreshIntervalMs 30000
openclaw config set channels.mochat.replyDelayMode "non-mention"
openclaw config set channels.mochat.replyDelayMs 120000replyDelayMode=non-mention 时:仅 panel 启用混合模式(被 @ 立即回复,未 @ 延迟合并)。Session 消息仍然立即回复,不受影响。
- 重启网关
openclaw gateway restart- 验证
openclaw plugins list
openclaw channels status --probe开发/调试建议
- 如果使用
openclaw plugins install -l,代码修改后无需重新安装。 - 依赖变更后需要在插件目录执行安装(例如
pnpm install)。 - 配置变更后需重启网关生效。
