sgaofen/cli-in-wechat
Run Claude Code, Codex, Gemini, Kimi, OpenCode in WeChat
What it solves
Running AI coding tools like Claude Code or Codex usually means sitting at your computer and typing in a terminal. This project removes that constraint: it lets you send messages from the WeChat app on your phone to control those same tools running on your computer. It also solves the problem of having to switch between different CLI tools by giving you one unified interface — you can swap tools, chain them together, and approve sensitive operations right from WeChat.
How it works
The project is a bridge service installed on your computer. It connects to WeChat through the official ClawBot plugin API (called iLink Bot API) using a QR-code login, so no extra accounts or unofficial hacks are needed. Once connected, your WeChat messages are routed to whatever CLI tool you have selected. The bridge launches the CLI locally and streams the output back to WeChat. You can switch between tools with /use, call a specific tool with @toolname, or chain tools with @tool1>tool2. For permissions, the /mode safe setting sends sensitive-operation requests to WeChat, and you reply with a number (1/2/3) to allow once, allow similar actions for the session, or reject. The bridge keeps real session IDs per user and per tool, so conversations don't get mixed up. It also auto-detects which tools are installed and only lists those in /use. Custom CLIs can be added via a config file without writing code — just define the command and protocol (ACP or plain text).
Who it's for
This is for developers who already use AI coding CLIs and want to initiate or manage tasks from their phone — for example, while away from the keyboard, or to quickly kick off a job and then come back to review the result. It's also useful for teams that need a shared approval flow, since risky actions can be sent to a designated user's WeChat for confirmation. Because it's lightweight and only depends on Node.js and the CLI tools you install, it suits individuals or small teams who are comfortable running a local bridge service.
Highlights
- Works with multiple AI coding CLIs out of the box: Claude Code, Codex, Gemini, Kimi, OpenCode, plus ACP-based presets for Qwen, Copilot, Cursor, CodeBuddy, Droid, Devin, Qoder, MiniMax.
- One WeChat account can drive any installed CLI; switch with
/useor@tool. - Support for chain calling (
@a>b) and continuing from previous results (>>). - Real session continuity per user and tool — no cross-contamination.
- WeChat-based approval for sensitive operations under
/mode safe, with auto-reject after 5 minutes. - Minimal runtime dependencies: only 2 (plus optional proxy support via
undici). - Custom agents can be added via
config.jsonwithout writing code, using ACP or text protocol. - Official WeChat API channel (no risk of account ban).
Related
- Project
- Project
- Project
- Project
- Project