Migrate from the old container
Version 0.x ran the WeChat Linux app inside a Docker container and drove its UI. The native daemon talks to WeChat directly, and can keep using the same profile files, so you keep your login and history.
-
Find the profile. It’s the container’s home directory: a bind mount or a named volume.
Terminal window docker inspect OLD_CONTAINER --format '{{json .Mounts}}' -
Stop the old container and back up the profile. Wait for any sends in progress to finish first. Keep the old container and its volumes; don’t delete them.
Terminal window docker stop OLD_CONTAINER# named volume:docker run --rm -v OLD_VOLUME:/src:ro -v "$PWD":/out busybox \tar -czf /out/wechat-profile-backup.tgz -C /src .# bind mount:tar -czf wechat-profile-backup.tgz -C /path/to/old/bind-mount . -
Point the native daemon at the profile.
Install
wx, then runwx serveand, in a second terminal:Terminal window wx auth login --official=/path/to/old/bind-mountFor a named volume, copy its contents to a folder on the host first, or use the container option.
Set up the Compose example, then mount the old volume instead of a host folder:
services:agent-wechat-native:volumes:- old-home:/profiles/wechatvolumes:old-home:external: truename: YOUR_OLD_VOLUMETerminal window wx --server-name box auth login --official=/profiles/wechat -
Check history and contacts before changing anything else.
Terminal window wx accounts listwx messages list filehelper --limit 5 -
Update OpenClaw, if you use it. Replace the old
serverUrlandtokensettings with anativeblock, as shown in OpenClaw quick setup. RemoveserverUrl,token,pollIntervalMsandauthPollIntervalMs. KeepdmPolicy,allowFromandgroups, and check they still do what you want once the channel is running.
What changed
| 0.x | 1.x |
|---|---|
wx up / wx down start the container | wx serve or wx daemon start |
API at /api | API at /v1, with different routes and IDs. See HTTP API. |
OpenClaw serverUrl + token | OpenClaw native block with a token reference |
| Screenshots, VNC, chat selection | Gone; the daemon has no UI |
| Wechaty puppet | Retired |
| Proxy settings | Not supported yet |