a792883583/dsh-message-gateway
Universal message-platform gateway for the DSH web GUI: WeCom AI bot / Telegram / Discord / QQ / Email bridges with per-chat sessions, streaming replies, and auto context compression
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH), adding a dedicated "Message Platform" entry to the sidebar of the DSH Web GUI, placed directly next to the search icon in the workspace bar. Once installed and activated, it lets users manage multiple messaging platform connectors from a full-screen management page, supporting over 10 popular platforms including Telegram, Discord, QQ, WeCom, DingTalk, Feishu, Email, and more. It comes with core features like secure credential storage, one-click connection testing, real-time status monitoring, and native support for sending text and image messages across all supported platforms.
For incoming external messages, the plugin automatically creates an isolated dedicated agent session to drive DSH processing, then streams the full response back to the original messaging platform in real time. It also exposes an open POST API for external systems like automation scripts, scheduled tasks, and CI/CD pipelines to trigger active message pushes to any configured platform. Users can set up custom message routing rules based on platform and keyword prefixes, directing matching messages to specific pre-configured agent sessions for specialized task processing.
Installation is straightforward via the DSH CLI, just run the command dsh plugin --profile web add dsh-message-gateway then restart DSH Web to see the new entry in the sidebar. Credentials are stored locally in ~/.dsh/gateway.json with restrictive 600 file permissions, and the plugin automatically scrubs sensitive data like API keys from logs to prevent accidental leaks. It is released under the permissive MIT open source license, and all configuration options have sensible defaults, so it works out of the box right after installation.
这是一款专为 DeepSeek Harness (DSH) 开发的原生消息网关插件,会在 DSH Web GUI 侧边栏工作区行增加一个「消息平台」入口,点击可打开全屏管理页管理多消息平台连接器。插件支持对接 Telegram、Discord、QQ、企业微信、钉钉、飞书、邮箱等十余个消息平台,提供凭据安全管理、连接测试、状态监控等功能,还支持全平台主动推送图文消息。
插件支持外部消息触发 DSH 助手对话,比如企业微信智能机器人收到消息后,会自动创建专用会话驱动 DSH 处理,回复以流式回发给原消息平台。用户还可以通过外部 POST 接口调用主动推送通道,也能配置消息路由规则,将不同来源的消息分发到指定的 Agent 预设会话中,适配不同自动化场景。
插件采用 MIT 许可证开源,安装方式简单,只需要执行 dsh plugin --profile web add dsh-message-gateway 后重启 DSH Web 即可使用。凭据会以 600 权限保存在本地 ~/.dsh/gateway.json,自动对敏感信息做脱敏处理,不会泄露密钥。各平台的功能限制均来自官方接口,插件本身开箱即用,所有配置项都有合理默认值。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-message-gateway(a792883583/dsh-message-gateway)
仓库:https://github.com/a792883583/dsh-message-gateway
本站详情页:https://www.yhbd.top/plugins/a792883583-dsh-message-gateway/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 4 · 最近提交 2026-09-17 · 主语言 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 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
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 dsh-message-gateway
把 a792883583/dsh-message-gateway 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-message-gateway

