OpenClaw Local Setup
When running OpenClaw and agent-wechat on the same machine (not in containers), the setup is straightforward — everything communicates over localhost.
Setup
1. Start agent-wechat
npm install -g @agent-wechat/cliwx up2. Install and configure the plugin
openclaw plugins install @agent-wechat/wechatopenclaw channels add --channel wechatNo additional configuration is needed — the defaults (http://localhost:6174 and the shared token file) work automatically.
3. Start OpenClaw
openclaw gateway start4. Log in
Ask your bot to log in, or use the CLI:
openclaw channels login --channel wechatHow it works locally
- The agent-wechat container exposes port
6174onlocalhost - The token file at
~/.config/agent-wechat/tokenis shared between the CLI, the container, and OpenClaw - No Docker networking configuration is required
When to use container setup instead
Use the Container Setup when:
- OpenClaw itself runs in a Docker container
- You need both services on the same Docker network
- You’re deploying to a server