gaoqiaoliangjie666/dsh-qwen-connect
将 QwenWork 桌面 App 包含的模型自动接入 DeepSeek Harness,零配置使用。Bring the models in the QwenWork desktop app into DeepSeek Harness with zero configuration.
Project Overview项目介绍
This repository is a native plugin built exclusively for DeepSeek Harness, which enables users to access QwenWork large language models directly from DSH using their existing local QwenWork desktop app login session. There is no need to manually copy or enter a separate API key, and no additional login step is required to start using the models after correct local installation. It registers three QwenWork models in DSH’s native model selector, supports streaming output, multi-turn conversations, up to three automatic retries for rate limiting and transient gateway errors, and protocol conversion for tool calls and image inputs.
It is intended for users who already have an active QwenWork desktop app account and want to use Qwen models within their existing DeepSeek Harness workflow. To install the plugin, you first create Junction symlinks for required peer dependencies from your existing DSH profile directory to the cloned local plugin folder. Next you add the plugin to your profile’s package.json dependencies and the DSH profile bundle list, then restart DSH to complete setup. After restarting, you can access the three pre-configured Qwen models directly from DSH’s model selector, and view your account quota and subscription details from the plugin’s native settings card.
The plugin has several key limitations that all users should note before proceeding with installation. It only works on Windows systems currently, because the credential decryption step relies exclusively on Windows DPAPI, and the official signing WASM module is not distributed with the plugin and must be extracted from the QwenWork app binary manually. The model list is statically built into the plugin, full production-ready support for tool calls and image inputs is not yet available, and there is no explicit open source license listed for the shared project code.
这是一款专为 DeepSeek Harness 开发的原生插件,作用是将本地千问办公(QwenWorkCN)桌面 App 的登录状态自动接入 DSH。用户无需额外配置 API 密钥,也不需要重复登录,支持流式输出、多轮上下文对话、token 用量统计,还能对限流或网关瞬时故障做最多三次上游重试。它可处理 DSH 侧的图片输入,完成工具调用的协议转换,还能将千问办公的模型注册到 DSH 模型选择器中,并标注计费倍率。
本插件面向已经拥有千问办公桌面版账号,希望在 DSH 中调用千问系列大模型的开发者和普通用户。使用时你需要先确保千问办公 App 已经在本机完成登录,之后将本插件通过 Junction 软链接挂载到 DSH 的配置文件目录,再在 DSH profile 的 package.json 中完成依赖登记。重启 DSH 后就能在模型列表中看到千问的三款模型,还可在设置卡片查看账号信息、剩余积分、套餐类型和配额进度。
本插件目前仅支持 Windows 系统,因为凭据解密依赖 Windows DPAPI,模型目录为静态内置,暂不支持动态拉取最新模型列表。官方签名用的 WASM 文件不随本插件发布,需要用户从千问办公 App 产物中自行提取。部分能力如完整工具调用、稳定图片输入暂未完全开放,依赖 Node.js 环境,需要 DSH 桌面端才能正常挂载使用,无明确开源协议声明。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-qwen-connect(gaoqiaoliangjie666/dsh-qwen-connect)
仓库:https://github.com/gaoqiaoliangjie666/dsh-qwen-connect
本站详情页:https://www.yhbd.top/plugins/gaoqiaoliangjie666-dsh-qwen-connect/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 2 · 最近提交 2026-09-24 · 主语言 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 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
- 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 github:gaoqiaoliangjie666/dsh-qwen-connect
把 gaoqiaoliangjie666/dsh-qwen-connect 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-qwen-connect
把千问办公(QwenWorkCN)桌面 App 的登录态自动接入 DeepSeek Harness —— 零配置,不需要 API Key,不需要另外登录。
它做什么
| 能力 | 状态 |
|---|---|
| Provider 注册(模型出现在 DSH 模型选择器,名称含倍率) | ✅ |
| 设置卡片:账号 / 积分 / 套餐 / 模型列表(含配额进度条) | ✅ |
| 凭据解密(Chromium v10 + Windows DPAPI) | ✅ |
| 账号 / 额度 / 套餐 REST 查询 | ✅ |
| 真实对话(WASM 签名 + SSE 聊天端点) | ✅ |
| 流式输出 + 多轮上下文 | ✅ |
工具调用(tools 透传 + tool_calls 协议转换) |
✅ |
图片输入(DSH 附件服务 → chat_context.imageUrls) |
✅ |
token 统计(上游 raw_usage → OpenAI usage) |
✅ |
| 上游重试(限流 / 网关瞬时故障,最多 3 次) | ✅ |
| 请求方鉴别(shim 共享密钥 + 常量时间比较) | ✅ |
| 动态模型目录 | ❌ 静态内置(/api/v2/model/list 需签名) |
图片输入(视觉)
上游模型具备视觉能力,本插件已打通完整链路。DSH 侧的三个条件必须同时成立:
- 模型描述符声明
image模态(lib/models.js) - pi-ai 配置了
resolveAttachments(lib/index.js从ctx.get('attachments')取) - shim 把图片转成上游认的形态
前两条是联动的:插件按附件服务是否可用动态决定是否声明 image
(createQwenWorkAdapter 的 imagesAvailable)——避免「声明了却用不了」
(DSH 会抛 pi-ai image input requires the durable attachment service)。
上游要同时收到两样东西才认图(六变体对照实验的结论,
见 research/probes-2026-09-14/probe-image-format.mjs):
| 条件 | 位置 |
|---|---|
| ① 有图标记 | chat_context.imageUrls(data URL 数组,无图时为 null) |
| ② 多模态内容 | messages[].content 是含 image_url 的数组 |
任一缺失,模型都会回复「我没有看到您上传的图片」。因此 toQwenWorkMessages
对含图消息保留数组 content(不再塌缩成纯文本),collectImageUrls
只取最后一条 user 消息里的图(避免重复分析历史图)。
架构
lib/index.js host 侧入口:注册 qwenwork provider + 挂载状态路由
lib/client.js 浏览器侧入口:设置卡片(__ModuleLoader__.load 包装)
lib/web-status.js 状态路由:loopback-only + JWT 脱敏,汇总卡片数据
lib/credentials-seam.js 与凭据层的唯一接缝(不重复实现解密)
lib/signer-session.js WASM 签名会话 + 请求体构造
lib/chat-shim.js 环回聊天 shim:OpenAI ↔ QwenWork 协议转换 + 工具调用 + token 统计
lib/signer-shim.js chat-shim 的稳定转发层(集成方从此导入)
lib/sse.js 健壮 SSE 解析 + OpenAI 分块编码 + usage 归一化
lib/runtime-identity.js Cosy-Version / machineId 的动态解析与多级回退
lib/models.js 静态模型目录(取自 App 日志的 rawModels,未臆造)
lib/loopback.js 环回访问判定(挡 DNS-rebinding)
lib/status-paths.js host / client 共享常量
凭据与 REST 实现(lib/credentials.js、lib/auth.js、lib/rest.js、
lib/errors.js、lib/dpapi.js、lib/api.js)。集成层只通过接缝消费,
不重复实现任何解密逻辑。
模型目录
三个模型均取自 App 日志的 rawModels,无臆造:
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
reactive-resume/reactive-resume
anywhere-labs/dsh-desktop
dataelement/dsh-desktop
ccch1mneyyy/dsh-TUI
DSH-EAC/DSH-Desktop-EAC
shaobeichen/dsh-pocket
xyTom/coding-tools-mcp