sgaofen/cli-in-wechat

Run Claude Code, Codex, Gemini, Kimi, OpenCode in WeChat

What it solves

This project provides a bridge between WeChat and AI programming CLI tools, allowing users to remotely control their local computer's development environment via WeChat messages. It eliminates the need to be physically at the terminal when interacting with AI coding agents.

How it works

The service runs as a local bridge on your computer. It connects to the official WeChat ClawBot iLink Bot API to receive commands. When a user sends a message in WeChat, the bridge routes the request to the installed CLI tool (such as Claude Code, Codex CLI, Gemini CLI, Kimi Code, or OpenCode) and sends the tool's output back to the WeChat chat.

Who it’s for

Developers who want to interact with their AI coding assistants via a mobile messaging app, enabling remote project management, code analysis, and task execution without needing a full terminal interface.

Highlights

  • Multi-tool Support: Supports switching between five major AI CLI tools using @ prefixes.
  • Interactive Questioning: Forwards AskUserQuestion prompts from tools like Claude Code directly to WeChat for user input.
  • Session Management: Includes session persistence, the ability to resume historical sessions via /resume, and cross-channel roaming to continue sessions in a local terminal.
  • étude Tool Chaining: Allows passing results from one tool to another using >> or chain calls via @tool1>tool2.
  • Extensive Command Set: Over 40 slash commands to manage settings, git operations, and tool-specific flags.
  • Official API: Uses the official WeChat ClawBot iLink Bot API to ensure account safety (no banning).
  • Granular Permissions: Supports different permission modes (auto, safe, plan) across different tools to control AI autonomy.

Related

  • Project
  • Project
  • Project
  • Project
  • Project