← 返回 Skills 市场
ryanbihai

WeChat CC

作者 ryanbihai · GitHub ↗ · v0.3.2 · MIT-0
cross-platform ⚠ suspicious
57
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install wechat-cc
功能描述
OB Gateway — WeChat ⇄ OB L0 ⇄ Agents。路由前缀分发,多 Agent 支持
使用说明 (SKILL.md)

\r \r

wechat-cc\r

\r 微信 Channel 插件 for Claude Code。扫码即连,从微信直接操控 Claude Code。\r \r 基于 weixin-bot-plugin (iLink Bot API) + @modelcontextprotocol/sdk (MCP Channel) + oceanbus (L0 P2P)。\r \r

功能\r

\r

  • 微信扫码登录,自动绑定 CC OpenID(无需手动输入 pair 命令)\r
  • 微信消息实时推入 Claude Code 会话\r
  • CC 通过 reply 工具回复微信消息\r
  • 权限转发:CC 工具调用审批 → 微信 → 回复 yes/no 远程授权\r
  • 基于 OceanBus L0 的 Store-and-Forward,CC 离线时消息不丢\r
  • 长消息自动拆条防折叠\r
  • ctrl+o 展开二维码提醒\r \r

A 消息(发给朋友)\r

\r

/plugin marketplace add ryanbihai/claude-plugins && /plugin install wechat-cc@oceanbus-plugins\r
```\r
\r
> 如果已安装过 oceanbus-plugins 市场,只需:`/plugin install wechat-cc@oceanbus-plugins`\r
\r
安装完成后**重启 Claude Code**,输入 `/login` 或直接说"登录微信"。\r
\r
## 冲突说明\r
\r
如果已安装 `weixin-claude-code@dcatfly-plugins`,两个插件会竞争同一个微信账号的消息。启动时 wechat-cc 会检测并警告。建议禁用其一:\r
\r
```\r
/plugin disable weixin-claude-code@dcatfly-plugins\r
```\r
\r
## 安装\r
\r
```\r
/plugin marketplace add ryanbihai/claude-plugins\r
/plugin install wechat-cc@oceanbus-plugins\r
/plugin install wechat-cc@oceanbus-plugins\r
```\r
\r
## 架构\r
\r
```\r
微信用户 (ilink_user_id)\r
    ↕ iLink\r
┌─ WeChat Bot ──────────────────────────┐\r
│  OB OpenID: wxBot_xxxx                │\r
│  绑定: {ilink_user_id → CC_OpenID}    │\r
│  (扫码确认时自动完成)                   │\r
└──────────┬────────────────────────────┘\r
           ↕ OceanBus L0 P2P\r
┌─ CC Agent ────────────────────────────┐\r
│  OB OpenID: cc_qMaPC...               │\r
│  MCP Channel: OB消息 → CC会话          │\r
│  reply 工具: CC回复 → OB → Bot → 微信   │\r
└───────────────────────────────────────┘\r
```\r
\r
## 消息流\r
\r
```\r
微信 "重构 user-service"\r
  → iLink\r
    → Bot: ob.send(CC_OpenID, msg)\r
      → OB L0 delivers\r
        → CC MCP notification 注入会话\r
          → CC 处理\r
            → CC 调用 reply 工具\r
              → ob.send(Bot_OpenID, reply)\r
                → OB L0 delivers\r
                  → Bot: iLink sendMessage()\r
                    → 微信收到回复\r
```\r
\r
## 依赖\r
\r
- `weixin-bot-plugin` — iLink API 通信(QR 登录、长轮询、消息收发)\r
- `@modelcontextprotocol/sdk` — MCP Channel 协议\r
- `oceanbus` — L0 P2P 身份和消息路由\r
安全使用建议
Only install this if you intentionally want WeChat/OceanBus messages to control local Claude Code. Avoid standalone or `--auto-exec` mode on sensitive projects, remove the permission-skipping flag, pin and review dependencies, restrict allowed senders, and protect or delete the stored WeChat/OceanBus credential files when finished.
能力标签
cryptorequires-walletcan-make-purchasesrequires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The WeChat/OceanBus routing purpose is coherent, but included standalone and agent modes go beyond routing by automatically executing incoming messages through Claude Code with `--dangerously-skip-permissions`.
Instruction Scope
Incoming chat/P2P text is passed directly as a Claude prompt in auto-exec paths, with no clear local review, sender allowlist, or containment before execution.
Install Mechanism
The README promotes cloning a GitHub repository, installing `@latest` dependencies, and immediately running a local script; package metadata also uses an unpinned `latest` dependency.
Credentials
The skill can operate in the current working directory and cause local Claude Code to act on that environment, while also storing WeChat/OceanBus state under the user’s home directory.
Persistence & Privilege
Long-running listeners and local session/identity files are expected for a chat gateway, but users should understand that the process keeps accepting messages until stopped.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install wechat-cc
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /wechat-cc 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.3.2
v0.3.2: 简化 README — 一条命令开始,安装和 A 消息合一
v0.3.1
v0.3.1: standalone 个人微信操控 CC — 一条命令,全自动,零配置,A 消息可随意传播
v0.3.0
v0.3.0: standalone 模式 — 一条命令,全自动。不需管理员,不需 OpenID 交换,不需 pair 命令。A 消息可随意传播,朋友自服务完成全部操作
v0.2.4
v0.2.4: cc-agent 自动注册 OB 身份,完全解耦 ocean-chat。A 消息只需 clone wechat-cc + npm install oceanbus
v0.2.3
v0.2.3: OB 网关模式 — WeChat ⇄ OB L0 ⇄ Agents。Model C 路由(默认会话+单条覆盖),OpenID 自动命名,欢迎消息,多 Agent/多窗口支持,权限转发
元数据
Slug wechat-cc
版本 0.3.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

WeChat CC 是什么?

OB Gateway — WeChat ⇄ OB L0 ⇄ Agents。路由前缀分发,多 Agent 支持. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 57 次。

如何安装 WeChat CC?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-cc」即可一键安装,无需额外配置。

WeChat CC 是免费的吗?

是的,WeChat CC 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

WeChat CC 支持哪些平台?

WeChat CC 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 WeChat CC?

由 ryanbihai(@ryanbihai)开发并维护,当前版本 v0.3.2。

💬 留言讨论