by invzhi
Give AI agents a real WeChat desktop they can see and operate.
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
# Add to your Claude Code skills
git clone https://github.com/invzhi/wechat-useGuides for using ai agents skills like wechat-use.
Give AI agents a real WeChat desktop they can see and operate.
wechat-use provides a persistent, agent-ready Linux WeChat environment. An AI agent connects to a token-protected MCP endpoint to automate the desktop, while a human can use the same environment in a browser to sign in, supervise the agent, or take over when needed.
Docker packages WeChat, its desktop dependencies, Chinese input support, and the automation service into a reproducible environment. It is the delivery mechanism; the goal is to make WeChat a practical tool for AI agents.
AI agent -> MCP -> Automation service -> Linux WeChat desktop <- Browser - Human
The agent and the human share the same WeChat session. The MCP endpoint is intended for agent automation; browser access is intended for setup, supervision, and manual intervention.
5800 for the browser desktop and 3211 for automation.Important: Do not run WeChat without a residential IP address.
Create your local configuration:
cp .env.example .env
Generate a private automation token:
openssl rand -hex 32
Add it to .env:
CUA_ENV_TOKEN=your-generated-token
Start the WeChat workspace:
docker compose up -d
Open http://localhost:5800 and scan the QR code to sign in.
If you are accessing WeChat from another computer, replace localhost with the Docker host's address. Only use a trusted network or a secure tunnel.
Configure an MCP-compatible agent with this endpoint:
http://localhost:3211/mcp
Use the token from .env as a bearer token:
Authorization: Bearer <CUA_ENV_TOKEN>
Once connected, the agent can automate the same desktop visible in your browser. Keep the browser session available for QR-code sign-in, verification challenges, and any actions that require human approval.
WeChat saves your login state and files in:
wechat/.xwechatwechat/xwechat_filesKeep both directories to preserve your agent's workspace when updating or restarting. Back them up regularly, and stop WeChat before making a backup:
docker compose down
These directories contain sensitive account data and personal files. Keep them private.
The browser desktop does not include authentication or encryption. Do not expose ports 5800 or 3211 to the public internet. Use a trusted local network, firewall rules, or a secure tunnel, and keep your automation token private.
An agent operating WeChat can act through your account and access information available in the desktop session. Supervise its actions, limit access to trusted agents, and require human confirmation for sensitive operations.
wechat-use is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by invzhi. Give AI agents a real WeChat desktop they can see and operate. It has 51 GitHub stars.
wechat-use's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/invzhi/wechat-use" and add it to your Claude Code skills directory (see the Installation section above).
wechat-use is primarily written in Dockerfile. It is open-source under invzhi on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh wechat-use against similar tools.
No comments yet. Be the first to share your thoughts!