🦞OpenClaw Workshop
🚀 模块 1:OpenClaw 安装部署(~50分钟)

1-6 连接微信

⏱️ 预计时间:10分钟

OpenClaw 也支持接入个人微信,让你的虾通过微信私聊和群聊工作。

⚠️
注意

微信插件基于非官方协议(iPad/Mac 协议),使用需自行承担风险。仅供学习和研究用途。

第一步:安装微信插件

目前有两个主流微信插件可选:

方案 A:openclaw-wechat(推荐)

bash
openclaw plugins install @canghe/openclaw-wechat

方案 B:腾讯官方 openclaw-weixin

bash
openclaw plugins install @tencent-weixin/openclaw-weixin

第二步:配置插件(以方案 A 为例)

bash
# 设置 API Key(需从服务商获取)
openclaw config set channels.wechat.apiKey "wc_live_xxxxxxxxxxxxxxxx"

# 设置代理服务地址
openclaw config set channels.wechat.proxyUrl "http://your-proxy:3000"

# 设置 webhook 公网地址(云服务器部署必填)
openclaw config set channels.wechat.webhookHost "你的服务器IP"

# 启用微信通道
openclaw config set channels.wechat.enabled true

第三步:扫码登录

bash
openclaw gateway start

首次启动时终端会显示二维码,用微信扫码即可登录。登录凭证会自动保存,下次启动无需重复扫码。

ℹ️
提示

微信插件支持私聊和群聊、文本和图片消息、多账号配置。详细文档:https://github.com/freestylefly/openclaw-wechat

步骤 6 / 21
29%