面向 macOS Apple Silicon 上 DSH Desktop 0.2.0-rc.2 的 iOS 远程控制插件,支持配对、审批通知与设备撤销。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:chinahhy/DSH-plugins#path:/packages/dsh-tether-ios
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。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 只有英文版本。
macOS Apple Silicon companion for the iOS arm64 app at chinahhy/dsh-tether ios-only. Verified with DSH Desktop 0.2.0-rc.2 only, Mac mini M4 and an iOS arm64 iPhone. On 2026-10-05 the maintainer confirmed normal physical-device use and an outdoor cellular connection to the home DSH. The actual direct/relay path and sleep/wake recovery were not separately established. See validation scope.
Architecture
Desktop's existing desktop profile → owned tether-host → iroh → iOS app.
No additional DSH runtime or CLI daemon. ALPN dsh-tether/0, Pair/Hello,
Proxy, Approval/ApprovalCancel and field spellings remain compatible.
Approvals are notifications only; decisions stay in DSH's normal web UI.
The sidebar “连接 iPhone” button generates an expiring pairing string on demand. Only the local authenticated Mac window can manage pairing/revocation. There is no automatic startup code, console credential output or settings-file export. A paired phone has full DSH operator access. Keep the phone and Mac trusted. Pairing: 6 digits, 10 minutes, at most 3 wrong attempts per window. Revocation closes active connections. The phone app's existing localhost-proxy limitation still applies; the plugin does not create an iOS background push service.
Installation
The published main package includes the verified bin/darwin-arm64/tether-host.
No Rust compiler, installation hooks or separate download are needed. Install the
GitHub subpackage through DSH's plugin manager:
github:chinahhy/DSH-plugins#path:/packages/dsh-tether-ios
For manual/offline installation, use the versioned .tgz and SHA256SUMS from
GitHub Releases.
Use the existing Desktop desktop profile. Do not create an extra web profile.
Development branches intentionally omit native binaries; use published main
or a complete CI archive. Existing local link/file installs do not automatically
follow GitHub updates and require an explicitly authorized source migration.
The official Desktop profile/package manager owns dependency and bundle changes. The bundle adds the host plus in-app directory browsing, and disables the exact 0.2.0-rc.2 automatic picker. While enabled, folder selection on the Mac also uses in-app browsing. Removing the bundle restores the base picker unless overridden by another user patch. No persistent user patch is directly written by this plugin.
Files and removal
<DSH_HOME> below means the application's ctx.dshHomePath() result, normally
~/.dsh; no HOME fallback is guessed by this plugin.
| Location | Owner / behavior |
|---|---|
<DSH_HOME>/profiles/desktop/node_modules/dsh-tether-ios/ |
Installed package and bin/darwin-arm64/tether-host; package-manager symlinks/store may affect physical location |
<DSH_HOME>/profiles/desktop/package.json, lockfile, bundle inventory |
Existing DSH package manager updates these when installing/removing |
<DSH_HOME>/data/dsh-tether-ios/identity.key |
Host identity, 0600 |
<DSH_HOME>/data/dsh-tether-ios/paired.json |
Device allowlist, 0600; containing plugin directory 0700 |
<DSH_HOME>/data/dsh-tether-ios/.identity.key.tmp, .paired.json.tmp |
Atomic-write crash remnants, normally absent |
| DSH-owned package cache/store | Package-manager controlled; may retain archive/package after uninstall |
| iOS application's own sandbox | Existing iOS identity and host list; unaffected by Mac uninstall |
Disable/remove the plugin using DSH's plugin manager. The disposer closes routes, stops renewal, ends sidecar stdin, sends SIGTERM and escalates to SIGKILL after 2 seconds if needed. Parent-pipe EOF also stops the sidecar after a parent crash. There is no LaunchAgent or login item. Confirm the sidecar has exited.
Uninstall removes the package/bundle through DSH. Pairing data is deliberately
preserved for reinstall; for a full reset, after stopping the plugin, explicitly
delete only <DSH_HOME>/data/dsh-tether-ios/ and remove the saved computer from
iOS. This destroys that host identity and requires re-pairing. Do not delete the
whole DSH home or shared package cache. No automatic deletion hook runs.
No /usr/local/bin, npm global installation, Homebrew, new ~/.xxx, external
runtime, permanent background service, or real account credentials are needed.
The browser session cookie stays in parent/child memory and is never logged.
Development / artifacts
node scripts/build.mjs; node --test test/*.test.mjs require only Node 24.
Rust build/test and official DSH API integration run on the macOS arm64 Actions
runner. scripts/build-sidecar.mjs uses Cargo.lock and targets aarch64-apple-darwin.
Actions builds and tests the locked macOS arm64 host, verifies the native checksum
and licenses, then promotes only this package to main and creates a versioned
Release. Source installs and tgz installs both include the binary. It has an
ad-hoc linker signature; it is not a notarized distribution. No npm publication
or global installation is involved.
Remaining validation boundaries
- Full uninstall/reset and all reload paths; normal Desktop quit/restart was verified.
- Exhaustive iPhone UI, reconnect/revocation and folder browsing scenarios.
- Identify direct versus relay transport, force relay fallback, and test sleep/wake and app foreground return. Outdoor cellular use was confirmed by the maintainer.
- Approval notification while connected and approval decision in the real web UI.
- Gatekeeper/quarantine behavior with the actual downloaded binary and signed iOS IPA.
- Narrow-screen usability; this candidate does not copy upstream's fragile CSS selectors.
See API evidence and upstream changes.
链接
同类插件
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10696
手机/PC 远程操控 dsh web 工作区:扫码配对、令牌门控通道、SSE 实时同步,提供移动端与完整桌面 GUI 两种远程形态。
zhu1090093659/dsh-web#packages/dsh-ssh★ 10696
SSH 远程运维面板:Web 终端、SFTP 传输、本地端口转发与一条命令并发集群执行,Agent 与面板共用同一份主机配置。
liguobao/ds-harness-remote★ 4060
通过端到端加密通道远程访问 DeepSeek Harness 及兼容的编码工作区,支持自适应 Relay/WebRTC 传输、设备授权、工作区文件、只读预览、终端和可选的 Codex Remote。
saya-ch/dsh-mobile★ 1029
通过 Android App 或手机浏览器访问 DeepSeek Harness,支持安全局域网连接、远程访问、持久设备配对和可自定义移动界面。
uumit-ai/dsh-uumit-remote★ 534
用 UUMit 账号在手机或其他电脑上打开这台电脑的 dsh web,不用自建服务器、不装其他程序:插件内置通道客户端连接 UUMit 托管的通道,侧栏里的面板负责配对和选择谁能用(仅自己、通过邀请链接或手机号授权的人、所有人),可随时撤销。需 dsh web 且 DSH >=0.2.1-rc.2。
WNLUO/dsh-mobile-plugin★ 503
DeepSeek Harness App 让你在手机上使用这台电脑或服务器上的 DeepSeek Harness。手机和平板都能用,安卓和苹果都支持。在手机上可以继续对话、查看文件、管理插件,也可以从正在用的这一台连上其他几台上的 DeepSeek Harness,分别打开来用。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。