lijian-ui/dsh-im-gateway
为 DeepSeek Harness 提供多 IM 通道接入的网关插件:钉钉 / QQ / 个人微信,支持扫码绑定与流式回复。
Project Overview项目介绍
This is a native IM gateway plugin built exclusively for DeepSeek Harness (DSH), with a valid DSH bundle manifest. It enables DSH to connect to three major instant messaging channels: DingTalk, QQ, and personal WeChat, all unified under a single core ctx.imGateway that handles session management, slash commands, streaming replies, and status broadcasting. It ships with a full integrated settings page inside DSH's official web UI, so users can add and configure channels directly there, and credentials can be auto-filled via QR code scan, no manual config file editing required.
After connecting a channel, users can interact with DSH Agent directly from their IM client by sending messages to the bound bot. Common operations like tool approval, interactive questions, session resume, and workspace switching can all be completed entirely within IM. It also automatically splits long replies to fit IM channel message limits, and merges consecutive short user inputs into a single prompt for the agent. Third-party developers can extend the plugin by registering custom IM channels via the provided public extension interface to support additional messaging platforms, making it easy to adapt for niche use cases.
This plugin is released under the open-source MIT license, and it is installed as a standard DSH bundle plugin. The recommended installation method is via npm, using the command dsh plugin --profile web add @lijian-ui/dsh-im-gateway, which includes pre-built files and does not require additional build authorization. It also supports installation from a tarball or GitHub source. After installation, users can open the DSH web UI settings, add their desired IM channel, complete the one-time configuration, and start interacting with DSH via IM immediately. Configuration is stored locally in the user's ~/.dsh/settings.yaml file and supports hot reload after changes.
这是专为 DeepSeek Harness (DSH) 开发的原生 IM 网关插件,支持钉钉、QQ、个人微信三大即时通讯通道接入 DSH,提供统一网关核心服务,包含会话管理、斜杠命令、流式回复、状态广播等基础能力。插件自带完整的 DSH Web 端设置界面,所有通道配置都可在设置页内可视化完成,支持扫码绑定机器人凭据,配置保存后自动热重载,无需重启 DSH 服务。
普通用户可以通过对应 IM 客户端给绑定的机器人发送指令,直接和 DSH Agent 交互,还能在 IM 内完成工具审批、交互提问、会话恢复、工作区切换等操作。用户输入还支持自动合并分段,长回复自动拆分,适配不同 IM 的消息长度限制。适合需要将 DSH Agent 能力暴露到常用 IM 渠道,随时随地调用 DSH 的用户使用。
本插件遵循 MIT 开源协议,作为标准 DSH bundle 插件,支持通过官方插件通道安装,推荐使用 npm 安装,也支持从压缩包或 GitHub 源码安装。npm 安装方式自带预构建产物,无需额外构建授权,操作更简便。首次使用需要打开 DSH Web 设置页,添加对应 IM 通道并完成配置,配置可存储在本地 DSH 设置文件中。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-im-gateway(lijian-ui/dsh-im-gateway)
仓库:https://github.com/lijian-ui/dsh-im-gateway
本站详情页:https://www.yhbd.top/plugins/lijian-ui-dsh-im-gateway/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-09-21 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【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 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
- Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
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 @lijian-ui/dsh-im-gateway
把 lijian-ui/dsh-im-gateway 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
@lijian-ui/dsh-im-gateway
English | 简体中文
为 DeepSeek Harness (dsh) 提供多 IM 通道接入的网关插件:钉钉 / QQ / 个人微信 / 飞书 / 企业微信,支持扫码绑定、流式回复、工具审批、交互提问、长文本分片、多段合并、双语界面。
功能特性
通道与核心
- 统一网关服务 — 一个插件、五个通道。所有通道都汇聚到单一的
ctx.imGateway核心:会话管理、斜杠命令、流式回复、状态广播。 - 钉钉 — 出站 WebSocket 长连接,群聊 + 单聊,@ 提及过滤,AI 卡片流式输出(实时增量回复),斜杠命令。
- QQ — WebSocket 网关(官方
qqbot-nodejsSDK),私聊(c2c)+ 群聊,扫码绑定机器人(免去开放平台手动创建),流式消息(c2c)。 - 个人微信(iLink) — 官方 iLink 长轮询协议,扫码登录 + 配对码,仅单聊,媒体(AES-128-ECB CDN)收发。
- 飞书 / Lark — 官方
@larksuiteoapi/node-sdk长连接(无需公网回调),扫码一键创建应用(权限与会话事件自动预填),私聊 + 群聊,CardKit 卡片流式输出,图片/文件收发。 - 企业微信 — 官方智能机器人 WebSocket 长连接(无需公网回调、无需消息加解密),扫码一键创建机器人,私聊 + 群聊,原生流式气泡(
replyStream原位替换,官方原生能力),图片/文件/语音收发。 - 多机器人实例 — 同一通道类型可配置多个实例(例如两个钉钉机器人),各自独立凭据。
- 设置页 UI — 在官方 dsh web UI 内渲染完整的设置页(「IM 通道」),扫码绑定就在这里完成。
- 流式回复 — 钉钉 AI 卡片、QQ stream_messages、飞书 CardKit 卡片、企业微信流式气泡;渠道不支持流式时自动回退纯文本。
- 单例锁 — 通过
DSH_HOME文件锁防止多个实例并发写坏 session log。
交互增强
- 工具审批桥 — agent 调用需要审批的工具时,在 IM 里直接回复「批准」或「拒绝」即可放行/拦截,超时自动委托回 dsh 原生审批体系。
- 交互提问桥 — agent 调用
ask_user_question时,问题同步推送到 IM,用户回复选项编号/文字即可作答,与 Web 端竞速第一答生效。 - 长回复分片 — 超过渠道单条上限的回复自动按句号/换行切分,带
(1/3)分段前缀,逐条发送。 - 多段输入合并 — 用户连续发多条消息时自动合并为一条(可配超时窗口);
..续传合并、!!立即提交。 - 文件发送工具 — agent 可调用
im_send_file工具把工作区文件(图片/视频/文档)直接发送到当前 IM 会话。 - 双语界面 — 配置
language: 'zh' | 'en'切换所有用户可见回复的语言。
会话管理
- 内置斜杠命令 —
/help、/model、/status、/new、/reset、/stop、/sessions、/continue、/workspaces、/workspace(见下文)。 - 会话列表与继续 —
/sessions列出最近会话(含标题),/continue <id>恢复指定会话。 - 会话标题带通道标识 — 来自 IM 的会话在 dsh 会话列表中自动显示为
[机器人名] 智能标题,一眼分辨会话来自哪个通道(机器人名取通道实例的name,未填则回落到通道类型名)。标题沿用 dsh 官方生成的智能标题,只在前面加前缀;在 Web 端手动重命名后不再自动覆盖。 - 工作区管理 —
/workspaces列出所有工作区及会话数,/workspace <路径>切换工作区(自动重置当前会话,下次消息在新工作区创建新会话)。 - 用户白名单 — 配置
allowAllUsers或allowedUserIds精确控制谁可以使用机器人。
安装
需要 DeepSeek Harness (dsh)——本插件是标准 dsh bundle,通过官方插件通道安装。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
shaobeichen/dsh-pocket
ningbainb/deepseek-harness-desktop
chokwinlee/deepseek-harness-desktop
SCSpotato/dsh-remote
dclichang2022/dsh-green-meter
omdsh-dev/dsh-notification
mrRisega/dsh-remote
Clarklevis1995/dsh-plugin-mobile-gateway