本地插件安装器:DSH 网页设置页里的本地插件安装入口——文件选择器多选 .tgz 或输入本机完整路径,自动检测所在 profile 并执行官方 `dsh plugin add`,实时回显安装日志,无需终端。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-local-installer
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:ljh257110/dsh-local-installer
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。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
中文

DeepSeek Harness(dsh)插件 —— 本地插件安装器:在 DSH Web 的 设置 → 本地插件 页面里,点按钮选择本地 .tgz 插件包(支持多选),一键安装到当前 profile,无需打开终端。
功能
- 📦 文件选择安装 —— 浏览器文件选择器选取
.tgz(可多选),自动逐个执行dsh plugin --profile <当前> add <包> - 📝 路径安装 —— 直接输入本机
.tgz完整路径安装 - 🖥 实时日志 —— CLI 输出与退出码实时显示在页面日志区
- 🏠 自动识别 profile —— 从自身安装路径解析所在 profile(desktop / web / 自定义),无需配置
- 🌐 中英双语,跟随浏览器语言
- 🔒 同源防护 —— 安装路由拒绝跨站请求;上传内容写临时文件、安装后即删
安装
dsh plugin add dsh-local-installer
装完重启 dsh web 并硬刷新浏览器(Ctrl+Shift+R),在 设置 → 本地插件 使用。
工作原理
- host 半:注册
/local-installer/*HTTP 路由;接收上传的 tgz(base64)写入临时文件,或直接使用传入的本机路径,然后在 DSH 进程内执行dsh plugin --profile <检测值> add <tgz>(300 秒超时,输出回传) - client 半:向 DSH 原生
settings.section插槽注册设置页(零第三方依赖,不依赖 better-sidebar)
已知边界
- 安装发生在运行中的 DSH 进程里:新插件 / 升级需重启 dsh web 才加载(DSH 机制要求,与命令行安装一致)
- 浏览器文件选择器只能拿到文件内容而非原始路径,上传安装走 base64(插件包通常几十 KB,瞬时完成)
开发
node scripts/build.mjs # 把 src/client-body.js 内联进 lib/client.js
node --check lib/client.js # 语法校验
npm pack # 打包
English

DeepSeek Harness (dsh) plugin — local plugin installer: in the DSH web Settings → Local plugins page, pick local .tgz plugin packages (multi-select supported) and install them into the current profile with one click — no terminal needed.
Features
- 📦 File-picker install — select
.tgzpackages in the browser file dialog; each is installed viadsh plugin --profile <detected> add <pkg> - 📝 Install from path — enter a full
.tgzpath on the machine - 🖥 Live log — CLI output and exit codes stream into an on-page log
- 🏠 Auto profile detection — resolves the profile (desktop / web / custom) from the package's own install location; zero configuration
- 🌐 Bilingual (zh/en), follows the browser locale
- 🔒 Same-origin guard — install routes reject cross-site requests; uploads go to a temp file removed right after install
Install
dsh plugin add dsh-local-installer
Restart dsh web and hard-refresh the browser (Ctrl+Shift+R), then open Settings → Local plugins.
How it works
- Host half: registers
/local-installer/*HTTP routes; writes uploaded tgz bytes (base64) to a temp file — or uses a supplied machine path — then runsdsh plugin --profile <detected> add <tgz>inside the DSH process (300 s timeout, output returned) - Client half: registers a page into DSH's native
settings.sectionslot (no third-party dependencies, no better-sidebar required)
Known limits
- Installs happen inside the running DSH process: newly installed/updated plugins require a dsh web restart to load (a DSH mechanism, same as CLI installs)
- The browser file dialog exposes file contents, not original paths — uploads travel as base64 (plugin tarballs are typically tens of KB)
License
MIT
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-plugin-manager★ 9321
设置 → 插件 分区里的插件管理 Tab:从 npm/git 安装带进度、下次启动生效的启停开关、安装冲突对账可撤销、失败一键转交修复会话。
dsh-market/dsh-market★ 8235
在 DeepSeek Harness 设置页内浏览、搜索并安装社区插件,支持分类筛选、一键更新与停用,以及主题切换与配置备份。
kingOfSoySauce/dsh-skin-market★ 246
原生皮肤市场与生命周期管理器,发现社区皮肤、展示预览与兼容状态,并提供已验证的一键安装或手动安装入口。
awesome-dsh-plugin/dsh-find-plugin★ 204
会话内直接找插件:按关键词/分类搜索本精选 registry,返回描述与可直接执行的安装命令。
bradeGithub/DSH-Plugins-Marketplace★ 188
面向 GitHub dsh-plugin 话题的插件与技能市场:设置页内逛自动收录的全量索引(CI 每 2 小时刷新),一键安装带类型识别、安装脚本与宿主依赖遮蔽安全检查、环境变量密钥管理,并附 STANDARD.md 识别层规范。
Sanqi-normal/dsh-webui-market-plugin★ 104
dsh Web GUI 内的社区插件市场:浏览 awesome-dsh-plugin.com 目录,从 设置 → 插件 → 插件市场 安装/卸载插件到 profile。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。