WeChat channel plugin for Claude Code
npx claudepluginhub tttpeng/claude-channel-wechatWeChat channel plugin for Claude Code — receive and reply to WeChat messages via iLink protocol
WeChat channel plugin for Claude Code. Control your Claude Code session remotely via WeChat — send text, images, files, voice, and video.
In Claude Code, run:
/plugin marketplace add tttpeng/claude-channel-wechat
/plugin install wechat@claude-channel-wechat
git clone https://github.com/tttpeng/claude-channel-wechat.git
cd claude-channel-wechat
bun install
bun run setup
After installation, start Claude Code with the channel enabled:
claude --dangerously-load-development-channels plugin:wechat@claude-channel-wechat
Or for manual installation:
claude --dangerously-load-development-channels server:wechat
To auto-approve all WeChat plugin tool calls (so replies don't require manual permission), add --allowedTools:
claude --dangerously-load-development-channels plugin:wechat@claude-channel-wechat --allowedTools "mcp__wechat__*"
Then configure the WeChat connection:
/wechat:wechat-configure to check status/wechat:wechat-configure login — it will guide you to open another terminal and scan a QR code with WeChatToken is cached at ~/.claude/channels/wechat/token.json — no need to re-scan next time.
| Command | Description |
|---|---|
/wechat:wechat-configure | Check connection status, guided setup |
/wechat:wechat-configure login | Start QR login in external terminal |
/wechat:wechat-configure clear | Remove saved token (logout) |
| Type | Receive | Send |
|---|---|---|
| Text | Yes | Yes |
| Image | Yes (CDN download + AES-128-ECB decrypt) | Yes (AES encrypt + CDN upload) |
| File | Yes (CDN download + decrypt) | Yes (encrypt + CDN upload) |
| Voice | Yes (transcription) | No |
| Video | Yes (CDN download + decrypt) | No |
WeChat User <--iLink API--> MCP Server (local) <--stdio--> Claude Code
Receiving messages:
getupdates for incoming WeChat messagesSending messages:
reply tool with text and/or file pathssendmessage--dangerously-load-development-channels is required./wechat:wechat-configure clear then /wechat:wechat-configure login to re-authenticate.微信 Channel 插件,通过微信远程控制你的 Claude Code session。支持文本、图片、文件、语音、视频的收发。
在 Claude Code 中执行:
/plugin marketplace add tttpeng/claude-channel-wechat
/plugin install wechat@claude-channel-wechat
git clone https://github.com/tttpeng/claude-channel-wechat.git
cd claude-channel-wechat
bun install
bun run setup
安装后,启动 Claude Code 并启用 channel:
claude --dangerously-load-development-channels plugin:wechat@claude-channel-wechat
手动安装方式:
claude --dangerously-load-development-channels server:wechat
如需自动授权微信插件的所有工具调用(回复消息时无需手动确认),可加 --allowedTools:
claude --dangerously-load-development-channels plugin:wechat@claude-channel-wechat --allowedTools "mcp__wechat__*"
然后配置微信连接:
/wechat:wechat-configure 查看状态/wechat:wechat-configure login — 会引导你在另一个终端打开并用微信扫码Token 会缓存到 ~/.claude/channels/wechat/token.json,之后无需重复扫码。
| 命令 | 说明 |
|---|---|
/wechat:wechat-configure | 查看连接状态,引导配置 |
/wechat:wechat-configure login | 在外部终端启动扫码登录 |
/wechat:wechat-configure clear | 删除 token(退出登录) |
| 类型 | 接收 | 发送 |
|---|---|---|
| 文本 | 支持 | 支持 |
| 图片 | 支持(CDN 下载 + AES-128-ECB 解密) | 支持(AES 加密 + CDN 上传) |
| 文件 | 支持(CDN 下载 + 解密) | 支持(加密 + CDN 上传) |
| 语音 | 支持(语音转文字) | 不支持 |
| 视频 | 支持(CDN 下载 + 解密) | 不支持 |
微信用户 <--iLink协议--> MCP Server(本地)<--stdio--> Claude Code
接收消息:
getupdates 长轮询接收微信消息