手机浏览器远程控制 dsh web,人在哪都能用(免公网 IP):官方托管中继 4G 即用,也可自建 relay;一条命令安装电脑端 bridge 与设置页「远程控制」面板(云端/自建切换、账号登录、bridge 启停、反馈);隧道数据面端到端加密(E2EE:手机↔电脑端正文与 WS 内容加密,中继只见路由元数据;支持扫码/一次性链接桌面授权,免重复输密码);HTTP/WebSocket 全量透传,访问密钥认证、实时设备列表、可选流量配额。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-remote-web
# Release 预构建包
dsh plugin --profile web add "https://github.com/mrRisega/dsh-remote/releases/latest/download/dsh-remote-web.tgz"
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:mrRisega/dsh-remote#path:/packages/dsh-remote-web
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
曾用名 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):
- Entry point: the Settings page, via the official
settings.sectionextension point (order: 30, below "Agent presets"). - Inline configuration panel:
- Connection-mode tabs: Cloud service (SaaS) / Self-hosted
- Remote-control URL (from the relay
public-configapp_url, copyable) - Account: phone + password login/save, registration (with SVG captcha); signed-in state shows plan / upgrade / invite / feedback / sign out
- Bridge service: launchd status (pid), start/stop switch; shows device id and autostart state — never exposes config paths or passwords
- About dsh-remote card (for newcomers: SaaS convenience, bandwidth costs, self-hosting option)
- User feedback card (submodule of the commercial edition): submit feedback (category + captcha anti-abuse) and track "my feedback" threads with admin replies; satisfaction popup ~10 minutes after first use
- First-run hint: a red dot on the "Remote Control" entry (localStorage
dsh-remote-seen-dot). - Config file:
~/.dsh-remote/.dsh-config.jsonby default (0600), overridable via the entry configrelayDirorDSH_RELAY_DIR.
Architecture (dual-half plugin)
| 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).
Install / Uninstall
npx @mrrisega/dsh-remote(一键安装)会自动把插件装进 dsh web 默认 profile。
也可以单独管理:
# 单独安装/重装(把插件装进 dsh web 默认 profile)
npx @mrrisega/dsh-remote plugin
# 卸载
npx @mrrisega/dsh-remote plugin --uninstall
What it does:
package.jsondependency:"dsh-remote-web": "link:<包目录>/packages/dsh-remote-web"cordis.patch.ymlinsert:{ id: dsh-remote-web, name: 'dsh-remote-web', config: { relayDir: '~/.dsh-remote' } }- runs
pnpm install(fallbacknpm install) in the profile
Restart 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.
Development
# 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 untouched
Verify: / __DSH_BOOT__ contains dsh-remote-web; /plugins/dsh-remote-web/client.js
200; /dsh-remote/status returns JSON; panel renders in headless Chrome.
Known limitations
- The entry uses the official Settings-page slot (
settings.section,order: 30). - First-run red dot relies on DOM fallback injection (MutationObserver matching the nav cell class + "远程控制" text); if the hash/wording changes the dot simply won't show — the panel itself is unaffected.
- Start/stop switches call launchctl (same bootstrap/bootout logic as
dsh-setup.mjs). - Feedback API defaults to the account API base (
cfg.api_url); self-hosted or compatible implementations can override withfeedback_urlin the config.
链接
同类插件
zhu1090093659/dsh-web-ui#packages/dsh-ssh★ 7488
SSH 远程运维面板:Web 终端、SFTP 传输、本地端口转发与一条命令并发集群执行,Agent 与面板共用同一份主机配置。
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 7488
手机/PC 远程操控 dsh web 工作区:扫码配对、令牌门控通道、SSE 实时同步,提供移动端与完整桌面 GUI 两种远程形态。
ZSeven-W/dsh-ios★ 288
在对话里直接操作 iOS 模拟器或 USB 连接的 iPhone:22 个 Agent 工具用于启动、构建、按无障碍标识或 OCR 文本驱动 UI、列表行操作与 SwiftUI 预览热重载,并附带可点击拖拽的流式侧边栏面板。
saya-ch/dsh-mobile★ 260
通过 Android App 或手机浏览器访问 DeepSeek Harness,支持安全局域网连接、远程访问、持久设备配对和可自定义移动界面。
liguobao/deepseek-harness-remote★ 183
DeepSeek Harness 多端远程访问:从手机、平板、浏览器或另一台电脑继续进行中的会话,端到端加密通道(Noise IK + 自适应 Relay/WebRTC 传输),设备授权管理;远程端仅开放 ApiProxy 能力,支持 dsh-file-viewer 只读文件预览,不提供 Shell、远程桌面或写入权限。
wenbin-wb/dsh-bridge★ 158
DeepSeek Harness 远程与移动端接入插件:提供局域网扫码直连、Cloudflare 与自建公网隧道,以及微信、QQ、飞书、Telegram 机器人交互,内置安全认证与访问控制。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。