OpenClaw(微信)

通过腾讯官方的 openclaw-weixin 插件,把 OpenClaw 接入微信私聊。

先按 OpenClaw(终端) 装好 OpenClaw 并测试成功。微信插件需要和网关在同一台电脑上登录。

1. 安装微信插件

npx -y @tencent-weixin/openclaw-weixin-cli install

上面的命令不能用时,手动安装并启用:

openclaw plugins install "@tencent-weixin/openclaw-weixin"
openclaw plugins enable openclaw-weixin

2. 扫码登录

在运行网关的电脑上执行,终端会显示二维码,用手机微信扫码并确认授权:

openclaw channels login --channel openclaw-weixin

3. 测试

检查插件和渠道状态,显示未连接时先重启网关:

openclaw plugins list
openclaw channels status --probe
openclaw gateway restart

在微信里给机器人发一条私聊消息,比如「你好」,正常回复即配置成功。

更新于 2026 年 11 月 24 日