Restarting & Recovery
Restarting the container
Via the CLI
wx down && wx upVia Docker Compose
docker compose restart agent-wechatOr for a full stop and start:
docker compose downdocker compose up -dWhat happens on restart
- The WeChat session usually persists across restarts. Scan the QR code in WeChat if prompted.
- If the session does expire, the API will report a logged-out status. Run
wx auth loginor ask your OpenClaw bot to log in again. - The agent database (
/data/agent.db) persists across restarts. - All WeChat data (messages, contacts, media) persists in the
agent-wechat-homevolume.
When to restart
Restart the container when:
- The bot stops responding to messages
- You see “no action selected” errors in the logs
- The container appears healthy but WeChat is unresponsive
- After updating the auth token
Wiping WeChat data (fresh start)
If restarting doesn’t fix the issue, you can wipe the WeChat data and start from scratch. This will delete all cached messages and media, and you will need to scan the QR code again.
# Stop the containerwx down# or: docker compose down
# Remove the WeChat home volumedocker volume rm agent-wechat-home
# Start freshwx up# or: docker compose up -dWiping everything (full reset)
To completely reset both agent data and WeChat data:
wx downdocker volume rm agent-wechat-data agent-wechat-homewx upThis removes:
- The agent database
- All WeChat user data
- The login session
You will need to generate a new auth token and re-scan the QR code.