Skip to content

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.

Desktop app wx CLI OpenClaw Your code Daemon (hub) WeChat servers

Four ways to run it

Start at the top and stop at the first one that fits.

WayForYou needFollow
Desktop appTrying it, or using chats from a screenThe app and WeChat on your phone. The app runs and manages its own local hub.Desktop app
CLI on one machineScripts and terminal usewx installed on a machine that stays onInstall, then Connect your account
OpenClaw pluginAn AI agent that answers your chatsOpenClaw and a daemon it can reachOpenClaw quick setup
Daemon on a serverAlways on, with clients on other machinesA 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 needWhy
WeChat on your phoneYou 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.04See 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 FFprobeUsed for voice and video sends and some image previews. The Docker image includes them.
Optional: WeChat for Linux dataTo 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

WorksNot yet
Log in with a QR code or phone approvalJoining through invitation links, publishing announcements
Read history, contacts, groups and membersFetching old history from WeChat’s servers
Receive new messages as they arriveSending files above the 512 MiB limit
Send text, images, files, video, voice, stickers and link cardsUsing data from WeChat for macOS or Windows
Download images, files, video and voiceProxy support for outgoing connections
Recall your own messages, mark chats read and notify your other devicesAutomatic delivery of every phone-side group edit
Create and edit ordinary groups with an admin token