Weixin Claude Bot — AI skill for Claude Code
通过微信消息远程操控 Claude Code —— 基于腾讯 iLink 协议的微信 AI Bot.
How to install Weixin Claude Bot
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open crazynomad/weixin-claude-bot and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Weixin Claude Bot does
通过微信消息远程操控 Claude Code —— 基于腾讯 iLink 协议的微信 AI Bot.
Alternatives in AI
- Invisible Dots — Open-source, self-hosted alternative to OpenAI Dots, Meta Muse, Grok Bot, Manus Cue and Claude Cowork 31.8k ★
- Open Dots — Open-source, self-hosted AI agent workspace and alternative to OpenAI Dots, Meta Muse, Grok Bot, Instinct, Man 5.5k ★
- Bot On Anything — A large model-based chatbot builder that can quickly integrate AI models (including ChatGPT, Claude, Gemini) i 4.2k ★
README
weixin-claude-bot
通过微信消息远程操控 Claude Code —— 基于腾讯 iLink 协议的微信 AI Bot。
微信用户 ──► iLink 协议 ──► weixin-claude-bot ──► Claude Agent SDK ──► 本地文件系统
◄────────────────────────────────────────────────────────────────────────┘
在地铁上用微信让 Claude 帮你改代码、查日志、跑测试。
**这是一个实验教学项目**,配套视频讲解和完整教学文档。
**视频讲解**:[YouTube](https://youtu.be/-xCZ9KtaC04) | [B站](https://www.bilibili.com/video/BV18rXbBaEK7/)
**教学文档**:[docs/00-overview.md](docs/00-overview.md)(iLink 协议解析、架构设计、Claude Agent SDK 深度科普、踩坑记录等)
前置条件
| 依赖 | 最低版本 | 说明 |
|---|---|---|
| Node.js | 18+ | 运行环境 |
| Claude Code | 已安装并登录 | SDK 通过子进程调用 Claude Code CLI |
| Anthropic API Key | — | Claude Code 登录时已配置 |
| 微信 | 手机端 | 扫码登录用 |
安装 Node.js
# macOS (Homebrew)
brew install node
# 或使用 nvm
nvm install 18
安装 Claude Code
npm install -g @anthropic-ai/claude-agent-sdk
claude # 首次运行会引导登录 Anthropic 账号
安装
git clone https://github.com/crazynomad/weixin-claude-bot.git
cd weixin-claude-bot
npm install
依赖说明
**运行时依赖:**
| 包名 | 用途 |
|---|---|
@anthropic-ai/claude-agent-sdk |
Claude Agent SDK,通过子进程调用 Claude Code 的 agentic 能力 |
| `weixin-ilink` | 轻量 iLink 协议 SDK — QR 登录、消息收发、媒体上传,零运行时依赖 |
qrcode-terminal |
在终端显示微信登录二维码 |
**开发依赖:**
| 包名 | 用途 |
|---|---|
typescript |
TypeScript 编译器 |
tsx |
TypeScript 即时执行(免编译运行 .ts) |
@types/node |
Node.js 类型声明 |
快速开始
1. 扫码登录微信
npm run login
终端会显示二维码,用微信扫码并确认。登录凭证保存在 `~/.weixin-claude-bot/credentials.json`。
2. 配置(可选)
# 查看当前配置
npm run config
# 切换模型(完整 ID)
npm run config -- --model claude-sonnet-4-6 # 默认,速度与质量平衡
npm run config -- --model claude-opus-4-6 # 最强,适合复杂编程任务
npm run config -- --model claude-haiku-4-5-20251001 # 最快,适合简单对话
# 也可以用模型别名
npm run config -- --model sonnet # 等同 claude-sonnet-4-6
npm run config -- --model opus # 等同 claude-opus
Related Skills
Wx Bot
把微信接入你的 AI Agent(Grok / Muse / Claude 等)· Connect WeChat to your personal AI agent via official iLink
Weixin Bot
🚀 npx weixin-bot — One command, your WeChat AI bot is live. Supports OpenAI, Claude, Gemini, Ollama. Zero dep
Weixin Agent Gateway
一个面向微信入口的多后端 AI 网关,解耦微信接入层与后端路由层,统一接入 OpenClaw、Codex、Claude Code 等平级后端。
CLI WeChat Bridge
将 AI 命令行工具以最为原生的方式,集成到微信 ClawBot / 企业微信 bot 中,目前支持集成 Codex、Claude Code、OpenCode、Pi Agent。 支持微信和本地终端线程(thread/s
FriesTrader
Robinhood Agentic Trading agent — a fully automated AI trading bot placing real orders through Robinhood's Age
FreeGPT 4
FreeGPT-4 is an AI Assistant Discord Bot providing Unlimited access to popular AI models like ChatGPT, GPT-4,
Related Agents
Browser Stealth Agent
Stealth browser automation agent for targets behind Cloudflare, Akamai, Google, DataDome, or PerimeterX bot de
Claude Code Slack Bot
This is a TypeScript-based Slack bot that integrates with the Claude Code SDK to provide AI-powered coding ass
Firecrawl Expert
Expert in Firecrawl API for web scraping, crawling, and structured data extraction. Handles dynamic content, a