dsh-relay-phone

中文文档
0.11.0发布于 2026/11/03Apache-2.0ES Module

Remote-control your local DeepSeek Harness from a phone through your own zero-knowledge relay: phone-first page, QR pairing, end-to-end encryption, approvals, full desktop UI fallback.

原始使用文档
文档目录4 节
  1. Install
  2. Configuration
  3. Tests
  4. License

dsh-relay-phone

DSH plugin that makes your local DeepSeek Harness reachable from your phone through a relay you host yourself.

It owns the device identity, the outbound connection to dsh-relay-server, the pairing handshake, the encryption layer, and a phone-first page for chatting with the agent and answering its approvals.

Part of dsh-relay. Read the main README for the architecture, security model and deployment steps.

Install

dsh plugin --profile web add link:./packages/plugin   # from a clone

Restart dsh web afterwards (the plugin is host-side code), then configure it at /relay-bridge/panel.

Configuration

Saved by the panel to ~/.dsh/plugin-data/dsh-relay-phone/config.json, which overrides the defaults in cordis.patch.yml:

KeyMeaning
relaySchemehttp or https
relayHost, relayPortRelay address for phones
agentPortRelay port for agent connections
relayKeyShared key, must match the server's --key
autoStartConnect on startup (default true)

Tests

npm test          # hermetic: no relay, no dsh web, no network
npm run check     # syntax check every source file
npm run test:ui   # CDP-driven UI test against the mock host (needs Chrome)

License

Apache-2.0

版本与发布记录

dsh-relay-phone 共发布 2 个版本,首次发布于 2026/11/03;过去 12 个月发布了 2 个版本。

版本发布日期距今
0.11.0latest2026/11/03今天
0.0.0-stage2026/11/03今天

关于 dsh-relay-phone 的常见问题

dsh-relay-phone 是什么?

通过您自己的零知识中继从电话远程控制本地DeepSeek线具:电话优先页面,QR配对,端到端加密,批准,全桌面UI回退。

如何安装 dsh-relay-phone?

在项目目录运行 npm install dsh-relay-phone,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@deepseek-ai/cordis(^4.0.1)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

dsh-relay-phone 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/dsh-relay-phone 是否存在。

dsh-relay-phone 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

dsh-relay-phone 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

dsh-relay-phone 可以商用吗?

dsh-relay-phone 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

dsh-relay-phone 还在维护吗?

最新版本 0.11.0 发布于 2026/11/03(今天);至今共发布 2 个版本,其中过去 12 个月发布了 2 个;首次发布于 2026/11/03。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。