Install and connect WeChat as a messaging channel for OpenClaw.
openclaw CLI available)bash
npx -y @tencent-weixin/openclaw-weixin-cli@latest install
This command will:
@tencent-weixin/openclaw-weixin pluginThe CLI prints an ASCII QR code in the terminal. The user must scan it with their WeChat mobile app to authorize the connection.
Important: The QR code renders correctly only in a monospace terminal. It will appear garbled in chat interfaces (webchat, Feishu, etc.) due to proportional fonts. If the user cannot see the QR code clearly:
openclaw channels login --channel openclaw-weixin after plugin is installedAfter scanning, verify the connection:
bash
openclaw status 2>/dev/null | grep -i "openclaw-weixin"
Expected output should show openclaw-weixin │ ON │ OK.
If the plugin was installed but the gateway wasn't restarted:
bash
openclaw gateway restart
bash
openclaw channels login --channel openclaw-weixin
Each scan creates a new account entry. Multiple WeChat accounts can be online simultaneously.
To isolate conversation context per WeChat account:
bash
openclaw config set agents.mode per-channel-per-peer
IssueSolutionQR code garbled in chatRun the command in a real terminalQR code expiredRe-run openclaw channels login --channel openclaw-weixinPlugin not loadingCheck openclaw status, ensure plugins.entries.openclaw-weixin.enabled is true"No install record" warningNon-critical; plugin still functions if files exist locallyConnection droppedRe-run login command to re-authenticate