把 SSH 主机上的工作区接入 DSH:远程工作区、镜像会话、终端与文件访问、审批和原生 DSH 界面。需 DSH Desktop 0.2.1-rc.2,远端主机为 Linux 或 macOS。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-remote-local-plugin
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:Golden-Pigeon/dsh-remote#path:/packages/local-plugin
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。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
该插件的 README 只有英文版本。
Remote development that appears as ordinary local sessions.
Supported environment
This plugin targets the official DSH Desktop application. Supported versions:
- DSH Desktop
0.2.2-rc.5 - Plugin
0.8.23 - Remote DSH
0.2.2-rc.5(tested; new installs follow the local DSH version) - Remote Node.js
22.19+on Linux/macOS
Other DSH GUI plugins, forks, modified clients, and DSH versions outside the tested matrix
(0.2.2-rc.2, 0.2.2-rc.5) have not been tested. The desktop client and the remote runtime are
tested on 0.2.2-rc.5; CI also builds and tests the 0.2.2-rc.2 floor. New remote installs follow
the local DSH runtime version by default. Pin remoteDshVersion to override it. The package
dependency range is permissive for installation only; it is not a support guarantee.
What it does
- Durable host registry at
$DSH_HOME/remote/hosts.json(mode0600). - SSH discovery of the remote agent's private state file.
- Plugin-owned provisioning: uploads the bundled
dsh-remote-agenttarball, installs pnpm/DSH when missing, starts remotedsh web, waits for it, and connects. No separate installer command. - One loopback SSH tunnel per host, health checks, exponential backoff, manual reconnect.
- Default direct key mode: the resolved local key is copied into the remote service environment.
- Optional reverse SSH forward and local model credential proxy for key-local deployments.
- Native session mirror: remote workspaces/sessions become local workspaces and Sessions in the ordinary sidebar. A small custom Agent façade routes prompts and cancellation to the remote agent while the normal Conversation UI renders the mirrored events.
+ 新会话creates the remote session, creates its local mirror, and opens it throughuiWorkspace.openSession— not a popup.- Sidebar + menu to create a workspace locally (native flow) or on a connected remote host.
- Agent-backed remote workspace file listing/preview over the SSH tunnel.
- Automatic remote Node.js discovery/install (nvm, Volta, fnm, Bun, asdf, mise, Nix, Homebrew, login shell; verified Node tarball fallback).
- Chinese / English client copy follows the DSH locale service.
- Remote agent PTY terminals for mirror Sessions over the SSH tunnel; local Sessions keep the local terminal.
- Remote approval questions bridged into the normal local approval UI.
- Model tools for every operation.
- Authenticated host API at
/api/dsh-remotethrough DSH Connection's Fetch route.
Install
From the DSH plugin page
After the npm package is published, use Plugins → Add plugin and enter:
dsh-remote-local-plugin
The package bundles the remote agent asset and the terminal-controller fork. Restart DSH after the plugin page asks for it.
If npmjs.com resolves an older latest tag for a newly published release, install the exact current
version instead:
dsh-remote-local-plugin@0.8.23
Keep this pinned version in sync with each release.
From a source checkout
cd ../..
./scripts/install-local.sh # desktop profile
./scripts/install-local.sh --profile web
The installer creates one tarball containing the terminal-controller fork; restart DSH after it finishes.
Use
- Settings → 远程开发
- Enter an SSH target (
my-host) and click 保存并连接. - Wait for
已连接(first use installs the remote side). - Use Workspaces + to create a workspace; local folders use the native picker, remote folders use the SSH browser.
- Create a session from the workspace row or Settings. The mirrored session opens in the normal Conversation UI.
- Continue prompting. Workspace files and New terminal follow the selected Session.
Boundaries
- The remote browser UI is intentionally not exposed by default; the remote API-remotes carrier is disabled so approvals reach the native local UI.
- Sessions over
mirrorMaxEventsare not mirrored. - On plugin restart, old mirrors are archived and recreated.
Tools
remote_hosts_list, remote_host_add, remote_host_connect, remote_host_provision,
remote_workspace_add, remote_workspaces_list, remote_session_create, remote_sessions_list,
remote_session_prompt, remote_session_snapshot, remote_session_cancel.
Configuration
See cordis.patch.yml and
examples/local-plugin.patch.yml.
Security
The token stays local and is never returned to the browser. The browser uses DSH's authenticated
/api route. Settings has global defaults for Use local credential proxy and Copy model API
key to remote hosts. Each host can override either choice; the host setting wins. Turn copying off
to keep the key local (the remote then needs its own credentials), or enable the local proxy to keep
it local and inject it through the reverse-tunnel proxy. See the
root README.
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10735
手机/PC 远程操控 dsh web 工作区:扫码配对、令牌门控通道、SSE 实时同步,提供移动端与完整桌面 GUI 两种远程形态。
zhu1090093659/dsh-web#packages/dsh-ssh★ 10735
SSH 远程运维面板:Web 终端、SFTP 传输、本地端口转发与一条命令并发集群执行,Agent 与面板共用同一份主机配置。
liguobao/ds-harness-remote★ 4187
通过端到端加密通道远程访问 DeepSeek Harness 及兼容的编码工作区,支持自适应 Relay/WebRTC 传输、设备授权、工作区文件、只读预览、终端和可选的 Codex Remote。
saya-ch/dsh-mobile★ 1050
通过 Android App 或手机浏览器访问 DeepSeek Harness,支持安全局域网连接、远程访问、持久设备配对和可自定义移动界面。
WNLUO/dsh-mobile-plugin★ 627
DeepSeek Harness App 让你在手机上使用这台电脑或服务器上的 DeepSeek Harness。手机和平板都能用,安卓和苹果都支持。在手机上可以继续对话、查看文件、管理插件,也可以从正在用的这一台连上其他几台上的 DeepSeek Harness,分别打开来用。
uumit-ai/dsh-uumit-remote★ 537
用 UUMit 账号在手机或其他电脑上打开这台电脑的 dsh web,不用自建服务器、不装其他程序:插件内置通道客户端连接 UUMit 托管的通道,侧栏里的面板负责配对和选择谁能用(仅自己、通过邀请链接或手机号授权的人、所有人),可随时撤销。需 dsh web 且 DSH >=0.2.1-rc.2。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。