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 许可证开源,用户可免费使用修改。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-wechat-official(echo-lgtm/dsh-plugin-wechat-official)
仓库:https://github.com/echo-lgtm/dsh-plugin-wechat-official
本站详情页:https://www.yhbd.top/plugins/echo-lgtm-dsh-plugin-wechat-official/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 2 · 最近提交 2026-08-15 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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 立即重连,最后时限强制重连,全程不断线 |
| 按用户串行 | 同一用户的消息按顺序处理,回复不会交错错位 |
前置条件
- 一个开通了「微信 ClawBot 插件功能」的微信个人账号。ClawBot 是微信官方向用户提供的连接第三方 AI 服务的功能,在微信内按提示「连接」并同意《微信ClawBot功能使用条款》后即可使用(本插件是条款意义上的「第三方 AI 服务提供方」)。
- DeepSeek Harness(
dshCLI)与 web profile 可正常运行(插件作为宿主插件挂载到 web profile 进程)。 - Node.js ≥ 22(DSH 本身要求)。
- 运行 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 →
whiteguo233/dsh-openbiliclaw
hanshanyike/dsh-yolo
AX1202/ax-feishu-bridge
amlyczz/dsh-lark-link
MichengAI/dsh-im-connect
caoyiwei850/dsh-ssh-ops
jiezeng2004-design/dsh-chatgpt-bridge