GHJIVHIDD/dsh-plugin-vm-sandbox
原生UI界面。面向 DeepSeek Harness Web 的虚拟机沙箱插件:它基于 OrbStack 为每个会话提供独立的 debian/alpine 沙箱虚拟机,在会话视图环中新增「虚拟机」页签,支持查看/启动/休眠/删除和详细配置展示,同时为模型提供 `vm_list`、`vm_create`、`vm_exec`、`vm_delete` 工具,并内置全局运行上限、闲置自动休眠、归档/删除自动清理等资源治理能力。
Project Overview项目介绍
This is a native DSH plugin built exclusively for the DSH web profile, that provides isolated OrbStack-backed virtual machine sandboxes for individual DSH conversations. To install it, you can run the command dsh plugin --profile web add ./deepseek-ai-dsh-plugin-vm-sandbox-0.4.2.tgz after downloading the latest release tarball from the project’s GitHub page. It adds a dedicated "Virtual Machine" tab to the DSH conversation view ring, and lets users spin up multiple Debian or Alpine VMs per conversation as needed, with all state (including snapshots, audit logs, metrics, and encrypted secrets) persisted locally to the ~/.dsh/vm-sandbox/ directory.
After installation, users can quickly create a ready-to-use VM from the "Quick Start" card on the plugin panel, with pre-built templates for base environments, Python analysis, Node.js services, web scaffolding, and Docker-in-VM setups. The plugin provides a full set of model tools for managing every aspect of VM usage, including lifecycle, snapshots, file transfers, port forwarding, background jobs, auditing, network policies, and resource scheduling and quotas. It is specifically designed for developers and testers who need a secure, isolated environment to run untrusted code or test experimental setups within their DSH conversations.
This plugin has several required dependencies that must be satisfied before it can work correctly. First, it only works with the DSH web profile, and requires two official DSH core libraries to function: @deepseek-ai/dsh-client-runtime and @deepseek-ai/dsh-client-ui-conversation. Second, the host machine must have OrbStack installed and running in the background, with the orb command available at the path /usr/local/bin/orb. The project is open source under the permissive Apache 2.0 license, and includes a full test suite that can be run via commands like npm run verify, npm test, and targeted test commands for E2E and UI validation.
这是 DeepSeek Harness(DSH)web 配置文件专属的原生插件,为DSH的每个交互会话提供基于OrbStack的隔离虚拟机沙箱环境。它会在DSH的会话视图环中新增「虚拟机」页签,每个会话可以按需创建多台 Debian 或 Alpine 系统的沙箱虚拟机,所有运行状态数据都持久化保存在本地 ~/.dsh/vm-sandbox/ 目录下,包含状态、审计、指标和加密密钥库文件。
用户可以通过面板的「快速开始」卡片一键创建就绪环境,支持基础、Python分析、Node服务、Web脚手架、Docker in VM等多种预设模板,也可以通过调用API自定义创建虚拟机实例。插件支持完整的虚拟机生命周期管理、快照回滚、端口转发、密钥管理、网络策略管控等功能,满足安全隔离的代码运行、环境测试等需求,适合需要隔离运行环境的开发测试场景。
该插件仅兼容DSH的web profile,需要依赖 @deepseek-ai/dsh-client-runtime 和 @deepseek-ai/dsh-client-ui-conversation 两个DSH官方运行库,同时要求宿主机已经安装并运行OrbStack,且 orb 命令位于 /usr/local/bin/orb 路径下。项目采用Apache 2.0开源协议,用户可以通过 dsh plugin --profile web add 命令安装本地压缩包版本。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-vm-sandbox(GHJIVHIDD/dsh-plugin-vm-sandbox)
仓库:https://github.com/GHJIVHIDD/dsh-plugin-vm-sandbox
本站详情页:https://www.yhbd.top/plugins/ghjivhidd-dsh-plugin-vm-sandbox/
本站登记:类型 bundle · 归类 原生 DSH 插件 · 许可证 Apache-2.0 · ⭐ 3 · 最近提交 2026-09-30 · 主语言 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 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
- 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:GHJIVHIDD/dsh-plugin-vm-sandbox
把 GHJIVHIDD/dsh-plugin-vm-sandbox 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-vm-sandbox
DeepSeek Harness 的虚拟机沙箱(Web 部署级插件)。
在会话视图环中新增「虚拟机」页签,为每个会话提供 OrbStack 沙箱虚拟机(debian/alpine,同一会话必要时可多台)。状态持久化在 DSH 主目录下的 vm-sandbox/(默认 ~/.dsh/vm-sandbox/,随 $DSH_HOME 变化;state.json + audit.json + metrics.json + secrets.vault.json)。
功能(v0.5.0)
v0.5.0:适配 DeepSeek Harness 0.2.0-rc.2
本版是兼容性发布,跟随 DSH 0.2.0-rc.2 的插件契约调整;功能面与 v0.4.2 一致。
- 客户端模块图依赖迁移:
dsh.client.inject原指向@deepseek-ai/dsh-client-runtime。该包自 DSH 0.1.1-rc.2 之后被移除,0.2.0-rc.2 的启动图里不存在它。dsh-client-modules对解析不到的 inject 目标静默跳过 —— 插件仍能加载,但声明的加载顺序保证失效且没有任何报错。现改为:@deepseek-ai/dsh-client-ui-renderer(提供本面板inject: ["slots"]所依赖的slots服务,0.2.0 之前该服务在dsh-client-runtime里)@deepseek-ai/dsh-client-ui-conversation(conversation.viewSlot 的宿主)
- DSH 版本闸门:
package.json新增peerDependencies(>=0.2.0-rc.2)。DSH 会用运行版本校验所有@deepseek-ai/dsh-*peer,不满足时拒绝装载并给出可操作提示,而不是装上一个静默缺页签的插件。同时用peerDependenciesMeta.optional避免 pnpm 去 registry 拉取这些随宿主分发的包。 - 宿主服务依赖补全:
inject由['webServer','tools']扩展为同时声明sessions/sessionTitle/sessionQuery/workspaceRegistry/sandboxPolicy。初始对账与闲置扫描在apply阶段就要同步读取workspaceRegistry,此前 Cordis 可能先构造本插件,导致归档清理等能力静默失效。 - 会话标题读取修复:
sessionQuery.readTitle()返回的是标题字符串(快照形态在readTitleSnapshot),原代码按snap.title读取永远取不到值;现同时兼容两种形态。 - 状态目录遵循
$DSH_HOME:状态根目录由硬编码的$HOME/.dsh改为与@deepseek-ai/dsh-home-paths一致的解析规则(显式非空$DSH_HOME优先,否则~/.dsh)。$DSH_HOME未设置时结果与历史路径完全相同,无需迁移;测试/便携主目录不再与真实安装互相改写状态。 - 回归闸门:
npm run verify新增 DSH 客户端图核对 —— 离线校验dsh.client.inject与 peer 闸门形状,并禁止已移除的包名重回清单;设置DSH_NODE_MODULES=<dsh>/node_modules时会进一步核对真实安装中每个 inject 目标存在、且 peer 版本满足。
v0.4.0 增强:体验 · 安全 · 编排 · 完整
- A1 交互式 Web 终端:机器详情内嵌 xterm.js 终端(CDN 按需加载),基于 OrbStack
orb run -s交互 shell,输出走 SSE 流、输入回传走 POST(复用 CSRF 通道);空闲自动回收。 - A3 场景化一键创建:面板「快速开始」卡片一键出「就绪环境」(基础 / Python 分析 / Node 服务 / Web 脚手架 / Docker in VM);
/vmsb-api/create支持template。 - A4 大动作可撤销 + 完成通知:面板删除默认先打
undo-before-delete快照,一键「撤销删除」恢复;VM 创建完成、指标告警触发以 toast 通知。 - A5 配额一眼可见:面板顶部配额进度条(机器 / CPU / 内存 用量·限额)+ 排队数。
- A6 多会话协作分组视图:机器列表按「本会话 / 共享给我 / 其他会话」分组,来源徽标。
- B1 创建即安全基线 +
vm_harden:新 VM 默认加固(禁 SSH 密码登录 / root 仅密钥 + 标记);scan/apply/status;OrbStack 无 sshd 时自适应na。 - B2 密钥库
vm_secret:AES-256-GCM 加密存secrets.vault.json(key 0600);{{secret:name}}/{{env:name}}占位符注入 init 脚本;审计/日志自动脱敏。 - C1 增强指标 + 阈值告警
vm_alert:每核 CPU% / 网络 / IO 速率 / 进程 Top(相邻采样差分);阈值规则(cpu|mem|disk|load|netRx|netTx|io,gt|gte|lt|lte|eq,冷却)命中即审计 +/vmsb-api/alerts通知。 - D1 补工具:
vm_scp(批量/多机分发)、vm_logs(统一日志)、vm_env(环境变量库)、vm_withdraw(安全下线:停任务/停隧道/撤销共享/可选快照/删除)。 - D2 调度 UI + 用量报表
vm_report:meta 页签定时任务管理(增/启停/删);会话级用量报表(机型平均 CPU%/内存%、规格、采样跨度、累计创建、排队)。 - D3 导出分片/远端:
vm_export slice_mb分片到<path>.parts/(可无损拼接);remote_machine推到另一台 VM 备份。 - D4 累计配额 + 创建排队:
vm_policy cpu_quota/memory_quota;vm_create(queue:true)超配额排队,配额释放自动推进(vm_queue查看/取消)。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
omdsh-dev/dsh-session-health
54xkeee/dsh-anchored-standard-plus
Unclecheng-li/DeepSec
WestFox-AwA/dsh-prompt-optimizer
titanwings/dsh-automation
Noob-stupid/dsh-plugin-gating-hub
linhut/gongwen-skill