插件目录 / Developer / dsh-web-auto-open
dsh-web-auto-open
未验证 ChengChe106
功能简介
DSH plugin: auto-open the default browser when `dsh web` starts — cross-platform (Windows/macOS/Linux)
未验证 — 尚未实测
DSH plugin: auto-open the default browser when `dsh web` starts — cross-platform (Windows/macOS/Linux) 尚未验证——请自行安装测试。
「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-web-auto-open
DSH(DeepSeek Harness)Web 一键启动插件:运行 dsh web,浏览器自动打开。
GitHub · npm · dsh-plugin topic
有什么用
DeepSeek Harness 的 Web 界面默认需要两步:先在终端启动服务器,再手动打开浏览器输入 http://127.0.0.1:3080。
装了这个插件后,启动只需一步:
npx @deepseek-ai/dsh web
服务器一监听成功,插件会自动用系统默认浏览器打开 Web 界面——不用复制网址、不用额外脚本、不用记端口。
- 支持 Windows / macOS / Linux
- 服务器端口为
0(系统随机分配)时也能拿到真实端口并正确打开
安装(推荐 npm)
dsh plugin add dsh-web-auto-open
如果 dsh 没有全局安装,用 npx 方式执行:
npx --yes @deepseek-ai/dsh plugin --profile web add dsh-web-auto-open
如何启用
插件声明为 profile bundle,安装后下一次启动 dsh web 即自动生效,无需任何额外配置。
验证是否已生效:
dsh --profile web --dump-config
# 输出中应包含以下片段:
# - id: web-open
# name: dsh-web-auto-open
可选配置
在 ~/.dsh/profiles/web/cordis.patch.yml 里覆盖 web-open 行即可:
- id: web-open
config:
autoOpen: false # 关闭自动打开
delayMs: 1000 # 服务器就绪后再延时 1 秒打开浏览器
原理
- 插件声明
inject: ["webServer"],等 Loader 全部启动完成后读取webServer.port(监听成功后才赋值) - 通过官方
@deepseek-ai/dsh-native-command调用系统命令打开浏览器:
Windowscmd /c start/ macOSopen/ Linuxxdg-open - 与官方
dsh-web-app打印 URL 用的是同一套就绪判定习惯,安全可靠
开发者
- 仓库:https://github.com/ChengChe106/dsh-web-auto-open (欢迎 Star / Issue)
- 发布新版本:
npm version patch && npm publish && git push --tags - 协议:MIT
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-web-auto-open」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:ChengChe106/dsh-web-auto-open Headless(CLI)profile:
dsh plugin --profile headless add github:ChengChe106/dsh-web-auto-open 实测报告
尚未 L3 验证——若已跑过,见下方失败备注。
2026-08-26 · 标记 webonly 备注:验证: web-only;待 L4 web CDP;L4 web CDP runtime-fail on dsh 0.1.0-rc.8. 浏览全部待验证失败 →