Qshuai0213/super-wechat-bridge 预览 preview

Qshuai0213/super-wechat-bridge

WeChat iLink ClawBot Remote Bridge Plugin (DeepSeek Harness): Direct connection via official iLink protocol, web-based settings interface (QR code login/models/presets/permissions/session management) + 24h automatic renewal.

Project Overview项目介绍

This is a native DSH plugin that bridges the official WeChat iLink ClawBot protocol into DeepSeek Harness. It connects your WeChat chatbot conversations directly to DSH's agent runtime, with all core functionality tested against the latest official DSH API and iLink endpoints. You can install it via the DSH plugin CLI directly from the GitHub repository, or install a local development copy by pointing the CLI to your local project directory. The plugin ships with an automatic patch that mounts it to your DSH web profile after installation, so no manual configuration is required to get it working.

After you install the plugin, you can log in to your iLink account via one of three methods: scanning a QR code in the DSH web settings page, clicking an auto-pushed renewal link inside WeChat when your session is expiring, or running a command line script to generate a login link. Once logged in, any message you send from WeChat to your ClawBot will spin up a new isolated DSH session tied to that WeChat user. The plugin automatically injects a session-level context prompt that tells the agent this conversation is happening via WeChat, so it can adjust its output appropriately. All agent replies are automatically forwarded back to your WeChat conversation with no extra work needed from you.

The plugin integrates a full configuration UI directly into DSH's web settings page, under the "WeChat Bridge" section. You can adjust persistent settings like the default model to use for WeChat sessions, the thinking intensity, and permission policies that control which WeChat users can access the bridge. There are some known limitations you should be aware of before use: non-text messages like images and voice are only displayed as placeholder text, DSH web restarts create new sessions for existing WeChat users, and any code changes require a full DSH web restart to take effect. The plugin is released under the permissive MIT open source license.

这是一个专为 DeepSeek Harness (DSH) 开发的原生插件,用于将微信官方 iLink ClawBot 协议的消息桥接进 DSH。它支持长轮询接收消息、按官方格式发送消息,为每个微信用户创建独立的 DSH 会话,自动将 DSH agent 的回复转发回微信,还在 DSH 内提供了专门的 Web 设置界面进行管理。

安装完成并在设置页面扫码登录后,用户在微信中向 ClawBot 发送任意消息都会触发新建一个 DSH 会话。对应 agent 会自动获得「当前对话通过微信进行」的上下文提示,用户还可以直接在设置界面中,为微信会话配置所用模型、思考强度以及权限策略。iLink 会话有效期约 24 小时,插件支持到期前自动推送续期二维码,扫码即可无缝续期,全程不会断开连接。

本插件遵循 MIT 开源许可协议,目前已知几个限制:DSH Web 重启后同一微信用户会新建会话,旧会话历史保留但不再关联;非文本消息会以占位文本显示,暂不支持媒体内容;修改插件代码后需要重启 DSH Web 才能生效。安装可通过 DSH 插件命令直接从 GitHub 拉取发布版,也支持本地开发安装。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add "github:Qshuai0213/super-wechat-bridge"

把 Qshuai0213/super-wechat-bridge 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

super-wechat-bridge

微信 iLink ClawBot(腾讯官方微信 Bot 协议)远程桥接插件,把微信消息接进 DeepSeek Harness(dsh)。

特性

  • 协议与 dsh API 均经实测(iLink 真实端点 + dsh 0.1.0-rc.6 官方 Agent API)
  • 长轮询收消息、msg 包裹 + text_item 发送(官方格式)
  • 发送必须带 base_info.channel_version + from_user_id + client_id——实测缺失时服务器返回 message_id 但不投递(对照 openclaw-weixin 参考实现定位)
  • 每个微信用户独立 dsh 会话(agents.create({ sessionId }) + agent.followup)
  • 回复自动转发:wechat 会话每轮 agent 的最终文字回复自动发回微信(监听 session/event,按 user/message 真实来源过滤上下文快照)
  • wechat_reply 工具用于主动推送(任务完成通知等),同一轮内已用工具发送则自动转发跳过,避免重复
  • 会话级提示词:wechat 会话的 agent 会收到「正在通过微信对话」的上下文(按会话 id 条件注入,不影响其他会话)
  • Web 设置界面(设置 → 微信桥接):扫码登录、模型/预设/思考强度/权限配置、会话列表(打开/复制/删除)、凭据状态
  • 自动续期:iLink 会话约 24h(服务端限制),到期前自动把新二维码推送到微信,扫码无缝续期,全程不断线
  • 错误落盘 stateDir/errors.log

