Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add kaixindelele/wechat_agent_bridge_skills --skill wechat-codex_agent_bridge-skillgit clone --depth 1 https://github.com/kaixindelele/wechat_agent_bridge_skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kaixindelele/wechat_agent_bridge_skills/wechat-codex_agent_bridge-skill)<a href="https://agentmods.dev/skills/kaixindelele/wechat_agent_bridge_skills/wechat-codex_agent_bridge-skill"><img src="https://agentmods.dev/badge/skills/kaixindelele/wechat_agent_bridge_skills/wechat-codex_agent_bridge-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kaixindelele/wechat_agent_bridge_skills/wechat-codex_agent_bridge-skill"><img src="https://agentmods.dev/badge/skills/kaixindelele/wechat_agent_bridge_skills/wechat-codex_agent_bridge-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00082 | $0.00762 |
| Opus 5 | $0.00041 | $0.00381 |
| Sonnet 5 | $0.00016 | $0.00152 |
| Haiku 4.5 | $0.00008 | $0.00076 |
Grade A, and why
wechat-codex-agent-bridge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
微信 ↔ Codex CLI 桥接
用微信连接本机运行的 codex CLI。桥接服务基于 codex exec --json,支持:
- 文字消息转发给 Codex
- 图片作为
--image输入传给 Codex - 文件、语音、视频落盘后把本地路径交给 Codex
- 使用
thread_id自动续接上下文 - 微信端控制
/model、/sandbox、/stop、/clear、/send
如果需要修改和微信桥接相关的底层协议,可以参考 wechat_agent_bridge_skills/openclaw-weixin 原版 SDK。
目录说明
| 路径 | 作用 |
|---|---|
templates/ |
可独立运行的 Node 桥接服务 |
templates/src/ilink.ts |
微信 ilink(ClawBot)HTTP API:收发消息、媒体加解密 |
templates/src/bridge.ts |
主循环:getupdates + codex exec --json |
templates/bridge.config.example.json |
配置模板,复制为 bridge.config.json |
前置条件
- Node.js >= 18
- 已安装并登录
codexCLI(先执行codex login) - 微信侧已完成 ClawBot / ilink 机器人绑定
安装与启动
cd wechat-codex_agent_bridge-skill/templates
cp bridge.config.example.json bridge.config.json
# 编辑 bridge.config.json:至少设置 cwd 为项目根目录
npm install
npm run setup
npm start
微信端指令
/help- 查看帮助/status- 查看当前 bridge 状态/clear- 清除会话、终止任务、清空队列和追问/stop- 终止当前任务/stopall- 终止当前任务并清空队列和追问/send <路径>- 发送服务器上的文件到微信/model- 查看当前模型/model <名称>- 设置下一轮执行使用的模型/model clear- 恢复 Codex 默认模型/sandbox- 查看当前 sandbox/sandbox read-only|workspace-write|danger-full-access- 切换 sandbox
重要限制
Codex 版桥接使用的是非交互式 codex exec。因此:
- 支持稳定的消息桥接、会话续接、图片输入和文件回传
- 不支持像 Cursor 版那样对每一次工具调用做微信侧逐条审批
- 需要通过
/sandbox控制整体执行范围,而不是在工具执行中途弹微信确认
发送文件给微信
如果希望 Codex 把本机文件主动发回微信,在回复中输出:
[SEND_FILE:/绝对路径/文件.ext]
桥接层会自动识别并上传该文件。
What ships with it
18 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- templates/.codex 0 B
- templates/.gitignore 101 B
- templates/bridge.config.example.json 563 B
- templates/credentials.json.example 226 B
- templates/package-lock.json 18 KB
- templates/package.json 886 B
- templates/src/bridge.ts 34 KB runs code
- templates/src/config.ts 3.8 KB runs code
- templates/src/hot.ts 3.5 KB runs code
- templates/src/ilink.ts 21 KB runs code
- templates/src/inbound-media.ts 5.4 KB runs code
- templates/src/qrcode-terminal.d.ts 128 B runs code
- templates/src/setup.ts 4.1 KB runs code
- templates/src/types.ts 6.5 KB runs code
- templates/src/usage-footer.smoke.mjs 2.3 KB runs code
- templates/src/usage-footer.ts 7.0 KB runs code
- templates/tsconfig.json 335 B
- 快速启动.md 1.3 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 10d ago First seen · 78 lines · 82 tokens per session scan A 55eb57fabe66
wechat-codex-agent-bridge is a skill published in the GitHub repository kaixindelele/wechat_agent_bridge_skills (20 stars, last pushed 4mo ago), licensed MIT. It adds 82 tokens to every session and 762 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…