DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-lan

S

dsh-lan

Manifest valid

DSH bundle: expose the Web GUI on the LAN (bind 0.0.0.0) and add a deepseek/balance RPC (PC-side credential, never leaves the PC)

hasBundlePatch

dsh-lan

DeepSeek Harness (DSH) 的局域网开放插件。一个 bundle 提供两个能力:

  1. 局域网开放:把 Web GUI 绑定到 0.0.0.0,dsh-web-app 自动枚举所有 IPv4 地址作为浏览器信任栅栏白名单,无需任何补丁或启动参数。
  2. deepseek/balance RPC:用 PC 端已配置的 DEEPSEEK_API_KEY 凭证查询 DeepSeek 官方账户余额(GET https://api.deepseek.com/user/balance),密钥永不出 PC,手机等远程客户端直接调用即可。

仓库:https://github.com/SparkWeiyang/dsh-lan · topic: dsh-plugin

安装

# 从 npm(若已发布)
dsh plugin --profile web add dsh-lan

# 或从本地目录
dsh plugin --profile web add file:../dsh-lan

然后把 dsh-lan 加入 web profile 的 bundle 列表(必须在 @deepseek-ai/dsh-web-app 之后)。 编辑 $DSH_HOME/profiles/web/package.json:

{
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "dsh-lan"
      ]
    }
  }
}

使用

dsh web              # 绑定 0.0.0.0:3080,局域网可访问
dsh web --port 8080  # 换端口

启动后 web-runtime 会打印局域网 URL(如 (LAN: http://192.168.x.x:3080))。

余额查询 RPC

客户端向 harness 发送标准 RPC 信封(Typert 端点约定 payload.args):

{
  "type": "client-request",
  "rpcId": "uuid",
  "method": "deepseek/balance",
  "payload": { "args": {} }
}

响应 result.value 即 DeepSeek 官方余额:

{
  "is_available": true,
  "balance_infos": [
    { "currency": "CNY", "total_balance": "8.27", "granted_balance": "0.00", "topped_up_balance": "8.27" }
  ]
}

PC 端凭证未配置时返回 internal 错误(DEEPSEEK_API_KEY credential is not configured)。

原理

  • bundle patch(cordis.patch.yml):覆盖 webserver 行 host: 0.0.0.0(端口仍随 --port 可调),并插入 deepseek-service 行加载本插件。
  • 运行时插件(lib/index.js):一个 TypertRemoteService 子类(serviceKey=deepseek,@Remote('balance')),以 SRC 模式注册端点 deepseek/balance;实现内用 ctx.credentials.resolve('DEEPSEEK_API_KEY') 取得 PC 端凭证后调用官方接口。

安全警告

DSH Web carrier 没有鉴权层(信任栅栏只是可达性策略)。绑定 0.0.0.0 后,同网段任何人都可驱动会话执行命令。请仅在可信网络暴露,或在前面加反向代理 + 认证。

Comments

Loading…

Similar plugins

dsh-lan-access

by woyeshishen

DeepSeek Harness static Cordis plugin: bind the Web GUI to 0.0.0.0 for LAN access + crypto.randomUUID polyfill for non-secure HTTP origins.

Manifest valid

★ 0

Apache-2.0

PowerShell

Aug 15, 2026

dsh plugin --profile web add @woyeshishen/dsh-lan-access

by dawsondx

DeepSeek Harness (dsh) bundle: when `dsh web` is ready, print the full GUI URL and open it in your default browser. Cross-platform, zero runtime deps, fail-safe.

Manifest valid

★ 3

↓ 54/wk

MIT

JavaScript

Aug 15, 2026

dsh plugin --profile web add @dawsondx/dsh-web-open

by longisland-icetea

Configurable LAN access for the DSH Web GUI: a settings tab binds the server to all interfaces, trusts only the addresses you configure, sets the browser session lifetime or removes the token login, a

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

↓ 308/wk

MIT

JavaScript

Sep 9, 2026

dsh plugin --profile web add dsh-lan-access

by Li-Mingshuang

Fix the DeepSeek Harness Web GUI over plain HTTP on a LAN: injects a crypto.randomUUID polyfill (getRandomValues-backed) before dsh bundle code runs

Manifest valid

★ 0

MIT

JavaScript

Sep 5, 2026

dsh plugin --profile web add dsh-secure-context-fix

by MrMu666

为DeepSeek harness开启局域网访问及移动端页面的插件,移动端界面适配

Terminal & ClientsManifest valid

★ 10

JavaScript

Sep 18, 2026

dsh plugin --profile web add github:MrMu666/dsh-LAN

by stuarthu

DeepSeek Harness (dsh) browser companion: Chrome side panel embedding the full dsh web UI + host plugins for page reading, HTTP capture, and browser control.

Tools & CapabilitiesManifest valid

★ 9

↓ 382/wk

MIT

JavaScript

Aug 22, 2026

dsh plugin --profile web add dsh-chrome