Skip to content

Managed or external

External Managed HTTP + token starts and stops OpenClaw Gateway wx serve (yours) OpenClaw Gateway wx serve (child process)
ExternalManaged
Who runs wx serveYou: wx daemon, systemd or DockerOpenClaw, as a child process
Where it can runAnywhere the Gateway can reachSame machine as the Gateway
wx needed on the Gateway hostNoYes
Gateway stopsDaemon keeps runningDaemon stops
Use it whenYou also use the CLI, or run the daemon in DockerYou 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.