DeepSeek Harness plugin

dsh-lan-proxy

dsh 局域网反代插件:把 dsh 的回环 Web UI 通过 0.0.0.0 反代暴露到局域网,开关/状态/启动日志直接嵌入 dsh 设置页。

Jump to install

Source facts

Repository
liveqte/dsh-lan-proxy
Latest update
Aug 18, 2026
Category
Models & Providers
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/liveqte/dsh-lan-proxy
Plugin: dsh-lan-proxy
Author: liveqte

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-lan-proxy

<p align="center"> 把 dsh 只监听回环地址的 Web UI 通过 <code>0.0.0.0</code> 反代暴露到局域网; 开关、状态与启动日志直接嵌入 dsh 设置页,随 dsh 启停,无需单独进程。 </p>

界面预览

设置页「局域网反代」一级菜单面板(监听已开启时):

![局域网反代设置面板](docs/preview/settings-tab.png)

安装

dsh plugin --profile web add "github:liveqte/dsh-lan-proxy#main"

bundle 层栈在启动时组合,装完重启 dsh web 生效。验证:设置页导航「局域网反代」一级菜单出现,启动日志无 plugin tree failed to load

功能

能力说明
局域网反代将 dsh Web UI 同时监听 0.0.0.0:<port>,局域网内任何设备经 http://<局域网IP>:<port>/ 访问
网页端目录选择禁用原生 OS 文件夹对话框,固定为网页内嵌「选择工作区目录」浏览(可在远程机器上选宿主目录)
免配置开关设置页「局域网反代」tab 一键开关,即时热启停,无需重启 dsh
端口配置tab 内直接修改监听端口与上游端口,保存即生效
协议适配自动改写 Host/Origin 为回环、桥接 WebSocket(RFC6455 帧编解码)、注入 crypto.randomUUID polyfill(局域网 HTTP 非安全上下文缺失)
状态与日志2 秒轮询的运行状态、上游可达性探测、局域网地址列表与启动日志,内置「重启反代」按钮

使用

  • 开关:设置页 →「局域网反代」tab,切换「监听局域网访问」。

页面开关的即时状态写入运行时文件($DSH_HOME/profiles/web/lan-proxy.runtime.json, 优先级高于配置默认值),立即生效。

  • 局域网访问http://<局域网IP>:<监听端口>/
  • 端口:tab 内可直接修改监听端口(所有网卡)与上游端口

127.0.0.10 表示自动取 dsh 实际监听端口)。

  • 开关与端口修改接口仅限本机回环地址调用;局域网访问只读状态与日志。
  • 选择工作区:装上本插件后,侧边栏 / 会话区的「添加工作区」改为网页内嵌目录浏览器

(宿主文件系统列举 + 新建文件夹),不再在 dsh 进程所在机器上弹出 OS 对话框。 这样局域网/远程浏览器也能选目录;本机 127.0.0.1 访问同样走内嵌对话框。 实现方式:bundle 层禁用 directory-picker(auto),并挂载官方 directory-picker-browse 双面(host 列举/创建 + client 对话框)。

配置项

默认值说明
enabledfalse监听局域网访问(配置默认值;页面开关优先级更高并持久化到运行时文件)
port3080反代监听端口(所有网卡)
upstreamPort0上游端口,0 = 自动取 dsh 实际监听端口
maxLogLines500页面日志缓冲行数

配置覆盖写在 profile 层的 cordis.patch.ymlid: lan-proxy 行的 config), 不需要修改仓库内文件。

插件管理

已装插件用 plugin-registry 的浏览器管理面板(轻量控制台)统一管理:查看、 安装、卸载插件,调整 bundle 层栈与 insert 行,启停插件,全程无需手改配置文件。 安装: dsh plugin --profile web add <plugin-registry>/packages/plugin/console