From WeChat Channel
Bridges WeChat messages to Claude Code via a long-poll daemon. Automatically opens a Claude Code session on incoming messages and replies.
How this skill is triggered — by the user, by Claude, or both
Slash command
/WeChat Channel:cc2wechatThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> 微信 ↔ Claude Code 消息桥。收到微信消息 → 拉起 cc 会话处理 → 自动回复。
微信 ↔ Claude Code 消息桥。收到微信消息 → 拉起 cc 会话处理 → 自动回复。 全局命令
cc2wechat(npm 包@aster110/cc2wechat),所有操作走 CLI,不要直接跑仓库里的 dist。
npm install -g @aster110/cc2wechat@latest # 需 Node >= 22 + Claude Code
cc2wechat skill install # 安装本 skill 到 ~/.claude/skills/
cc2wechat status # 所有账号 + daemon 运行态 + 端口
cc2wechat login --name <账号名>
浏览器弹二维码 → 告知用户用要绑定的微信扫码确认。凭证存 ~/.cc2wechat/,之后不需要重复登录。
cd <希望 cc 工作的目录> # start 时的 cwd = cc 的工作目录
cc2wechat start <账号名> # 不带名字 = 启动全部
cc2wechat stop [账号名]
cc2wechat restart [账号名]
端口从 18081 起按账号自动分配,健康检查:curl -s localhost:<端口>/health。
告知用户:给绑定微信发条消息,收到 cc 回复即通。
处理完必须回复,用户在微信端等着:
cc2wechat --text "回复内容"
cc2wechat --image /tmp/screenshot.png
cc2wechat --file /tmp/document.pdf
用户说"退出/结束/关闭" → 先回"再见",再 cc2wechat --end 关闭当前会话。
| 操作 | 命令 |
|---|---|
| 状态总览 | cc2wechat status |
| Web 终端(tmux delivery) | cc2wechat web <账号名> |
| 改账号名 | cc2wechat rename <旧> <新> |
| 看版本 | cc2wechat --version |
~/.claude/channels/wechat-channel/config.json:
{ "delivery": "auto" }
delivery 模式:auto(iTerm > tmux > SDK > Pipe 自动检测)/ terminal / tmux(headless/SSH 用,自动起 ttyd Web 终端)/ sdk / pipe。
PATH 含 /opt/homebrew/bin(否则 daemon spawn cc 时报 tmux: command not found)http_proxy/https_proxy 四件套(否则 cc 报 API Error: ConnectionRefused,实为被墙不是本地端口问题)launchctl bootout/bootstrap/kickstart 管理,cc2wechat stop 会被 KeepAlive 拉回来npx claudepluginhub aster110/cc2wechatConnects or disconnects WeChat account via QR code scan. Configures integration for Claude Code and Codex plugins using Bun script.
Sets up WeChat iLink Bot login via QR code scanning and checks channel status. Guides through login flow, polls for scan result, and displays credential/access state.
Sets up Telegram/Discord channels for remote Claude Code access. Enables sending commands from phone via messaging apps with --auto flag and FORGE_OUTPUT=json protocol.