Quick Start
The fastest way to get started is with the CLI. If you’d rather not manage infrastructure yourself, see Managed Hosting.
1. Install the CLI
npm install -g @agent-wechat/cliThis installs the wx command globally.
2. Start the container
wx upThis automatically pulls the Docker image from ghcr.io/thisnick/agent-wechat and starts the container with the correct flags, volume mounts, and auth token.
3. Log in to WeChat
wx auth loginA QR code is displayed in your terminal. Scan it with WeChat on your phone (tap + > Scan), then confirm the login.
4. Interact with WeChat
# List your chatswx chats list
# Find a chat by namewx chats find "John"
# Send a message (--text, --image, or --file)wx messages send <chatId> --text "Hello from agent-wechat!"wx messages send <chatId> --image photo.jpgwx messages send <chatId> --file document.pdf
# Read messageswx messages list <chatId>
# Download media (images, voice, video) from a messagewx messages media <chatId> <messageId>5. View the container via VNC
Open your browser to http://localhost:6174/vnc/ to see the WeChat desktop UI running inside the container. You’ll be prompted for the auth token — find it with:
cat ~/.config/agent-wechat/token6. Stop the container
wx downNext steps
- OpenClaw integration — add WeChat as a channel in your OpenClaw AI agent
- Wechaty integration — connect existing Wechaty bots to WeChat
- CLI commands reference — full list of everything the
wxcommand can do - Docker Compose setup — for production or networked deployments