Wechat Agent Channel
Description
Use WeChat to route messages to Claude Code or Codex.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
wechat-agent-channel
[简体中文](#zh-cn) | [English](#en)
简体中文
把微信消息接到本地 AI 编码助手里用。支持 `Codex`、`OpenCode`、`Claude Code`。
先准备好
- Python 3.11+
- Node.js 18+
- 微信端已接入 ClawBot
- 你要用的 CLI 已安装,并且终端里能直接运行
常见安装:
npm install -g @openai/codex
npm install -g opencode-ai
npm install -g @anthropic-ai/claude-code
安装项目依赖:
npm install
用 Codex / OpenCode
- 先确认命令能跑:
codex
opencode
- 选择默认 provider:
npm run setup
- 启动:
npm start
如果你想重新选择默认 provider:
npm run setup:reset
用 Claude Code
- 微信扫码登录:
npm run claude:setup
- 生成或更新
.mcp.json:
npm run claude:install
- 启动 Claude Code:
claude --dangerously-load-development-channels server:wechat
微信里怎么用
启动后,直接给 ClawBot 发消息就行。
示例:
帮我写个 Python 脚本解释一下这个项目怎么启动帮我看看这个报错是什么意思
也可以直接发附件:
- 图片
- 文件
- 语音
- 视频
附件会先保存到当前项目下的 `.wechat-agent/attachments/`,再交给 agent 读取。
如果你已经选了默认 provider,就不用再写前缀。
会话命令
/new或新任务/new 重构支付/list或会话列表/current或当前会话/switch 2或切换会话 2/delete 2或删除会话 2/clear或清空会话
OpenCode 模型命令
/models或模型列表/model/model m2.5/model clear
常用环境变量
BOT_TOKENWECHAT_BASE_URLWECHAT_CDN_BASE_URLWECHAT_AGENT_PROVIDERWECHAT_OUTBOUND_MEDIA_MAX_BYTESCODEX_MODELCODEX_TURN_TIMEOUT_MSCODEX_BINOPENCODE_MODELOPENCODE_TURN_TIMEOUT_MSOPENCODE_THINKINGOPENCODE_BIN
说明
Codex和OpenCode走本地 CLIClaude Code走独立 MCP 插件模式- 当前项目调用
Codex时默认使用--dangerously-bypass-approvals-and-sandbox,这样本地 CLI 才能真正拿到完整执行权限;请只在你信任的本机环境里使用 - 当前项目支持把微信图片、文件、语音、视频保存到本地并交给 agent 使用
Codex/OpenCode如需回传本地文件,可在最终回复末尾输出wechat-replyJSON 代码块,桥会按其中的media_paths回传到微信- 为避免大文件在微信侧出现“下载中断”,回传文件默认限制为
50MB;可用WECHAT_OUTBOUND_MEDIA_MAX_BYTES覆盖,例如52428800 - 微信登录凭据默认保存在用户目录下
致谢
部分附件处理和接入思路参考了 `cc-connect`:
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11