已知限制

  • 重启后会话不续接:桥接按 wechat-<userId>-<时间戳> 新建会话,dsh web 重启后同一微信用户会开新会话(旧会话历史保留在侧边栏,但桥接不再关联)
  • 图片/语音等非文本消息以占位文本 [非文本消息] 呈现,当前通道不接收媒体内容
  • 修改插件代码后需要重启 dsh web 才生效(HMR 不重载 node_modules 里的模块)

安装

从 GitHub 安装(发布版):

dsh plugin --profile web add "github:Qshuai0213/super-wechat-bridge"

本地开发安装:

dsh plugin --profile web add "file:D:/ai工作区/super-wechat-bridge"

插件自带 dsh.bundle.patch(cordis.patch.yml),安装后自动挂载,无需手动编辑 profile 的 cordis.patch.yml。配置走 schema 默认值:stateDir 默认为 $DSH_HOME/channels/wechat(无 DSH_HOME 时 ~/.dsh/channels/wechat)、dmPolicy: pairing。 需要覆盖时在 profile patch 里按 id 追加 config:

- insert:
    - id: wechat-bridge
      config:
        dmPolicy: allowlist
        allowFrom: ['o9cq80wwZLaIrJEBTW3TCRCVVyt8@im.wechat']

重启 dsh web。

登录

iLink 会话有效期约 24 小时(服务端限制,无法延长),插件内置自动续期:到期前约 2 小时,插件会把新的续期二维码链接推送到微信(发给最近活跃的会话),点开链接扫码即可无缝续期,全程不断线;最后 30 分钟未续期会再次提醒。

三种登录方式任选:

  1. Web 界面扫码:打开 设置 → 微信桥接,点「获取登录二维码」,用手机微信扫码并确认,凭据自动写入并开始收消息。
  2. 微信内点链接续期(到期前自动推送,推荐):收到「登录凭据将于约 X 小时后过期」消息后,点击其中的链接扫码确认即可。
  3. 命令行:
node node_modules/super-wechat-bridge/login.mjs "<你的 stateDir>"

stateDir 默认为 $DSH_HOME/channels/wechat(无 DSH_HOME 时 ~/.dsh/channels/wechat)。 手机微信打开输出的链接扫码授权,凭据写入 credentials.json。

使用

微信里给 ClawBot 发第一条消息 → dsh 出现 wechat-* 会话 → agent 回复自动发回微信。

设置界面(Web UI)

微信功能无独立界面入口,全部集成在 dsh Web 的 设置 → 微信桥接 页面(重启 dsh web 后出现),包含三个区块:

设置界面

  • 扫码登录:生成/轮询登录二维码,凭据状态与登录结果实时显示
  • 微信会话:列出全部微信会话(活跃/空闲、打开、复制 ID、删除)
  • 通道设置:可调整并持久化到 settings.yaml:
设置项 说明
模型提供方 / 模型 微信会话使用的模型;留空 = 跟随全局默认模型选择
思考强度 off / low / medium / high / max,留空 = 跟随默认
权限模式 pairing(放行所有)/ allowlist(仅允许列表)/ disabled(关闭通道)
允许列表 allowlist 模式下生效,每行一个微信用户 ID
  • 权限模式与允许列表即时生效;模型/思考强度对之后新建的微信会话生效(已有会话不变)
  • 页面同时显示凭据状态(登录时间、剩余有效期、活跃会话数);剩余不足 2 小时时插件会自动向微信推送续期二维码
← 上一个 Prev dsh-plugin-cas-kb 下一个 Next dsh-git-tools →