DSH Web GUI 的消息平台网关插件:在侧边栏「工作区」行、紧贴搜索图标左侧提供「消息平台」入口,全屏管理多平台消息连接器——凭据保存、连接测试、状态监控,并内置企业微信智能机器人的常驻桥接:外部消息经专用 agent 会话驱动 DSH 助手,回复按 token 流式回发;同时提供全平台通用主动图文推送通道(支持发送 Markdown 文本与多模态原生图片)。
功能
- 侧边栏入口:侧边栏「工作区」行、紧贴搜索图标左侧新增「📮 消息平台」图标按钮(与官方搜索 / 视图 / 添加图标排成一行),点击打开全屏管理页(ESC / 点击遮罩关闭)
- 多平台连接器:Telegram / Discord / QQ 机器人 / 企业微信 / 企业微信智能机器人 / 微信(外部 Wechaty 网关)/ 微信公众号 / WhatsApp / Email / 钉钉 / 飞书 / Bark / Server酱 / Webhooks
- 企业微信智能机器人:填
botId + secret保存即建立官方 SDK WebSocket 常驻连接;支持文本流式对话、素材上传与主动图片/文件推送 - Telegram 机器人:填 Bot Token 保存即启用长轮询,与机器人对话即可使用,支持
sendPhoto主动图片推送 - Discord 机器人:填 Bot Token 保存即接入网关,频道/私信直接对话,支持
files附件主动图片推送 - 钉钉群机器人:配置自定义机器人 Webhook 与可选加签密钥(Secret),支持 Markdown 消息推送与公网图片 URL 渲染
- 飞书群机器人:配置自定义机器人 Webhook 与可选签名密钥(Secret),支持标准文本与卡片推送
- Bark (iOS):填入 Device Key,实现手机秒级弹窗通知推送与富文本大图横幅(公网 URL)
- Server酱 (Turbo版):填入 SendKey,支持将通知推送至微信 / 手机服务号,支持 Markdown 图片 URL
- QQ 机器人:填 appId + secret 保存即连接开放平台网关(频道/群/私信),被动回复 + 流式编辑
- 企业微信应用:填 CorpID/AgentID/Secret + 回调 Token/EncodingAESKey,后台配置回调 URL(
/gateway/wecom/callback)后发消息即自动对话 - 微信公众号:填 AppID/Secret + 回调 Token,后台配置服务器 URL(
/gateway/wechat-mp/callback)后发消息即自动对话 - WhatsApp:填 Token + Phone Number ID,Meta 后台配置 Webhook(
/gateway/whatsapp/webhook)后发消息即自动对话 - Email:填 IMAP(收件,993/143)+ SMTP(回复,465/587/25),按邮件线程自动归类会话,回复用 Re: 原主题
- 企业微信智能机器人:填
- 通用主动推送通道:
POST /gateway/push(供定时任务、自动化脚本、外部流水线等调用):- 请求参数:
platform:目标平台(wecom-aibot/telegram/discord/dingtalk/feishu/bark/serverchan/email)target:目标会话(wecom-aibot为单聊 userid 或群 ID;telegram为 chatId 数字;discord为 channelId;bark为 deviceKey 等)content:可选文本内容(支持 Markdown)title:可选标题(Email 作为主题,其他平台作为前缀)image:可选图片数据(支持 Base64 编码数据,或公网可访问的http(s)://图片 URL)filename:可选图片文件名(默认image.png)
- 特性:
- 文字与图片可同时发送,亦可单独发送纯文字或纯图片
wecom-aibot、telegram、discord支持本地二进制图片直接上传与原生下发bark、dingtalk、serverchan自动适配公网图片 URL 模式
- 请求参数:
- 凭据管理:明文只落盘
~/.dsh/gateway.json(权限 600,原子写入),/gateway/list永不回传凭据明文,只返回 configured 标记 - 敏感信息脱敏:写入日志 / 控制台的消息内容自动遮蔽疑似密钥(
sk-前缀、GitHub token、Bearer、password=赋值、私钥 PEM 等通用模式),机器人对话里的机密不会泄露到日志文件 - 连接测试:每个平台独立的真实连接测试——Telegram/Discord 走 Bot API、QQ 走 access_token、企微走 gettoken、微信公众号走 cgi-bin/token、WhatsApp 走 Graph API、Email 走 IMAP TCP banner、企微智能机器人走官方 SDK 长连接(认证成功即通过)
- 企业微信智能机器人常驻桥:官方 SDK WebSocket 长连接,断线自动指数退避重连;收到文本消息 → 注入隔离的专用 agent 会话唤醒 DSH 驱动 → 回复按 chunk 流式回发,结束时经 response_url 定稿
- 多步骤流式聚合与防覆盖:在多步骤/复杂工具调用任务中,自动按步骤段落累加保留历史思考与分析过程,绝不冲刷覆盖前文;中间步骤停顿时智能呈现三语动态处理提示(
⏳ 正在处理中,请稍候…),定稿收官时自动无痕剥离 - 全平台优雅关机与秒速重连:系统级监听退出信号并主动向远端服务发送断开握手,杜绝 30 秒连接排队超时锁,服务重启后 1~2 秒内秒速上线
- 群聊 @提及剥离:去掉开头的 @机器人名后交给助手
- 斜杠命令:
/help//time//status(含中文别名:帮助/菜单/时间/状态) - 进入会话欢迎语:可选配置(配置项
welcomeReply,默认false保持免打扰,开启后用户当天首次进入单聊自动回复欢迎词) - 主动发送通道:
POST /gateway/send({"chatid": "...", "content": "..."},单聊=userid,群聊=群 ID)以机器人身份主动发送 markdown 消息 - 消息路由规则(插件配置
routes):按「平台 + 关键词前缀」把消息路由到指定 agent 预设(独立会话)与可选专用模型 / skill。例如配置{ id: "code", matchPlatform: "telegram", matchPrefix: "code ", agentPreset: "code" }后,Telegram 里发code 帮我写个函数会进入 code 预设的独立会话。按顺序匹配第一条命中;未命中走默认 agent - 斜杠命令:
/help//time//status//stats(含中文别名:帮助/菜单/时间/状态/统计);/stats展示各平台桥连接状态与活跃会话数 - Agent 主动推送工具(
send_chat_message):自动向 DSH 注册通用推送工具,AI 助手在对话中可自主调用该工具将总结、任务结果或告警(含文字与图片截图)推送至企业微信、Telegram、Discord、钉钉等平台
- 多步骤流式聚合与防覆盖:在多步骤/复杂工具调用任务中,自动按步骤段落累加保留历史思考与分析过程,绝不冲刷覆盖前文;中间步骤停顿时智能呈现三语动态处理提示(
- Webhook 接收端点:
POST /gateway/webhook/in接收外部系统消息(text/content/message任一字段),注入专用 agent 会话并同步返回完整回复;可配置 HMAC-SHA256 签名密钥校验(契约见 docs/webhooks.md) - 图片与文件附件接收(全平台):各平台按官方文档解析并下载用户发来的附件,交给 Agent 处理
- 图片 → 存入附件库并以多模态交给模型(可直接识别画面内容)
- 其它文件(PDF / Excel / Word / 压缩包等任意类型)→ 以「文件名 + 字节数 + 只读路径」句柄交给 Agent,Agent 用文件工具读取处理
- 已接入:企业微信智能机器人(
image/file/video/mixed图文混排)、飞书(image/file/audio/media/ 富文本post)、钉钉(picture/richText/audio/video/file)、Telegram(photo/document/animation/video/voice/audio/video_note/sticker,含caption说明文字)、Discord(attachments[])、QQ 机器人(attachments[],含引用消息递归与语音asr_refer_text)、微信 ilink(item_list图片 / 语音 / 文件 / 视频,含 CDN AES 解密)、Email(标准 MIME 附件,支持 RFC 2231 中文文件名与 base64 / quoted-printable 解码) - 绝不静默丢弃:任何未识别的消息类型都会收到一条用户可见的提示(如「收到该类型消息,暂不支持处理」),不会出现"发了消息却毫无响应"的情况
- 各平台存在官方侧限制,见下方「各平台官方限制」
- 微信个人号(可选外部网关):对接本机 Wechaty HTTP 网关的扫码登录与状态轮询(契约见 docs/wechaty-gateway.md)
- 多语言:中文 / English / Español,自动跟随 DSH Web 界面语言(西班牙语浏览器自动切换),默认简体中文
- 明暗主题跟随 DSH Web GUI
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