moxisuki/dsh-lan
DeepSeek Harness(dsh)的局域网插件:一条 overlay 把 dsh web 绑定到局域网,并通过 index tap 注入 crypto.randomUUID │ polyfill 修复非安全上下文启动崩溃。
项目介绍Project Overview
dsh-lan 是一个 DSH 插件,通过 patch overlay 将 Web UI 绑定到 0.0.0.0,使其可在局域网访问,并注入 crypto.randomUUID 的 polyfill 解决纯 HTTP 下的 RPC 崩溃。适用于团队或设备间共享同一宿主上的 dsh web 界面。注意:dsh web 无认证层,绑定 0.0.0.0 会将远程代码执行暴露给整个局域网,仅限完全可信的网络使用。
dsh-lan is a DSH plugin that uses a patch overlay to rebind the Web UI to 0.0.0.0, exposing it on the local network, and injects a crypto.randomUUID polyfill to prevent RPC crashes on plain HTTP. Use it when multiple devices need to share the dsh web interface from one host. Caveat: dsh web has no authentication, so binding to 0.0.0.0 exposes remote code execution to the entire LAN—only run on fully trusted networks.
请帮我了解并安装插件:【dsh-lan】【https://github.com/moxisuki/dsh-lan】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:moxisuki/dsh-lan
把 moxisuki/dsh-lan 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-lan
让 DeepSeek Harness 的 Web UI 可以在局域网访问的插件 + overlay。
警告
dsh web 没有认证层。绑定 0.0.0.0 会把远程代码执行能力暴露给整个局域网——只在你完全信任的网络中使用。
使用
# 1. 一次性:把插件装进 web profile
dsh plugin --profile web add <本项目路径>
# 2. 启动(从源码目录运行则为 pnpm dsh web ...)
dsh web --patch <本项目路径>/cordis.yml
局域网设备打开启动行打印的 (LAN: http://...) 地址即可;多网卡机器请用真实局域网 IP 加端口(如 http://192.168.x.x:3080)。用域名/别名访问需编辑 cordis.yml 里注释掉的 trustedHosts 示例。
卸载:dsh plugin --profile web remove dsh-lan
原理
cordis.yml是 dsh 的 patch overlay:把 webserver 行的绑定地址覆盖为0.0.0.0(CLI 的--host 0.0.0.0被刻意拒绝,overlay 是官方组合接缝)。绑定后宿主自动把本机 LAN IPv4 加进/api信任栅栏,其他 Host 一律 403。index.mjs是 host 插件:浏览器只在安全上下文(HTTPS/localhost)暴露crypto.randomUUID,局域网纯 HTTP 页面没有它会导致客户端 RPC 启动即崩。插件通过webServer.tapIndex()向<head>最前面注入一段 polyfill 脚本(基于任何上下文都可用的crypto.getRandomValues)。
已知边界
- 设置、凭据、agent 预设编辑、"在操作系统中打开"被上游刻意钉在回环客户端,LAN 下控制台出现
settings.describe/credentials.describe的 403 属预期,界面会自动降级。 - 目录选择器浏览的是运行 dsh 的那台机器的文件系统。
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill