packages/dsh-remote-web-ui
zhu1090093659/dsh-web手机/PC 远程操控 dsh web 工作区:扫码配对、令牌门控通道、SSE 实时同步,提供移动端与完整桌面 GUI 两种远程形态。
手机浏览器远程控制 dsh web,人在哪都能用(免公网 IP):官方托管中继 4G 即用,也可自建 relay;一条命令安装电脑端 bridge 与设置页「远程控制」面板(云端/自建切换、账号登录、bridge 启停、反馈);隧道数据面端到端加密(E2EE:手机↔电脑端正文与 WS 内容加密,中继只见路由元数据;支持扫码/一次性链接桌面授权,免重复输密码);HTTP/WebSocket 全量透传,访问密钥认证、实时设备列表、可选流量配额。
曾用名 dsh-remote-ui(≤0.4.9);2026-09 更名 dsh-remote-web —— 本插件是
dsh-remote 全家桶的 dsh web 插件半(远程控制宿主插件,不是纯 UI/皮肤插件),
名称与功能定位一致。旧名安装可由新版 dsh-setup.mjs 自动迁移/清理。给 DeepSeek Harness(dsh web)一个「随时随地」的公网入口。
安装后在 dsh web 的设置页登录账号,即得到一个专属的加密远程地址:人在办公室外、
用手机流量或任意网络打开它,都能像坐在电脑前一样操作 dsh——继续对话、看工具执行、
审批授权、改设置。不要求手机和电脑在同一 WiFi/局域网,也不需要公网 IP、
路由器映射或自己搭服务器,开箱即用、全程加密。
懂技术的用户也可以把服务部署到自己的服务器上,数据与流量完全自控(普通用户无需关心)。
以下为面向开发者/维护者的实现说明:
Embeds the dsh-remote configuration UI into dsh web itself (the "everything is a plugin" model):
settings.sectionextension point (order: 30, below "Agent presets").
public-config app_url, copyable)signed-in state shows plan / upgrade / invite / feedback / sign out
autostart state — never exposes config paths or passwords
self-hosting option)
feedback (category + captcha anti-abuse) and track "my feedback" threads with admin replies; satisfaction popup ~10 minutes after first use
dsh-remote-seen-dot).
~/.dsh-remote/.dsh-config.json by default (0600), overridablevia the entry config relayDir or DSH_RELAY_DIR.
Half · File · Responsibility Node half (host plugin) · lib/index.js · Injects webServer; same-origin /dsh-remote/* routes: status / config / start / stop / captcha / register / login / remote-url / feedback proxy; relay requests bypass system proxies (6s timeout) Browser half (client plugin) · lib/client.js · Hand-written __ModuleLoader__.load({id, factory}) bundle (no build step); registers the settings.section entry + satisfaction popup; only requires react (seed module)
The browser half needs no Vite/tsdown rebuild: dsh-client-modules reads exports["./client"] at startup and serves it with index.html (restart dsh web after changes).
npx @mrrisega/dsh-remote(一键安装)会自动把插件装进 dsh web 默认 profile。 也可以单独管理:
# 单独安装/重装(把插件装进 dsh web 默认 profile)
npx @mrrisega/dsh-remote plugin
# 卸载
npx @mrrisega/dsh-remote plugin --uninstallWhat it does:
package.json dependency: "dsh-remote-web": "link:/packages/dsh-remote-web"cordis.patch.yml insert: { id: dsh-remote-web, name: 'dsh-remote-web', config: { relayDir: '~/.dsh-remote' } }pnpm install (fallback npm install) in the profileRestart dsh web afterwards. Manual alternative: edit the two files above and restart.
Note: a failing browser plugin blocks the whole web app from starting
(framework constraint). Rollback = remove the patch entry and restart.
# node half: restart dsh web (profile uses link: dependency, source is live)
# browser half: edit lib/client.js, restart dsh web (no build)
dsh --profile web --port 3090 --no-open # verify on a separate port, 3080 untouchedVerify: / __DSH_BOOT__ contains dsh-remote-web; /plugins/dsh-remote-web/client.js 200; /dsh-remote/status returns JSON; panel renders in headless Chrome.
settings.section, order: 30).the nav cell class + "远程控制" text); if the hash/wording changes the dot simply won't show — the panel itself is unaffected.
dsh-setup.mjs).
cfg.api_url); self-hosted orcompatible implementations can override with feedback_url in the config.