wang-22-code/dsh-qqbot-bridge
让 DeepSeek Harness(DSH)住进 QQ:基于腾讯官方 Bot API,支持私聊白名单、持久会话、模型切换与远程权限审批。
Project Overview项目介绍
dsh-qqbot-bridge is a native plugin built exclusively for DeepSeek Harness (DSH), that safely connects QQ private and group chats to DSH via Tencent’s official QQ Bot Open Platform. It does not use reverse-engineered protocols, hooks, or simulated logins for personal QQ accounts, relying solely on Tencent’s official SDK and open API. Any message sent to the QQ bot is treated as a command to an independent DSH Agent session. It also lets users approve or deny one-time permission requests directly from QQ using the /approve and /deny commands. The project is currently at version 0.1.0 and is still in active early development.
Users do not need to manually enter QQ bot credentials on first launch. The plugin guides users through an official Tencent QR code scan to bind their bot, and automatically saves AppID, AppSecret, and user OpenID to the local DSH environment directory, never storing sensitive data in project code or logs. By default, it enables a private chat whitelist and disables group chat access to prevent unauthorized access. It also supports streaming responses, automatic retries on failed sends, session persistence, and model switching, making it ideal for developers who want to remotely control DSH Agent tasks via QQ.
This project is open source under the MIT license, and only supports official Tencent QQ bot capabilities. Users must comply with Tencent’s QQ Open Platform rules and local applicable laws before using the plugin. It requires Node.js version 22 or higher to run, and a DeepSeek API Key must be configured for the bot to generate responses. For WSL environments, users must install the Linux version of Node.js, and cannot use the Windows version exposed via WSL interop. The project includes built-in privacy scanning, unit tests, and a GitHub Actions CI workflow.
dsh-qqbot-bridge 是一款专为 DeepSeek Harness(DSH)开发的原生插件,基于腾讯官方 QQ 机器人开放平台实现 QQ 私聊、群聊与 DSH 的安全接入。用户向 QQ 机器人发送消息,即可等效于向独立的 DSH Agent 会话发送指令,同时支持在 QQ 内完成 DSH 权限的一次性审批,通过 /approve 和 /deny 指令处理申请。项目当前版本为 0.1.0,仍处于早期开发阶段。
用户无需手动配置 QQ 机器人凭据,首次启动时插件会引导用户通过腾讯官方扫码完成绑定,自动将 AppID、Secret 和用户 OpenID 保存至本机 DSH 环境目录,不会存入项目代码或日志。默认开启私聊白名单、关闭群聊访问,避免未授权用户访问,支持流式回复、发送失败自动重试、会话持久化和模型切换,适合需要远程通过 QQ 控制 DSH Agent 执行任务的开发者使用。
本项目基于 MIT 许可证开源,仅面向腾讯官方机器人能力,使用前需遵守腾讯 QQ 开放平台规则与当地法律法规。运行依赖 Node.js 22 以上版本,必须配置 DeepSeek API Key 才能正常运行,WSL 环境必须安装 Linux 版 Node.js,不能使用 Windows 版通过互操作暴露的版本。项目已内置隐私扫描、单元测试和 GitHub Actions CI 流程。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-qqbot-bridge(wang-22-code/dsh-qqbot-bridge)
仓库:https://github.com/wang-22-code/dsh-qqbot-bridge
本站详情页:https://www.yhbd.top/plugins/wang-22-code-dsh-qqbot-bridge/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-09-06 · 主语言 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 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
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 qqbot add dsh-qqbot-bridge
把 wang-22-code/dsh-qqbot-bridge 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-qqbot-bridge
基于腾讯官方 QQ 机器人开放平台,将 QQ 私聊或群聊安全地接入 DeepSeek Harness(DSH)。给机器人发送消息,就等同于向一个独立的 DSH Agent 会话发送消息。
当前版本:
0.1.0。项目仍处于早期阶段,建议先使用专用测试机器人、专用工作目录和私聊白名单。
特性
- 只使用腾讯 QQ 机器人开放平台和腾讯官方 SDK,不使用个人 QQ 逆向协议、Hook、注入或模拟登录。
- 首次启动支持腾讯官方扫码绑定,自动保存 AppID、Secret 和扫码用户 OpenID。
- 私聊默认白名单,群聊默认关闭;空白名单不会退化成开放访问。
- QQ 消息直接驱动 DSH Agent,支持流式回复、发送失败自动重试、会话持久化和模型切换。
- 支持在 QQ 内处理 DSH 的一次性权限申请:
/approve CODE或/deny CODE。 - AppSecret、OpenID 和 API Key 仅保存在本机
$DSH_HOME/.env,不进入项目配置和日志。 - 内置隐私扫描、单元测试、打包检查和 GitHub Actions CI。
合规说明
本项目仅面向腾讯官方机器人能力。使用前请遵守腾讯 QQ 开放平台规则、机器人运营规范和所在地法律法规。平台审核、接口权限、主动消息窗口和频率限制以腾讯当前规则为准。本项目无法承诺账号绝对不会受到限制,但不会提供绕过风控或协议限制的实现。
快速启动
准备条件
- Windows 10/11、macOS 或 Linux
- Node.js
>= 22(唯一需要手动安装的运行时,其余由启动脚本自动处理) - 必须:DeepSeek API Key(
DEEPSEEK_API_KEY)——不设置时机器人无法生成任何回复 - 一个腾讯官方 QQ 机器人(AppSecret 无需手动填写,首次启动扫码自动绑定)
- pnpm 与 DSH CLI 无需手动安装——启动脚本会自动装好(pnpm 走 corepack,DSH 装到
$DSH_HOME\profiles)
⚠️ 必填项:必须设置
DEEPSEEK_API_KEY。DSH 默认使用 DeepSeek 官方接口(provider: deepseek-official),缺少 API Key 时模型调用会在运行时直接失败,机器人只会回复「⚠️ 本轮处理出错,请重试。」,启动日志中也会出现警告。请把 API Key 写入本机 DSH 环境文件,而不是项目目录:
# Windows 默认位置:C:\Users\<你>\.dsh\.env
# macOS/Linux 默认位置:~/.dsh/.env
DEEPSEEK_API_KEY="你的 API Key"
或者命令行设置:
$key = Read-Host -Prompt "粘贴你的 DeepSeek API Key"
Add-Content "$env:USERPROFILE\.dsh\.env" "DEEPSEEK_API_KEY=`"$key`""
Windows:从源码一键启动(零配置)
唯一需要手动安装的是 Node.js ≥ 22(和 git)。其余全部由脚本自动完成——不要求你手动装 pnpm、DSH CLI 或写 AppSecret。
设计说明:
dev-start.ps1(Windows 版)不包含 node 存在性检查(与 Linux/macOS 版不同)。请确保 Node.js ≥ 22 已安装并加入 PATH;若缺失,脚本会在后续调用原生命令时报错。
git clone https://github.com/JHf0912/dsh-qqbot-bridge.git
cd dsh-qqbot-bridge
powershell -ExecutionPolicy Bypass -File .\scripts\dev-start.ps1
脚本自动完成:
- 环境检查:pnpm 缺失时自动启用 corepack(或创建垫片加入 PATH);DSH CLI 缺失时自动安装到
$DSH_HOME\profiles(含 pnpm 11 必需的allowBuilds配置); - 安装依赖并构建 TypeScript;
- 注册本地插件并链接到当前源码(后续
pnpm build重建即可生效); DEEPSEEK_API_KEY缺失 → 终端提示输入并写入$DSH_HOME\.env,已有则跳过;- 启动前探测并自动修复 node-pty 原生模块(缺失时自动重建、必要时源码编译,国内网络下常见问题);
- 启动前调用腾讯接口预校验 QQ 凭据——无效时当场提供 3 个选项:重新粘贴凭据 / 删除并重新扫码 / 跳过继续,而不是等 DSH 启动后才失败。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Aisland-SJL/dsh-reminder
grunmin/dsh-acp-enhanced
rice-awa/dsh-lan-gateway
kenryu42/cc-safety-net
toby-bridges/api-relay-audit
saya-ch/dsh-mobile
liguobao/ds-harness-remote