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.

Lan Pair — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
L

dsh-lan-pair

Lan Pair

Intranet pairing for remote access: connect a phone or another computer to the same DSH Web interface by scanning a QR code or using a token, with keyless direct connections over the intranet. Based on @linxin666/dsh-remote-web-ui 0.4.4, with all public-network features completely removed (Cloudflar

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

npx -y @deepseek-ai/dsh plugin --profile web add github:MyRemme/dsh-lan-pair#1980cd8692d5c91f9adfaf0679efda6bee397c97
READMECompatibilityVersions

Description

Intranet pairing for remote access: connect a phone or another computer to the same DSH Web interface by scanning a QR code or using a token, with keyless direct connections over the intranet. Based on @linxin666/dsh-remote-web-ui 0.4.4, with all public-network features completely removed (Cloudflare tunnels, named tunnels, dsh-market fixed-domain relay, and telemetry reporting).

Compatibility and provenance

Lan Pair is published as dsh-lan-pair and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/30/2026

Versions

0.1.0stable
9/30/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
Apache-2.0
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/30/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

Related plugins

More verified plugins in security-access.

Cc Safety Netcc-safety-netA coding agent CLI hook - block destructive commands and secret file accessDoctor@linxin666/dsh-doctorTransactional rescue mode for DSH profiles with a supervised launcher, isolated recovery capsule, deterministic repairs, health monitoring, and a local Web recovery consoleMobiledsh-mobileDeepSeek Harness mobile adaptation and secure access plugin, supporting LAN, remote connections, Android App, and mobile browsers.Codex Subscriptiondsh-codex-subscriptionUse ChatGPT and Codex subscriptions in DeepSeek Harness with OAuth, quota, safe resets, web search, images, and Fast mode

README

dsh-lan-pair

内网配对远程访问插件,用于 DSH(DeepSeek Harness):让手机或另一台电脑通过扫码 / 配对令牌接入同一份 DSH Web 界面,并且可以选择让内网设备无需密钥直接打开界面。

本插件由 @linxin666/dsh-remote-web-ui 0.4.4 改造而来,已彻底移除全部公网功能,只保留内网场景。

与上游的差异

上游提供公网访问能力(Cloudflare 隧道等)。本插件把这些全部删除,只做内网:

已移除说明
Cloudflare 快速隧道 / 命名隧道含 cloudflared 依赖、tunnelToken、autoTunnel 配置
dsh-market 固定域名中继relay 注册与身份文件
publicBaseUrl 与公网状态帧含面板上的公网地址单选与角标
每日匿名遥测上报上游会向 dsh-market.com 上报心跳,已改为惰性空函数

功能

  • 二维码配对:本机面板签发配对链接,手机扫码即可接入
  • 配对令牌:可直接复制令牌/链接,不依赖摄像头
  • 设备会话管理:已授权设备列表、在线状态、单独吊销
  • 内网免密钥访问(默认开启):同一内网的设备无需配对、无需令牌,直接打开 Web 界面,不再反复要求认证
  • 局域网绑定:自动把 Web 服务绑定改写为 0.0.0.0,并维护主机防火墙放行规则

安装

本插件以「本地包」形式装入 DSH profile。以 desktop profile 为例:

  1. 把本仓库放进 profile 的依赖目录:

    <DSH_HOME>/profiles/<profile>/node_modules/dsh-lan-pair/
    
  2. 在该 profile 的 package.json 中登记依赖与 bundle:

    {
      "dependencies": {
        "dsh-lan-pair": "file:./node_modules/dsh-lan-pair"
      },
      "dsh": {
        "profile": {
          "bundles": [
            // ... 其他 bundle
            "dsh-lan-pair"
          ]
        }
      }
    }
    
  3. 重启 DSH。插件代码位于 node_modules 下,而 DSH 的热重载会忽略该目录,因此改动插件后必须重启才能生效。

配置

在 profile 的 cordis.patch.yml 中配置插件行:

- id: lan-pair
  name: "dsh-lan-pair"
  config:
    lanBind: true              # 把 Web 服务绑定改写为 0.0.0.0,并维护防火墙规则
    allowLanWithoutKey: true   # 内网设备无需配对/令牌直接打开界面
    maxDevices: 32             # 已授权设备上限
    idleExpireMs: 315360000000 # 设备空闲过期(毫秒)
    # requirePairingForLan: true # 默认 true,通常无需显式设置

也可以在 DSH 的设置卡片里图形化调整这些开关。

关于「内网免密钥」与「局域网访问要求配对」的关系

内网免密钥的实现依赖门控的 /remote 通道——只有它会把内网请求送到 harness,并附上进程自身的凭据。因此:

  • allowLanWithoutKey: true 时,插件会强制保留该通道,与 requirePairingForLan 取值无关;
  • 若两者都关,内网请求会走普通 /api,被 harness 的信任围栏挡为 403。

这一点在实现里已做兜底,不会出现「界面能打开、但所有 API 全废」的情况。

安全提醒

allowLanWithoutKey: true 意味着同一内网内的任何设备都能直接打开完整的 DSH Web 界面,其权限等同于该 DSH 实例本身的权限(若你的 profile 是 danger-full-access,则等同于完整控制权)。

在不可信网络(公共 WiFi、合租网络)中请关闭该开关,改为必须扫码配对。关闭后配对闸门立即恢复。

实现说明

  • 本仓库发布的是构建产物(lib/*.js),不含 TypeScript 源码。产物为未压缩 ESM,保留了 //#region 标记与完整注释,可直接阅读与修改。
  • 插件分两半:Host 半(Node ESM,lib/index.js)与 Client 半(浏览器 bundle,lib/client.js)。
  • Host 半注册一条 exact / 路由以支持内网免密钥:内网来源直接获得注入好的应用外壳,其余来源原样交回 harness 的 fallback,因此桌面端行为完全不受影响。

防火墙

lanBind: true 时插件会通过 netsh(Windows)维护一条入站放行规则,规则名为 lan-pair (auto),参数为 dir=in action=allow protocol=TCP localport=<端口> profile=private,domain。状态可从 /api/pair/lan-bind 的 firewall 字段读取:

{ "ok": true, "managed": true, "note": "netsh" }

这一步需要管理员权限。 若 DSH 以普通权限运行,规则写入会失败,字段返回 ok: false,而 Windows 防火墙默认阻止未匹配的入站连接——此时同内网的其他设备打不开界面,但本机访问自己的局域网 IP 仍然正常,容易误判为「已经连通」。

要判断是否真的放行,应看 firewall.ok,而不是从本机访问自己的局域网 IP。修复方式是以管理员身份启动一次 DSH(插件会自动补上规则),或在管理员终端里手工执行:

netsh advfirewall firewall add rule name="lan-pair (auto)" dir=in action=allow protocol=TCP localport=19387 profile=private,domain

注意规则名必须与插件一致。若手工用了别的名字,插件检测不到,firewall.ok 会一直为 false。

许可证

Apache-2.0,见 LICENSE。

Copyright 2026 Hughes

本项目基于 @linxin666/dsh-remote-web-ui 0.4.4 改造,其原始许可证一并保留在 LICENSE 中。

LICENSE 末尾的 Copyright [yyyy] [name of copyright owner] 属于 Apache-2.0 的 APPENDIX 教学示例,按标准做法原样保留、不填写。