dsh-desktop
Manifest valid★ 1DeepSeek Harness Desktop Plugin: An Electron-based dsh Web UI desktop shell. | An Electron desktop shell for the DeepSeek Harness Web UI, with a system tray and a custom title bar.
dsh-desktop
English | 简体中文
DeepSeek Harness 桌面端插件:使用 Electron 包装 dsh Web UI,提供系统托盘与自定义标题栏。
简介
dsh-desktop 是一个 out-of-tree 桌面端插件,不修改 dsh 源码,也不把 Electron 引入 dsh 依赖树。
功能
- 使用 Electron 加载 dsh Web UI
- 无边框窗口 + dsh 风格标题栏,自动跟随主题
- 系统托盘:显示主窗口、打开浏览器、退出
- 关闭窗口时最小化到托盘
- URL 解析优先级:
--url> Web Server 端口 > 自动启动dsh web
工作原理
通过 cordis.patch.yml 挂载两个插件:
- desktop-startup:解析
dsh desktop参数,提供webStartup/desktopStartup服务 - desktop-runner:等待树稳定后,解析 URL 和 Electron 路径;没有现成 Web UI 时自动启动
dsh web,再以子进程方式启动 Electron
使用
0.3.1及以下版本已废弃,请使用最新版。
dsh plugin --profile desktop add @ahikl/dsh-desktop electron
dsh --profile desktop desktop
dsh --profile desktop desktop --url http://127.0.0.1:3080
最简单的启动方式(没有安装 dsh-web-app 时,桌面插件会自动启动官方 Web UI):
dsh plugin --profile desktop add @ahikl/dsh-desktop electron
dsh --profile desktop desktop
如果已经安装了 dsh-web-app,桌面插件会自动复用其 Web Server:
dsh plugin --profile desktop add @ahikl/dsh-desktop @deepseek-ai/dsh-web-app electron
dsh --profile desktop desktop
配置
- id: desktop-runner
config:
url: https://example.com
electronPath: /opt/electron/electron
width: 1280
height: 800
electronArgs: ["--no-sandbox", "--disable-gpu"]
开发
pnpm install
pnpm run typecheck
pnpm run test # 单元测试
pnpm run build # 构建到 lib/
目录结构
dsh-desktop/
├── cordis.patch.yml # bundle patch
├── src/
│ ├── index.ts # desktop-runner 插件
│ ├── launcher.ts # Electron 解析与启动逻辑
│ └── startup.ts # desktop-startup 插件
├── electron-main.cjs # Electron 主进程
├── preload.cjs # 自定义标题栏预加载脚本
├── dashboard.html # 兜底页面
├── tests/ # 单元测试
└── package.json
许可证
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.1.0 | — | — |
| 0.2.0 | — | — |
| 0.3.0 | — | — |
| 0.3.1 | — | — |
| 0.3.2 | — | — |
Comments
Loading…
From the same category
by awesome-dsh-plugin
A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表
★ 18.3k
CC0-1.0
Python
Oct 10, 2026
by 0xsline
DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.
★ 1.2k
CC0-1.0
Python
Oct 10, 2026
by pax-beehive
Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub
★ 450
MIT
TypeScript
Oct 6, 2026
by xiajiajun516
DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.
★ 176
MIT
TypeScript
Oct 8, 2026
dsh plugin --profile web add dsh-config-managerby yjh051108
推荐组件(非必须):DeepSeek Harness 运行时注入器;已随 dsh-routing-suite 单仓库化保留,本仓库继续维护/发布。
★ 164
TypeScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby jigjoy-ai
A CLI that turns a goal into a pull request - and a sandbox for testing concurrent AI coding agents on the Mozaik runtime.
★ 124
MIT
TypeScript
Oct 2, 2026