微信通道上线技巧:按 webhook 可达性做四段式验收
场景:微信通道“能登录但收不到消息”。做法:先配置 apiKey/proxyUrl/webhookHost,再用端口可达性+网关状态+扫码登录+回环消息四段验证,避免只看二维码登录成功。
GITHUBDiscovered 2026-02-18Author @freestylefly
Prerequisites
- You have valid WeChat channel API credentials and a reachable proxy service URL.
- Your server has a public IP/domain and can expose webhook port (default 18790).
Steps
- Install plugin and set required config fields: apiKey, proxyUrl, webhookHost, then enable channel.
- Start gateway and complete first-time QR login from terminal output.
- Check webhook network path: confirm webhook port is open and externally reachable.
- Send one private message and one group message to verify both receive paths.
- If failure occurs, verify gateway status and compare configured webhookHost with real public endpoint.
Commands
openclaw plugins install @canghe/openclaw-wechatopenclaw config set channels.wechat.apiKey "wc_live_xxxxxxxxxxxxxxxx"openclaw config set channels.wechat.proxyUrl "http://your-proxy-server:3000"openclaw config set channels.wechat.webhookHost "your-server-ip"openclaw config set channels.wechat.enabled trueopenclaw gateway startopenclaw gateway statusVerify
Gateway remains running, QR login succeeds, and both private/group test messages arrive in OpenClaw.
Caveats
- Cloud deployment requires correct public webhookHost; local LAN IP usually fails from internet callbacks.
- API key purchase/availability process may change by provider policy(需验证).
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