OpenClaw 通过腾讯的外部Documentation Index
Fetch the complete documentation index at: https://docs2.openclaw.ai/llms.txt
Use this file to discover all available pages before exploring further.
@tencent-weixin/openclaw-weixin 渠道插件连接到微信。
Status:外部插件。当前支持直接聊天和媒体。当前插件的能力元数据未声明群聊支持。
命名
- 微信 是这些文档中的面向用户名称。
- 微信 是腾讯包和插件 id 使用的名称。
openclaw-weixin是 OpenClaw 渠道 id。@tencent-weixin/openclaw-weixin是 npm 包。
openclaw-weixin。
工作原理
微信代码不在 OpenClaw 核心仓库中。OpenClaw 提供通用的渠道插件契约,外部插件提供微信专用运行时:openclaw plugins install安装@tencent-weixin/openclaw-weixin。- Gateway 网关发现插件清单并加载插件入口点。
- 插件注册渠道 id
openclaw-weixin。 openclaw channels login --channel openclaw-weixin启动二维码登录。- 插件将账号凭证存储在 OpenClaw 状态目录下。
- Gateway 网关启动时,插件会为每个已配置账号启动其微信监控器。
- 入站微信消息会通过渠道契约规范化,路由到选定的 OpenClaw 智能体,并通过插件出站路径发回。
安装
快速安装:登录
在运行 Gateway 网关的同一台机器上运行二维码登录:访问控制
私信使用渠道插件的标准 OpenClaw 配对和允许列表模型。 批准新的发送者:兼容性
插件会在启动时检查宿主 OpenClaw 版本。| 插件线 | OpenClaw 版本 | npm 标签 |
|---|---|---|
2.x | >=2026.3.22 | latest |
1.x | >=2026.1.0 <2026.3.22 | legacy |
Sidecar 进程
微信插件可以在监控腾讯 iLink API 时,在 Gateway 网关旁运行辅助工作。在 issue #68451 中,该辅助路径暴露了 OpenClaw 通用过期 Gateway 网关清理中的一个 bug:子进程可能尝试清理父 Gateway 网关进程,导致在 systemd 等进程管理器下出现重启循环。 当前 OpenClaw 启动清理会排除当前进程及其祖先进程,因此渠道辅助进程不得杀死启动它的 Gateway 网关。此修复是通用的;它不是核心中的微信专用路径。故障排除
检查安装和状态:requires compiled runtime output for TypeScript entry,说明该 npm 包发布时缺少 OpenClaw 所需的已编译 JavaScript 运行时文件。请在插件发布者发布修复包后更新/重新安装,或临时禁用/卸载该插件。
临时禁用: