Managed or external
| External | Managed | |
|---|---|---|
Who runs wx serve | You: wx daemon, systemd or Docker | OpenClaw, as a child process |
| Where it can run | Anywhere the Gateway can reach | Same machine as the Gateway |
wx needed on the Gateway host | No | Yes |
| Gateway stops | Daemon keeps running | Daemon stops |
| Use it when | You also use the CLI, or run the daemon in Docker | You want one process to manage |
External is the default choice. The quick setup uses it.
Managed mode
Stop any other daemon that uses the same data folder, then replace the native block:
"native": { "mode": "managed", "accountId": "ACCOUNT_ID", "dataDir": "/home/you/.local/share/agent-wechat", "listen": "127.0.0.1:6174", "token": { "source": "env", "provider": "default", "id": "AGENT_WECHAT_TOKEN" }, "consumerStateDir": "/home/you/.openclaw/agent-wechat"}OpenClaw finds wx on PATH, or set executable to its full path. Log in to the account with the CLI before switching to managed mode; the plugin doesn’t log in for you.