cli-in-wechat  by sgaofen

Control AI programming CLIs via WeChat

Created 1 month ago
264 stars

Top 96.5% on SourcePulse

GitHubView on GitHub
Project Summary

This project offers a bridge service to run popular AI programming CLI tools (Claude Code, Codex, Gemini, Kimi, OpenCode) within WeChat via the official iLink Bot API. It targets developers seeking seamless integration of AI coding assistants into their communication workflow, enabling remote control of local execution.

How It Works

A local bridge service acts as an intermediary, routing WeChat messages via the official iLink Bot API to spawn and manage specified AI CLI tools on the user's computer. Key design choices include leveraging the secure iLink channel, implementing robust message routing (@ prefixes, reply intelligence), and supporting advanced features like session continuity, cross-channel roaming, and tool chaining (@tool1>tool2). This centralizes AI tool interaction within a familiar chat interface while retaining local execution power.

Quick Start & Requirements

  • Prerequisites: Node.js >= 18, WeChat with ClawBot plugin, and at least one AI CLI tool (e.g., npm install -g @anthropic-ai/claude-code).
  • Installation: git clone https://github.com/sgaofen/cli-in-wechat.git, cd cli-in-wechat, npm install.
  • Running: npm run dev or npm run dev:debug. Requires WeChat QR scan for ClawBot authentication.
  • Authentication: WeChat QR scan for ClawBot; individual AI tool authentication (API keys, OAuth).

Highlighted Details

  • Supports five major AI programming CLI tools: Claude Code, Codex CLI, Gemini CLI, Kimi Code, OpenCode.
  • Enables seamless tool switching via @ prefix and intelligent message routing.
  • Features session continuity (/resume) and cross-channel roaming (/session set).
  • Supports tool chaining (@tool1>tool2) and output piping (>>).
  • Intelligently forwards interactive AI prompts to WeChat for user input.
  • Utilizes the official WeChat iLink Bot API for secure communication.

Maintenance & Community

No specific details regarding maintainers, community channels (e.g., Discord, Slack), or project roadmap are provided in the README.

Licensing & Compatibility

  • License: MIT License.
  • Compatibility: MIT license permits broad use, including commercial applications and integration with closed-source projects, provided attribution is maintained.

Limitations & Caveats

The project requires a locally running bridge service and depends on the stability of the WeChat iLink Bot API and individual AI CLI tools. Setup involves installing multiple components: Node.js, WeChat ClawBot plugin, AI CLI tools, and the bridge service. iLink Bot API availability may be subject to WeChat's platform policies.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
9
Issues (30d)
0
Star History
208 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.