echo-lgtm/dsh-plugin-wechat-official

DeepSeek Harness 微信 ClawBot 渠道插件:通过腾讯官方 iLink 接口让用户在个人微信中与 DSH Agent 对话

Project Overview项目介绍

This is a native DSH plugin that enables users to chat with their locally deployed DSH Agent directly from personal WeChat. It uses Tencent's official ClawBot iLink protocol as the communication channel, and does not rely on any unofficial methods that can get a WeChat account banned, such as reverse engineering the client, web automation, or hooking the WeChat app. The underlying protocol it uses is identical to the OpenClaw WeChat channel protocol, with Tencent acting only as a message pipeline that does not store any private sensitive user conversation content.

Each WeChat user gets an independent, persistent DSH Agent session that can be recovered after DSH restarts, so conversation history is never lost unexpectedly. The plugin automatically handles connection renewal every 24 hours, which is the maximum validity period for an official iLink connection. It will send reminders to the most recent contact before expiry, automatically force reconnection when the deadline is hit, and keeps the connection online without interruption. It also supports access control, letting you restrict conversations to only pre-approved users, making it ideal for users who want to access their local DSH Agent anytime via WeChat.

To install the plugin, you first clone the repository to your local machine, then use the dsh CLI to add the local plugin copy to your DSH web profile. After that, you edit the cordis.patch.yml file of your web profile to add the plugin entry and your custom configuration, then start DSH with the standard dsh web command. The prerequisites for running this plugin are a WeChat personal account with ClawBot enabled, a working DSH installation, Node.js version 22 or higher, and outbound access to ilinkai.weixin.qq.com. No public IP or port forwarding is required for this plugin to work, and it is released under the open source MIT license.

这是一款专为 DeepSeek Harness 开发的原生插件,支持用户通过腾讯官方开放的微信 ClawBot 功能(iLink 协议),直接在个人微信中与本地部署的 DSH Agent 对话。本插件全程使用腾讯合法官方通道,不使用任何可能导致个人账号被封的逆向协议、网页自动化或客户端 Hook 方案,底层协议与 OpenClaw 微信渠道插件完全一致。

每个微信用户对应一个独立的 DSH Agent 会话,对话历史会被持久化存储,重启 DSH 后可恢复。插件支持 iLink 连接 24 小时自动续期,到期前会自动提醒重连,全程保证连接不中断,同时支持访问控制,可以限制仅指定用户可对话。适合想要在微信内随时调用本地部署的 DSH Agent 的用户使用。

安装需要先克隆本仓库到本地,通过 dsh CLI 将插件添加到 web profile,再在配置文件中追加插件配置项即可启动。前置要求是开通了 ClawBot 功能的微信个人账号、可正常运行的 DSH 以及 Node.js 版本不低于 22,不需要公网 IP。本插件采用 MIT 许可证开源,用户可免费使用修改。

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:echo-lgtm/dsh-plugin-wechat-official

把 echo-lgtm/dsh-plugin-wechat-official 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-plugin-wechat-official

DeepSeek Harness 微信 ClawBot 渠道插件 —— 通过腾讯官方开放的 微信 ClawBot 插件功能(iLink 协议),让用户在个人微信中直接与 DeepSeek Harness Agent 对话。

✅ 全部基于腾讯官方通道(ilinkai.weixin.qq.com),不使用任何个人微信逆向协议、网页自动化、Hook 客户端或其它可能导致封号的非官方方案。 底层协议与 openclaw 的微信渠道插件 @tencent-weixin/openclaw-weixin 同一套(HTTP/JSON,腾讯仅作为消息管道,不存储输入输出内容)。


目录


工作原理

微信用户 ──▶ 微信 ClawBot(腾讯官方 iLink 服务)
                 │  getupdates 长轮询(游标 get_updates_buf)
                 ▼
        dsh-plugin-wechat-official(本插件,运行在 DSH 进程中)
                 │  文本 → createUserMessage → followup
                 ▼
        DSH Agent 会话(每个微信用户独立会话,持久化可恢复)
                 │  回复文本 ← assistant/message 事件
                 ▼
        sendmessage(必须回带 context_token 关联对话窗口)
                 │  sendtyping「正在输入」状态
                 ▼
微信用户 ◀── 收到 Agent 回复

关键机制:

机制 说明
官方通道 登录走 get_bot_qrcode / get_qrcode_status 扫码;收消息走 getupdates 长轮询;回消息走 sendmessage
会话关联 每条入站消息带 context_token,回复时必须原样回带,否则消息无法关联到对话窗口
独立会话 每个微信用户对应一个 DSH Agent 会话(id 由用户 id 派生),历史经 sessionPersistence 持久化,重启可恢复
正在输入 通过 getconfig 获取 typing_ticket 后调用 sendtyping(status 1/2)显示「正在输入」
24h 续连 iLink 连接约 24 小时有效,到期前提醒最近联系人,可回复 Y 立即重连,最后时限强制重连,全程不断线
按用户串行 同一用户的消息按顺序处理,回复不会交错错位

前置条件

  1. 一个开通了「微信 ClawBot 插件功能」的微信个人账号。ClawBot 是微信官方向用户提供的连接第三方 AI 服务的功能,在微信内按提示「连接」并同意《微信ClawBot功能使用条款》后即可使用(本插件是条款意义上的「第三方 AI 服务提供方」)。
  2. DeepSeek Harness(dsh CLI)与 web profile 可正常运行(插件作为宿主插件挂载到 web profile 进程)。
  3. Node.js ≥ 22(DSH 本身要求)。
  4. 运行 DSH 的机器可访问 ilinkai.weixin.qq.com(出站网络)。无需公网 IP / 域名 / 端口映射 —— ClawBot 是插件主动长轮询拉取消息,不需要微信回调你的服务器。

安装

1. 安装依赖包到 web profile

# 克隆本仓库
git clone https://github.com/echo-lgtm/dsh-plugin-wechat-official.git
cd dsh-plugin-wechat-official

# 安装到 DSH web profile
dsh plugin --profile web add file:$(pwd)

等价于在 ~/.dsh/profiles/web 下执行 pnpm add file:<仓库绝对路径>。

2. 挂载插件行

编辑 ~/.dsh/profiles/web/cordis.patch.yml,追加(把示例值替换成你的配置):

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-llm-gate 下一个 Next dsh-localdream →