Enterprise WeChat (WeCom) channel plugin for OpenClaw. Connect your OpenClaw AI assistant to WeCom.
- Streaming replies (chunked delivery for a smoother experience)
- AES-256-CBC message encryption (WeCom security compliance)
- Private chat and group chat
- Image message support (auto-decrypt WeCom encrypted images)
- Context reset (
/reset) - Auto message deduplication
- Runs as an OpenClaw plugin, auto start/stop with Gateway
- OpenClaw installed and running
- Node.js >= 18.0.0
- A WeCom (Enterprise WeChat) account (individuals can register for free, 1–9 users)
- A machine with a public webhook endpoint (or use ngrok / Tailscale for tunneling)
openclaw plugins install @creatoraris/openclaw-wecom- Log in to WeCom Admin Console
- Navigate to "App Management" -> "Apps"
- Find "Intelligent Assistant", click to enter
- Click "Create Intelligent Assistant", fill in a name (e.g. "OpenClaw AI Assistant")
- In the assistant detail page, click the "Receive Messages" tab
- Set Callback URL:
https://your-domain.com/callback - Click "Generate Token and EncodingAESKey"
- Save the Token and EncodingAESKey (needed for configuration)
- Click "Save"
For local development, use ngrok:
ngrok http 8788, then paste the generated URL as the callback
Edit ~/.openclaw/openclaw.json, add to plugins.entries:
{
"plugins": {
"entries": {
"openclaw-wecom": {
"enabled": true,
"config": {
"token": "your_token",
"encodingAESKey": "your_encoding_aes_key",
"corpId": "your_corp_id",
"port": 8788
}
}
}
}
}Corp ID can be found at the bottom of the "My Enterprise" page in WeCom Admin Console.
systemctl --user restart openclaw-gatewayFind the bot in WeCom and send a message. You should receive an AI reply.
| Parameter | Required | Default | Description |
|---|---|---|---|
token |
Yes | - | WeCom callback Token |
encodingAESKey |
Yes | - | WeCom callback EncodingAESKey |
corpId |
No | "" |
Corp ID (required for image download) |
corpSecret |
No | "" |
App Secret (usually not needed for Intelligent Bots) |
port |
No | 8788 |
Local HTTP listen port |
| Command | Description |
|---|---|
/reset |
Reset conversation context |
WeCom Client -> WeCom Server -> Plugin (HTTP Server) -> OpenClaw Gateway -> AI Model
|
Encrypt/Decrypt, Dedup, Streaming, Image Decryption
- AES-256-CBC encrypted communication
- Message signature verification
- Auto message deduplication (replay attack prevention)
- Sensitive config managed via OpenClaw config file, no environment variables
View logs:
journalctl --user -u openclaw-gateway -fCommon issues:
- Port in use: Check
lsof -i :8788, change port in config or stop the conflicting process - No reply: Verify OpenClaw Gateway is running, check logs for errors
- Callback verification failed: Ensure token and encodingAESKey match the WeCom console
MIT