Choose how to run it
agent-wechat runs your WeChat account without the WeChat app. It talks to WeChat directly and keeps your chats in WeChat’s own data format. You use it from a desktop app, the wx command-line tool, an OpenClaw agent or your own code.
Something has to stay connected to WeChat: a program called the daemon (wx serve), also called the hub. Every client talks to it over an HTTP API.
Four ways to run it
Start at the top and stop at the first one that fits.
| Way | For | You need | Follow |
|---|---|---|---|
| Desktop app | Trying it, or using chats from a screen | The app and WeChat on your phone. The app runs and manages its own local hub. | Desktop app |
| CLI on one machine | Scripts and terminal use | wx installed on a machine that stays on | Install, then Connect your account |
| OpenClaw plugin | An AI agent that answers your chats | OpenClaw and a daemon it can reach | OpenClaw quick setup |
| Daemon on a server | Always on, with clients on other machines | A server. Docker is recommended, to keep it isolated. Tailscale is recommended for reaching it. | Run on a server, then Reach it from other machines |
What you need
| You need | Why |
|---|---|
| WeChat on your phone | You log in by scanning a QR code or approving on the phone. |
| A computer to run the daemon: Linux (x64 or ARM64), macOS (Apple Silicon) or Windows (x64 or ARM64) | The daemon stays connected to WeChat there. For the CLI on Linux, you need glibc 2.36+ (Debian 12, Ubuntu 24.04 or newer). |
| Desktop app only: macOS on Apple silicon, Windows, or Ubuntu 24.04 | See Desktop app for the download for each. |
| CLI only: Node 24.16+ | Only if you install with npm or pnpm. A standalone download needs no Node. |
| FFmpeg and FFprobe | Used for voice and video sends and some image previews. The Docker image includes them. |
| Optional: WeChat for Linux data | To keep your existing chat history, agent-wechat can use the data folder of WeChat for Linux. Without it, you start with a new profile. |
What works
| Works | Not yet |
|---|---|
| Log in with a QR code or phone approval | Joining through invitation links, publishing announcements |
| Read history, contacts, groups and members | Fetching old history from WeChat’s servers |
| Receive new messages as they arrive | Sending files above the 512 MiB limit |
| Send text, images, files, video, voice, stickers and link cards | Using data from WeChat for macOS or Windows |
| Download images, files, video and voice | Proxy support for outgoing connections |
| Recall your own messages, mark chats read and notify your other devices | Automatic delivery of every phone-side group edit |
| Create and edit ordinary groups with an admin token |