@iasiv5/dsh-skip-browser-auth
Replaces the DSH Web connection provider to skip BrowserAuth entirely so the Web UI opens directly without pasting the random startup token, gated to nine verified DSH version pairs with strict host/client matching that sleeps automatically on unknown or mixed versions, and reverts fully on uninstal
Install
dsh plugin --profile web add @iasiv5/dsh-skip-browser-auth
Sandbox test results
| Stage | Result |
|---|---|
| 1 install | ✓ |
| 2 list | ✓ |
| 3 mount | ✓ |
| 4 boot | — |
Four stages run in an isolated sandbox: install (network on) → list → mount → boot (last three with no network).
README
@iasiv5/dsh-skip-browser-auth



个人自用的 DSH Web 插件:在已验证的 DSH compatibility profile 上自动跳过 BrowserAuth,打开 Web 地址即可直接使用,不必每次把启动 URL 里那串随机 token 抄进浏览器。
- 精确 profile 门控:当前支持
0.1.2-rc.1、0.1.5-rc.1、0.1.5-rc.2、0.1.7-rc.1、0.1.7-rc.2、0.2.0-rc.1、0.2.0-rc.2、0.2.1-rc.1、0.2.1-rc.2、0.2.1-rc.3、0.2.1-rc.4、0.2.1-rc.5与0.2.2-rc.1,按 host/client 兼容代际分组;不是把所有版本塞进同一个实现。 - 严格成对匹配:runtime
@deepseek-ai/dsh与@deepseek-ai/dsh-client-connection必须组成已知版本对。混合版本、未知版本、profile 未实现或解析失败都会自动休眠。 - 分代适配:
0.1.2-rc.1使用legacy-web-v1;0.1.5-rc.1与0.1.5-rc.2使用carrier-neutral-v2,包含 request body mode、RPC carrier 和对应浏览器 client variant 适配;0.1.7-rc.1、0.1.7-rc.2、0.2.0-rc.1与0.2.0-rc.2使用carrier-neutral-v3,覆盖 0.1.7 引入、0.2.0 沿用的admit()/OperatorPeer 准入、connection/requestwaterfall 与 mount-preserving BrowserAuth;0.2.1-rc.1、0.2.1-rc.2、0.2.1-rc.3、0.2.1-rc.4、0.2.1-rc.5与0.2.2-rc.1使用carrier-neutral-v4,覆盖 0.2.1 的 Peer/principal 准入重构、admission.peer透传 bridge、新/connect交换通道与webStartup信任来源(0.2.1 是真实契约变化,独立代际;rc.2/rc.3/rc.4/rc.5 为契约面等价重发布,0.2.2-rc.1 经逐维替换面审计收编,见 docs/COMPATIBILITY.md §5.8/§5.9/§5.10/§5.11/§5.12/§5.13/§5.14)。 - 不修改 DSH 本体与任何机制:仅通过 DSH 官方插件 patch 机制替换 Connection 行;卸载或禁用插件并重启,即完全恢复官方行为。
- 安全提醒:跳过认证后,Web 对本机/可信网络内的访问不再有身份层,请勿把 DSH 端口暴露给不可信网络。
0.1.5 的官方 Connection 在 carrier-neutral 重构后出现过 connection.rpc.handle() 返回 HTTP 405 的回归。本插件对 0.1.5 使用独立 adapter,并通过真实 npm fixture 覆盖 dedicated RPC 与 exact Fetch route;GitHub 审计与根因见 [docs/COMPATIBILITY.md](./docs/COMPATIBILITY.md)。
安装
方式一:从插件市场一键安装(推荐)
本插件已收录进我的 DSH 插件市场 dsh-m(收录 id:dsh-skip-browser-auth)。装好 dsh-m 后,在 Web 侧栏「插件市场」搜索 Skip Browser Auth,即可一键安装 / 更新 / 卸载;也可以直接对 agent 说:
从 dsh-m 插件市场安装 dsh-skip-browser-auth,装完重启 DSH Web。
方式二:直接命令安装
dsh plugin --profile web add @iasiv5/dsh-skip-browser-auth sudo systemctl restart deepseek-harness.service # 按你的部署方式重启 DSH Web
复制给 agent 的安装提示词
请给我的 DSH Web 安装 @iasiv5/dsh-skip-browser-auth 插件。 它支持的精确 compatibility profile: - DSH 0.1.2-rc.1:legacy-web-v1 - DSH 0.1.5-rc.1 / 0.1.5-rc.2:carrier-neutral-v2 - DSH 0.1.7-rc.1 / 0.1.7-rc.2 / 0.2.0-rc.1 / 0.2.0-rc.2:carrier-neutral-v3 - DSH 0.2.1-rc.1 / 0.2.1-rc.2 / 0.2.1-rc.3 / 0.2.1-rc.4 / 0.2.1-rc.5 / 0.2.2-rc.1:carrier-neutral-v4 其它版本或 runtime/connection 混合版本会自动休眠,不要强行处理。 desktop 宿主一律自动休眠(多进程树判别:安装槽位/启动器 argv/宿主二进制,0.3.9 起生效),这是设计行为,不要强行处理或改代码绕过;desktop 用户请直接使用 0.3.11+(0.3.6-0.3.10 在 desktop 有已知缺陷,见 docs/COMPATIBILITY.md §7.4)。 1. 先执行 dsh --version 告诉我当前 DSH 版本,然后照常安装: dsh plugin --profile web add @iasiv5/dsh-skip-browser-auth 2. 重启 DSH Web 并轮询 http://127.0.0.1:3080 直到恢复 200 (systemd 系统级部署:sudo systemctl restart deepseek-harness.service; user 级部署:systemctl --user restart dsh-web.service;端口以实际部署为准)。 3. 若版本是 0.1.2-rc.1、0.1.5-rc.1、0.1.5-rc.2、0.1.7-rc.1、0.1.7-rc.2、0.2.0-rc.1、0.2.0-rc.2、0.2.1-rc.1、0.2.1-rc.2、0.2.1-rc.3、0.2.1-rc.4、0.2.1-rc.5 或 0.2.2-rc.1: 确认 journal/日志中出现固定警告 "BrowserAuth has been skipped",并验证浏览器直接打开 Web 地址不再要求 token。 4. 若版本不是精确白名单版本,或 profile/依赖契约不匹配:插件应自动休眠, 保持官方行为,不要修改 DSH 本体或强行覆盖版本检测。
卸载
dsh plugin --profile web remove @iasiv5/dsh-skip-browser-auth sudo systemctl restart deepseek-harness.service
市场安装的用户在「插件市场 → 已装」里点卸载即可。卸载或禁用并重启后,官方 BrowserAuth 完全恢复。
兼容版本与 profile
宿主最低版本声明为 DSH >=0.1.2-rc.1;插件只在下表的精确 runtime/connection 版本对上激活,其他版本或混合版本对自动休眠。
DSH runtime / connection 版本对 · Profile · Host/client 适配 · 状态
0.1.2-rc.1 + 0.1.2-rc.1 · legacy-web-v1 · legacy /api prefix + 0.1.2 client · ✅ active
0.1.5-rc.1 + 0.1.5-rc.1 · carrier-neutral-v2 · carrier-neutral HostConnectionService + 0.1.5 client · ✅ active(代码/真实 npm fixture 已验证;真实部署仍需按清单确认)
0.1.5-rc.2 + 0.1.5-rc.2 · carrier-neutral-v2 · 同上(rc.2 为 rc.1 的重发布:代码逐字节一致) · ✅ active(npm diff 审计 + 真实 rc.2 npm fixture 组合测试已验证;真实部署仍需按清单确认)
0.1.7-rc.1 + 0.1.7-rc.1 · carrier-neutral-v3 · carrier-neutral-017:admit()/OperatorPeer + connection/request waterfall + mount-preserving BrowserAuth + 0.1.7 client · ✅ active(npm diff 审计:插件契约面与 rc.2 逐字节一致 + 真实 rc.1 npm fixture 组合测试,见 docs/COMPATIBILITY.md §5.5;真实部署仍需按清单确认)
0.1.7-rc.2 + 0.1.7-rc.2 · carrier-neutral-v3 · 同上 · ✅ active(真实 npm fixture 组合测试 + 2026-09-26 实机 checklist 与回滚演练,见 docs/DESIGN.md)
0.2.0-rc.1 + 0.2.0-rc.1 · carrier-neutral-v3 · 同上(0.2.0-rc.1 为依赖对齐重发布:插件契约面代码逐字节一致) · ✅ active(npm diff 审计 + 真实 0.2.0-rc.1 npm fixture 组合测试,见 docs/COMPATIBILITY.md §5.6;2026-09-29 实机 checklist 已确认)
0.2.0-rc.2 + 0.2.0-rc.2 · carrier-neutral-v3 · 同上(0.2.0-rc.2 为依赖对齐重发布 + 无关 Desktop CLI 演进:插件契约面代码逐字节一致) · ✅ active(npm diff 审计 + 真实 0.2.0-rc.2 npm fixture 组合测试,见 docs/COMPATIBILITY.md §5.7;实机 checklist 见当日升级记录)
0.2.1-rc.1 + 0.2.1-rc.1 · carrier-neutral-v4 · carrier-neutral-021:Peer/principal 准入 + admission.peer 透传 bridge + /connect 交换通道 + webStartup 信任来源 + 0.2.1 browser client · ✅ active(§5.8 契约审计定谳新代际 + 真实 0.2.1-rc.1 npm fixture 组合测试,见 docs/COMPATIBILITY.md §5.9;实机 checklist 待宿主升级后回填)
0.2.1-rc.2 + 0.2.1-rc.2 · carrier-neutral-v4 · 同上(0.2.1-rc.2 为契约面等价重发布:web-app patch 仅新增非 connection 行,connection 行逐字段一致) · ✅ active(npm diff 审计 + 真实 0.2.1-rc.2 npm fixture 组合测试,见 docs/COMPATIBILITY.md §5.10;实机 checklist 待宿主升级后回填)
0.2.1-rc.3 + 0.2.1-rc.3 · carrier-neutral-v4 · 同上(0.2.1-rc.3 为契约面等价重发布:web-app patch 仅新增非 connection 行,connection 行逐字段一致)
…(truncated)
Rendered from the README published on npm. Formatted only, not edited.
Versions
Published on npm::27,最后更新 2026-11-04