← Back to directory
C

CLI Chat Bridge

Community
Reach local AI CLIs remotely through WeChat, WeCom, or Telegram.
Category
Dev Tools #409 of 751
Stars
★ 583 Very popular
Runtime
Node.js 22.13.0+
Credentials
API key / credential required
License
AGPL-3.0
Last commit
50FMRS · D

This project bridges chat channels to local AI CLIs, with README-documented support for multiple channels, CLI switching, approvals, and file transfer. It is not a hosted execution service and depends on local Node.js, CLIs, credentials, and workspace permissions. The supplied material includes no server manifest, MCP-client configuration example, or tool list, so the MCP transport, client compatibility level, and callable tools cannot be confirmed.

Strongest · Documentation 14/20 Weakest · Reliability 8/20

Reliability
8/20
Security and permissions
9/20
Maintenance
8/20
Documentation
14/20
Setup experience
11/20
Why each score
Reliability 8/20
The README describes the MCP collaboration tools and their intended use, including worker, approval, and queue behavior. The server manifest is unavailable, so tool definitions, initialization and tool-list handshakes, parameter validation, and error handling cannot be verified. No verifiable CI or test evidence is included, so the score is limited.
Security and permissions 9/20
The documentation says the bridge forwards remote messages to local CLIs, handles attachments, and exposes local IPC protected by a token. It also states that Pi runs with the launching user's permissions without an added tool-approval layer, and that operators must approve high-risk collaboration requests. Credential protection, IPC boundaries, data retention, and full permission enforcement are not shown, so points are deducted. The supplied material contains no evidence of a security red line.
Maintenance 8/20
The README provides an AGPL-3.0-or-later license statement, npm update instructions, and upgrade guidance, and identifies a GitHub repository and issue-feedback channel. The supplied material has no release history, recent commits, maintainer-response evidence, or security-response process, so maintenance activity and governance maturity remain uncertain.
Documentation 14/20
The README includes a Chinese and English entry point, installation and login steps, channel and adapter descriptions, control commands, limitations, and troubleshooting links. It also discloses important boundaries around attachments, Pi permissions, and approvals. However, MCP tool parameters, return structures, error examples, and server configuration are not detailed in the supplied material, and cost and data-flow details are incomplete.
Setup experience 11/20
The README specifies a Node.js version, global npm installation, configuration and pairing steps for three channels, and direct-launch and daemon commands. The overall path is fairly clear. It provides no MCP server configuration example for a mainstream client; the manifest is unavailable, and there is no verifiable installation or end-to-end execution evidence, which limits the score.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

Best for

  • Developers who want the local terminal to remain their primary workspace.
  • Users who need remote access to local Codex, Claude Code, OpenCode, or Pi through WeChat, WeCom, or Telegram.
  • Local workflows that need multiple sessions, CLI switching, approval interaction, or file transfer.

Not for

  • Users seeking a cloud-hosted service that runs without a local computer and CLI.
  • Users who want chat to be a complete primary workspace, or need a documented MCP tool list and client configuration.
  • Users unwilling to let local CLIs read and write project files or run commands with the permissions of the account that started the bridge.

Required permissions

  • Runs a local Node.js program and installed CLI tools; underlying CLIs use the local permissions of the account that launched the bridge command.
  • Requires setup for the chosen channel: WeChat QR login, WeCom Bot ID and Secret, or a Telegram Bot Token and operator pairing.
  • The Pi bridge runs as a full-permission local agent. The README says the bridge adds no tool approval layer and passes --approve to trust project configuration, extensions, and other local files.
  • Inbound files are saved locally; whether a model can read or parse them depends on the relevant CLI's capabilities.

Risks and side effects

  • Remote messages can trigger local CLI work. File access and command execution use local user permissions, so unintended or malicious input could cause unwanted local actions.
  • Approval handling and auto-approval behavior affect permission requests; the README says Pi has no added approval layer and the auto-approval option applies to all windows.
  • The README says images are not OCRed automatically and PDF or DOCX text is not extracted automatically; processing depends on the model and CLI.
  • Protect Telegram Bot Tokens, WeCom Secrets, and local login credentials. The supplied material does not describe separate MCP-server authentication or network exposure settings.

Setup

Before you start

Runtime:Node.js 22.13.0+

Other optional settings (2)
CLI_BRIDGE_STRICT_APPROVAL optional Set to `1` to make collaboration tool calls follow the CLI approval settings; configure it in the runtime configuration.
CLI_BRIDGE_AGENT_BUS optional Set to `0` to disable automatic configuration of collaboration tools; configure it in the runtime configuration.

The README requires Node.js >= 22.13.0, at least one supported local CLI executable on PATH, and a configured remote channel. Install globally with npm install -g cli-chat-bridge@latest. Then use wechat-setup, wecom-setup, or telegram-setup to sign in or pair the channel, and launch the appropriate wechat-, wecom-, or telegram- CLI command from the target project directory. The supplied material does not include an MCP client configuration example.

Check that it works

In a Codex or Claude Code instance managed by the bridge, check that `cli-bridge` MCP tools such as `list_agents` and `send_to_agent` are configured. Try listing available CLI windows and confirm the tools return results.

Troubleshooting

  1. Run wechat-daemon --doctor or the equivalent channel daemon --doctor to check Node.js, CLI, locks, endpoints, and daemon status.
  2. Check that the local CLI is installed, executable from PATH, and meets the README's version requirements; Pi 0.85.0 and later requires Node.js >= 22.19.0.
  3. If node-pty fails to install or load, check platform build tools or rebuild the module as described in the README; Claude Code may not bridge correctly in PTY fallback mode.
  4. If a local message sent first after a cold start fails to return to WeChat, send a message from WeChat to the bot to refresh the context_token.
  5. Check channel credentials, operator pairing, and Telegram connectivity; one Telegram Bot Token can run only one bridge or daemon at a time.

Things to try

Once connected, you can ask your AI assistant things like:

  • List the available CLI windows.
  • Ask Codex to review this code and return its findings.
  • Check the status of a task I delegated.

Use cases

Send tasks to a local CLI session and receive output and status through a chat channel while away from the computer.
Review and handle local CLI approval requests or pending questions through chat.
Switch between local CLIs, sessions, or already-open work directories, and transfer files.
Delegate tasks between CLI sessions managed by one daemon; the README says some bridge-launched Codex and Claude Code sessions configure collaboration MCP tools automatically.

Overview

CLI Chat Bridge forwards messages from WeChat, WeCom, or Telegram to locally running Codex, Claude Code, OpenCode, or Pi, then syncs output, approval requests, and status back to the corresponding channel. The local terminal remains the primary workspace. The project supports multiple CLIs, instances, and directories, as well as file transfer. The README mentions an MCP server entry point and CLI collaboration tools, but the supplied material contains no server manifest or MCP-client installation example.

Similar servers

Source revision 14818d9a7bd1 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/cli-wechat-bridge.svg)](https://followmcp.com/en/servers/cli-wechat-bridge)