wechat-openclaw-channel is an OpenClaw channel plugin that lets you chat with an OpenClaw agent from WeChat. It supports two login modes: QClaw, which obtains a token through WeChat platform OAuth, and WorkBuddy, which obtains a token through CodeBuddy OAuth (copilot.tencent.com). In both modes the plugin connects to a WebSocket gateway and relays messages between WeChat and the agent.
Setup has three steps: an interactive login to choose the mode, a gateway restart, and a one-time bind that returns a link to open in WeChat to bind the device. Credentials are written automatically to the OpenClaw config file, alongside the active loginMode and an environment setting of production or test.
Features
- QClaw mode: WeChat platform OAuth login with a QR-code flow and a QClaw WebSocket client
- WorkBuddy mode: CodeBuddy OAuth login with a Centrifuge WebSocket client
- Device binding: openclaw wechat bind issues a link that pairs the WeChat account with the gateway
- CLI commands: openclaw wechat login, logout, and bind
- Message adaptation: translates between the AGP protocol and OpenClaw messages and subscribes to agent events
- Environment switch: production or test endpoints per configuration
