DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Remote Auth — DSH Plugin for DeepSeek Harness
← Plugins

dsh-remote-auth

Remote Auth

DSH remote-access authorization page: one click or QR scan mints the current process's browser-session URL (no more digging tokens out of server logs). Optional authority/subnet fence and 8-char PIN gate. · DSH 远程授权页:点击链接或扫码即可铸造当前进程的浏览器会话,带 Host/网段围栏与 PIN 门禁。

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-remote-auth@0.1.2
READMECompatibilityVersions

Compatibility and provenance

Remote Auth is published as dsh-remote-auth and currently resolves to version 0.1.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
9/17/2026

Versions

0.1.2stable
9/17/2026
0.1.1stable
9/11/2026
0.1.0stable
9/5/2026

Related plugins

Loading related plugins…

Latest
0.1.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
79 kB
Files
7
Surface
any
License
MIT
Source
npm
GitHub
★ 0
Weekly downloads
0
Last push
9/17/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in security-access.

Pocketdsh-pocketPut DeepSeek Harness in your pocket: one package, one settings page, and scan a QR code on your phone to access DSH on your computer in sync (LAN + public network, real-time screen mirroring).DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Auto Reviewdsh-auto-reviewSecond-model AI auto-review for DeepSeek Harness approval requests: a read-only reviewer subagent decides allow/deny on the approval answerer chain, with fail-closed fallback and full session-log audit.Codex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast mode

README

dsh-remote-auth

DSH 远程授权页:点一下链接或扫一下二维码,设备即可获得当前 dsh web 进程的浏览器会话——再也不用翻 ~/.dsh/logs/ 找 token。

One click or one QR scan mints the current process's browser-session URL for DeepSeek Harness (dsh web). No more digging the launch token out of server logs.

为什么需要它

dsh web 用"每次进程启动随机生成"的 launch token 授权浏览器: 访问 /?token=... 后换取 30 天签名 cookie。本机浏览器启动时自动打开没问题, 但 iPad / iPhone / 其他电脑(经 Tailscale 或家庭 Wi-Fi)要访问时,只能去 服务器日志里翻带 token 的 URL——麻烦且易错。

本插件在 webserver 上挂一个公开路由 GET /mobile-auth:设备打开后输入 PIN (可选),页面给出当前进程、且与访问所用 authority 一致的授权链接 + 二维码;点击/扫码即铸造 cookie。cookie 由持久化签名密钥签发( ~/.dsh/.credentials.yaml),重启 dsh 不会踢掉已授权设备,每 30 天 刷新一次即可。

安装

dsh plugin --profile web add dsh-remote-auth -w
# 重启 dsh web 生效(GUI 会短暂断连后自动恢复):
launchctl kickstart -k gui/501/com.dsh.web        # macOS launchd
# 或直接:dsh --profile web

安装后从任意授权设备打开:

  • 局域网:http://<Mac-name>.local:3080/mobile-auth
  • Tailscale:http://<host>.tailXXXX.ts.net:3080/mobile-auth
  • 本机:http://127.0.0.1:3080/mobile-auth

输入 PIN(若启用)→ 点"在本设备打开授权链接"(或让另一台设备扫二维码)。 PIN 只在服务端 profile 配置里保存与查看,任何页面上都不会显示 PIN。

配置

在 profile 的 cordis.patch.yml 中覆盖行配置:

- id: dsh-remote-auth
  config:
    # Host 头白名单:裸主机名(任意端口)或精确 host:port。回环恒放行。
    allowedAuthorities:
      - myhost
      - myhost.tailXXXX.ts.net
    # 源 IP 网段白名单(CIDR)。回环恒放行。
    allowedSubnets:
      - 100.64.0.0/10      # Tailscale
      - 192.168.0.0/16     # 家庭内网
    # 8 位字母数字 PIN;"" = 关闭 PIN 门禁(不推荐公网使用)。
    pin: ""
    # 当服务位于 TLS 反向代理之后时设为 "https"。
    originProtocol: "http"
字段默认说明
allowedAuthorities[]Host 头名单(bare host 匹配任意端口)
allowedSubnets[]源 IP CIDR 名单
pin""PIN 门禁;连错 5 次锁 60 秒(按源 IP)
lockAfterFails5锁定阈值
lockSeconds60锁定秒数
originProtocol"http"反代启用 TLS 后改为 "https"

访问门禁(安全模型)

OR 语义:Host ∈ allowedAuthorities 或 源 IP ∈ allowedSubnets 即放行;回环恒放行;两表皆空 = 仅回环(fail closed)。因此:

  • 想按"名字"访问 → 写 allowedAuthorities(ts.net 域名 / mDNS 名);
  • 想按"网段"放行(裸 IP 访问、整段 Tailscale/内网)→ 写 allowedSubnets。

/mobile-auth 是 webserver 公开路由(不在 /api cookie 门禁之下),它自己 的围栏 + PIN 就是防线。页面给出的授权 URL 由官方扩展点 ctx.connection.authenticatedUrl(请求origin) 生成——与设备当前使用的 authority 一致,cookie 才能正确落到该 authority(cookie 按 host:port 绑定, LAN IP 与 ts.net 域名是两张独立 cookie,需各自授权一次)。

兼容性

  • 依赖内核扩展点:ctx.webServer.register(dsh-host-webserver)与 ctx.connection.authenticatedUrl(dsh-client-connection)。
  • 已验证内核版本:0.1.2-rc.1、0.1.6-alpha.1(2026-09-17 复检:上述扩展点 与浏览器认证模型均未变化,token 交换 / cookie / 门禁全链路通过)。
  • 升级 dsh 后请运行 docs/VERIFY.md 清单复验。
  • 明文 HTTP 环境(局域网/Tailscale IP)需要 crypto.randomUUID polyfill—— 配合 dsh-web-lan-access 可自动注入(本插件不重复实现)。

开发

npm run check    # 语法自检

第三方代码:lib/qrcode.cjs 为 qrcode-generator (MIT, Kazuhiko Arase) 的 vendored 单文件。勿改成 .js——本包 "type": "module",.js 会被按 ESM 加载导致 UMD 导出成空对象、二维码空白。

License

MIT © 2026 dsh-remote-auth contributors(lib/qrcode.cjs 保留原作者版权头)