Oh My Wechat — Development skill for Claude Code
oh-my-wechat 用来把微信消息桥接到本地 CLI agent,这个项目是我跟我的外国朋友克劳德一块共同完成.
How to install Oh My Wechat
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open duzhenxun/oh-my-wechat and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Oh My Wechat does
oh-my-wechat 用来把微信消息桥接到本地 CLI agent,这个项目是我跟我的外国朋友克劳德一块共同完成.
Alternatives in Development
- Understand Anything — Graphs that teach graphs that impress 80.7k ★
- OpenAI Codex CLI — (Rust implementation) 67.8k ★
- Mempalace Help — Show comprehensive MemPalace help — available skills, MCP tools, CLI commands, hooks, and architecture 58.6k ★
README
oh-my-wechat
`oh-my-wechat` 用来把微信消息桥接到本地 CLI agent。你可以在微信里远程驱动本机的 `Codex`、`Claude Code`、`OpenCode`,或者一个持久 shell,并把结果、附件和审批流再回到微信。

主要能力
- 在微信里给本地 agent 发消息并接收结果
- 支持
Codex/Claude Code/OpenCode/shell四种模式 - 支持远程审批:在微信里直接
/yes、/no - 支持把本地图片、视频、文件、语音上传并发回微信
- 支持把微信里的图片、视频、文件传给 agent 使用
- 本地终端可实时显示执行过程、时间戳与颜色区分
- 单活 bridge:同一时间只保留一个活动 bridge,避免串线
环境要求
- Node.js
>= 20.11.0 - 本机已安装并可使用目标 CLI,例如:
codex、claude、opencode
安装
全局安装:
npm install -g oh-my-wechat
从源码安装:
npm install
npm run build
npm link
登录
首次使用先执行:
omw setup
登录信息会保存在:
~/.oh-my-wechat/account.json
如需重新登录:
omw setup --force
快速开始
进入你希望 agent 操作的项目目录,然后启动一个模式:
omw codex
omw claude
omw opencode
omw shell
通用写法:
omw bridge --mode codex --cwd /path/to/project
omw bridge --mode shell --command "pwsh"
启动后:
- bridge 会开始轮询微信消息
- 你在微信里发普通消息,bridge 会转给当前 agent
- agent 的最终结果会回到微信
- 本地终端会实时显示接收文案和执行过程
模式说明
`omw codex`
- 通过
codex app-server+ WebSocket RPC 接入 - 支持远程审批
- 支持本地终端实时显示中间输出
- 适合代码、文件、命令、多步任务
`omw claude`
- 通过
claude -p --output-format json接入 - 支持远程审批
- 主要返回最终答复和审批信息
`omw opencode`
- 通过
opencode serve+ SDK / event stream 接入 - 支持远程审批
- 主要返回最终答复
`omw shell`
- 用于远程执行本地 shell 命令
- 高危命令会要求审批
- 交互式程序会被拦截
微信侧控制命令
在微信里可用:
/help
/status
/stop
/reset
/yes
/no
含义:
/help:查看帮助/status:查看当前 bridge / agent 状态/stop:中断当前任务/reset:重启当前本地 agent/yes:同意当前审批/no:拒绝当前审批
远程审批
如果 agent 需要执行敏感操作,bridge 会把审批提示发到微信。
你只需要在微信里回复:
/yes
或:
/no
当前支持远程审批的典型场景:
Codex请求继续执行某个操作Claude Code请求工具权限OpenCode请求 permissionshell模式执行高危命令
附件能力
微信 -> agent
当前支持把微信里的这些附件传给 agent:
- image
- video
- file
- voice
其中图片、视频、文件会尽量落到本地工作区,供 agent 直接使用。
agent -> 微信
如果 agent 知道本地文件的绝对路径,并输出附件 marker,`oh-my-wechat` 会自动上传并发回微
Related Skills
Wechat Claude Bot
通过微信远程操控 Claude Code CLI,在手机上写代码、执行命令、管理项目 Control Claude Code from WeChat
Wechat SVG Validate.Skill
微信公众号交互 SVG 发布前/入库前的校验门禁:CLI/Python/HTTP 三入口,区分 issues(必修)与 warnings(人工复核),给 agent 一个可自检的静态规则把关。
Wexin Code CLI Bridge
Bridge WeChat messages to Claude Code CLI via iLink protocol
Wx Cc Bridge
WeChat ↔ Claude Code CLI bridge — talk to Claude from WeChat via the ClawBot (iLink) protocol, using your Max
Wechat Writting 2026
A writing skill that distills senior medical-aesthetics editorial judgment into prompt-level constraints. Thre
Wechat Article
微信公众号文章:作者-编辑-读者三Agent协作
Related Agents
ChatGPT On Wechat
CowAgent是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、拥有长期记忆并不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页
Wechat Reader Test
Remotion Engineer
Remotion engineer for the video studio team. Builds and renders video projects including talking head, podcast