Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By paceaitian
Connect Claude Code to WeChat via QR code login, enabling message sending/receiving, contact management, and automated chat interactions through the iLink Bot API.
npx claudepluginhub paceaitian/cc-wechat用微信控制 Claude Code。扫码即用,不需要 OpenClaw。
微信 → 腾讯 iLink API → MCP Server (long-poll) → Claude Code
← sendMessage ← reply tool
底层直接调用腾讯的 iLink Bot API,不依赖 OpenClaw。
npx cc-wechat@latest install
这会:
Claude Code 的 Channels 功能受服务端灰度控制,部分用户需要 patch 才能使用:
npx cc-channel-patch@latest
.patched 文件,按提示手动替换即可npx cc-channel-patch unpatchclaude --dangerously-load-development-channels server:wechat-channel
npm i -g cc-wechat
claude mcp add -s user wechat-channel -- npx -y cc-wechat@latest
npx cc-wechat login
claude --dangerously-load-development-channels server:wechat-channel
登录后,在微信里发消息,Claude Code 会实时收到并处理。Claude 通过 reply 工具回复,消息会出现在你的微信对话里。
支持发送图片、视频和文件(通过 reply 工具的 media 参数)。
npx cc-wechat login
如果已经在 Claude Code 中,直接用 login 工具扫码。
不需要微信 Channel,只想启用 Channels 功能(用于 Telegram/Discord 等其他 Channel 插件):
npx cc-channel-patch@latest
这是一个独立的 npm 包,零依赖,一行命令。补丁内容:
| 补丁点 | 说明 |
|---|---|
| tengu_harbor feature flag | 绕过 Anthropic 的灰度开关 |
| Channel gate auth | 跳过 accessToken 认证检查(代理用户需要) |
| UI notice | 消除 "Channels are not currently available" 提示 |
CC 更新后可能需要重新 patch。
直接调用腾讯的 iLink Bot API(7 个 HTTP 接口):
| API | 功能 |
|---|---|
| get_bot_qrcode | 获取登录二维码 |
| get_qrcode_status | 轮询扫码状态 |
| getupdates | 长轮询收消息(35s 超时) |
| sendmessage | 发送消息 |
| sendtyping | 打字状态指示 |
| getconfig | 获取 typing ticket |
| getuploadurl | 获取 CDN 上传签名(媒体发送) |
通过 WECHAT_PROFILE 环境变量,不同项目可以绑定不同的微信号:
// 项目 .mcp.json
{
"mcpServers": {
"wechat-channel": {
"command": "npx",
"args": ["-y", "cc-wechat@latest"],
"env": { "WECHAT_PROFILE": "work" }
}
}
}
每个 profile 独立存储凭证和会话:
~/.claude/channels/wechat/
├── default/ # 默认账号(未设 WECHAT_PROFILE 时使用)
│ ├── account.json
│ └── sync-buf.txt
├── work/ # WECHAT_PROFILE=work
│ ├── account.json
│ └── sync-buf.txt
└── personal/ # WECHAT_PROFILE=personal
├── account.json
└── sync-buf.txt
claude.json 的配置作为默认账号,不需要设 WECHAT_PROFILE.mcp.json 中声明同名 wechat-channel 会覆盖全局配置WECHAT_PROFILE=work npx cc-wechat login)~/.claude/channels/wechat/<profile>/
├── account.json # 登录凭证
└── sync-buf.txt # 消息同步游标
MIT
Share bugs, ideas, or general feedback.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
WeChat channel for Claude Code — bridge WeChat messages into Claude Code sessions via iLink Bot API with media support.
WeChat (微信) channel for Claude Code — messaging bridge via iLink Bot API with built-in access control.
WeChat channel for Claude Code via iLink Bot API
WhatsApp channel for Claude Code — linked-device messaging bridge with built-in access control. Manage pairing, allowlists, and policy via /whatsapp:access.
Memory compression system for Claude Code - persist context across sessions
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim