把 QQ 官方机器人接到 DSH 进程内:QQ 里发消息直接开一轮真实会话(工作目录是已登记工作区时,桌面端左侧能看到、能续聊),结果以文本、图片或文件回传 QQ。需一个 QQ 官方机器人应用(AppID + AppSecret)。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:tbb051122/dsh-plugin-qq-bridge
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Bridge an official QQ bot to DeepSeek Harness (DSH) — in-process.
A message in QQ starts (or resumes) a real DSH session inside the host process. The session shows up in the desktop app's sidebar, can be opened and continued there, and the answer goes back to QQ as text, image or file. QQ is just one more input/output for a normal DSH session.
How it works
| Separate bridge process | This plugin | |
|---|---|---|
| Task execution | spawns dsh --profile qq --json |
ctx.agents.create() / resume() inside the host |
| Where sessions live | only in that CLI profile | the host's own session store (visible in the GUI) |
| Permissions | env vars on the child process | per-session permission preset |
| Lifetime | you keep start-bridge.cmd running |
lives as long as the DSH host |
The QQ protocol layer (token, gateway, passive-reply budget, chunking, workspaces, chat history) is shared with the standalone bridge; only the execution side is different.
Requirements
- A DSH host that provides the
agents,agentDefaultModel,agentPresets,permissionPresets,sessionTitleandworkspaceRegistryservices (the desktop app does). - A QQ official bot application (AppID + AppSecret) with the message intents you plan to use enabled (C2C, group @-message, …) on the QQ open platform.
Install
dsh plugin add github:tbb051122/dsh-plugin-qq-bridge
Then restart the DSH host — host-side plugin code is only loaded at startup.
Configure
Config lives at <DSH_HOME>/qq-bridge/config.json (~/.dsh/qq-bridge/config.json by default).
Set QQ_BRIDGE_HOME to point the whole plugin at another directory (handy for testing).
A minimal config:
{
"appId": "your-app-id",
"appSecret": "your-app-secret",
"intents": 33554432,
"defaultCwd": "",
"allow": { "users": [], "groups": [] }
}
See config.example.json for every key.
Keys that matter for the plugin:
| Key | Meaning |
|---|---|
appId, appSecret |
QQ bot credentials (from the QQ open platform). |
sandbox |
Use the QQ sandbox environment instead of production. |
intents |
Message subscription bitmask; 33554432 is C2C messages, add the group bit for group chats. |
defaultCwd |
Working directory for new sessions. Point it at a registered DSH workspace to have QQ sessions appear there; leave empty for an isolated directory per session. |
agentPreset |
Agent preset name; empty means the host default. |
permissionPreset |
danger-full-access (default, unattended), workspace-write or read-only. |
attachWorkspace |
When defaultCwd is a registered workspace, attach the session to it so the GUI shows it. |
allow.users / allow.groups |
OpenID allow-lists. Empty means "locked": use /bind <code> with bindCode to pair. |
maxConcurrent, queueLimit |
How many agent runs at once, how many conversations may queue. |
passiveWindowMs |
The passive-reply window QQ gives you after a user message. |
taskTimeoutMs |
Per-task timeout. |
selfTestOnBoot |
Run one end-to-end self test on first boot and post the result to QQ. |
titlePrefix |
Session title prefix (default QQ). |
Commands (sent in QQ)
/help, /id, /bind <code>, /new, /status, /stop,
/ws (list workspaces), /ws <name|index>, /ws 0 (back to the default directory),
/history [n].
Files
Everything the plugin writes lives under <QQ_BRIDGE_HOME> (default <DSH_HOME>/qq-bridge):
config.json, state.json (session map, allow-lists), history/ (per session and workspace),
workspaces/ (workspace link index), tasks/ (default task root) and logs/.
Security note
The default permissionPreset is danger-full-access so an unattended QQ task can actually do its job.
Set it to workspace-write or read-only if the bot is reachable by anyone you do not trust, and keep
allow.users limited to people you know.
Development
node lib/cli.mjs --mock --once "hello" # full pipeline with a fake runner and fake QQ
node lib/cli.mjs --selftest # config / workspace / runner checks
Set QQ_BRIDGE_HOME to a scratch directory so the mock run does not touch real data.
License
MIT
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10715
手机/PC 远程操控 dsh web 工作区:扫码配对、令牌门控通道、SSE 实时同步,提供移动端与完整桌面 GUI 两种远程形态。
zhu1090093659/dsh-web#packages/dsh-ssh★ 10715
SSH 远程运维面板:Web 终端、SFTP 传输、本地端口转发与一条命令并发集群执行,Agent 与面板共用同一份主机配置。
liguobao/ds-harness-remote★ 4154
通过端到端加密通道远程访问 DeepSeek Harness 及兼容的编码工作区,支持自适应 Relay/WebRTC 传输、设备授权、工作区文件、只读预览、终端和可选的 Codex Remote。
saya-ch/dsh-mobile★ 1045
通过 Android App 或手机浏览器访问 DeepSeek Harness,支持安全局域网连接、远程访问、持久设备配对和可自定义移动界面。
WNLUO/dsh-mobile-plugin★ 571
DeepSeek Harness App 让你在手机上使用这台电脑或服务器上的 DeepSeek Harness。手机和平板都能用,安卓和苹果都支持。在手机上可以继续对话、查看文件、管理插件,也可以从正在用的这一台连上其他几台上的 DeepSeek Harness,分别打开来用。
uumit-ai/dsh-uumit-remote★ 537
用 UUMit 账号在手机或其他电脑上打开这台电脑的 dsh web,不用自建服务器、不装其他程序:插件内置通道客户端连接 UUMit 托管的通道,侧栏里的面板负责配对和选择谁能用(仅自己、通过邀请链接或手机号授权的人、所有人),可随时撤销。需 dsh web 且 DSH >=0.2.1-rc.2。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。