DeepSeek Harness 插件

dsh-network

Secure LAN, Tailnet, and remote connectivity for DeepSeek Harness.(英文原文)

跳到安装方式

来源信息

GitHub 仓库
baixianger/dsh-network
最近更新
2026年8月19日
分类
工具与能力
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/baixianger/dsh-network
插件名:dsh-network
作者:baixianger

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

DSH Network

> One secure connection layer for a DeepSeek Harness Host on a LAN, Tailnet, or public HTTPS route.

dsh-network is an independent DSH Host plugin. It keeps DSH bound to 127.0.0.1, places an authenticated gateway in front of it, and gives every Host a persistent hostId so clients can merge multiple routes to one Host.

RouteDiscoveryAddress
Home / LANQR or pasted pairing linkGateway on the local machine
TailnetQR or manualTailscale Serve MagicDNS URL
Public HostQR or manualUser-managed HTTPS URL

Install

dsh plugin --profile web add dsh-network@next
dsh web

The plugin starts its authenticated gateway on port 3081. DSH itself remains on loopback port 3080.

In another terminal, run the setup assistant. With no mode supplied it always asks which route to place in the QR code; it never silently selects one:

dsh plugin --profile web exec dsh-network setup

# 1. LAN / home network
# 2. Tailscale / Tailnet
# 3. Custom address

Optional iOS download card

Once the iOS app has a real App Store or TestFlight HTTPS URL, set iosAppDownloadURL in the dsh-network plugin config. The local Web client then shows one small, dismissible download card on its first eligible browser launch. It uses DSH's additive shell.overlay slot and never replaces or reflows the application shell. With no URL configured, no card is shown.

# ~/.dsh/profiles/web/cordis.patch.yml
- id: dsh-network
  config:
    iosAppDownloadURL: https://apps.apple.com/app/id6802863224

Pair on the LAN

With the DSH Host running, generate a QR containing a private LAN address and scan it in the iOS app:

npx dsh-network setup lan

Use --url http://HOST:3081 if the machine has multiple private interfaces and the automatically selected address is not the one the phone can reach. LAN mode authenticates the client but uses the trusted local network for transport; do not use its HTTP URL over the public internet.

Configure a Tailnet

Tailscale must already be installed and signed in. This command configures Tailscale Serve to forward the private MagicDNS HTTPS URL to the authenticated gateway, then prints a pairing QR code:

npx dsh-network setup tailscale

The QR code supplies the MagicDNS URL to the iOS app once; the app then remembers the route.

Custom address

Choose option 3 in the setup assistant and paste an address that already reaches the authenticated gateway, or provide it explicitly:

npx dsh-network setup custom --url https://dsh.example.com

Public HTTPS Host

Public discovery is intentionally unsupported. Put port 3081 behind a trusted HTTPS reverse proxy, then generate a QR code containing that URL:

npx dsh-network pair --url https://dsh.example.com

Do not expose DSH port 3080 itself. Public mode requires TLS and should also use provider firewall and rate-limit controls.

The plugin does not install or edit a reverse proxy, container, firewall, certificate, DNS record, or hosting panel. It only accepts the working HTTPS address that the user already operates. See [docs/internet-compatibility.md](docs/internet-compatibility.md) for the public Host boundary.

Credential lifecycle

1. The QR contains a random, single-use pairing ticket valid for five minutes. 2. Pairing issues a device refresh credential and a one-hour access token. 3. The client refreshes automatically and both credentials rotate. 4. Only credential hashes are stored under ~/.dsh/network/state.json. 5. Pairing links are generated on demand and are never broadcast.

When an authenticated iPhone browser opens DSH, the web client can mint a new one-minute, app-only ticket and hand the same Host to the DSH iOS app. Browser cookies and iOS Keychain credentials remain separate.

The gateway rate-limits pairing attempts. Device listing and revocation will be exposed in the DSH settings UI before a stable release.

Platform support

LAN setup uses ordinary HTTP addressing and Tailnet setup uses Tailscale's HTTPS Serve. Linux and Windows may require allowing the DSH process through the host firewall for TCP 3081 on trusted private interfaces.

Development

npm test
npm run check

License

MIT © Xiang Bai