jayantTang/DSH_Mobile--plugins-mobile-link ↗★ 16

dsh-plugin-mobile-link

Put your PC's DeepSeek Harness in your pocket: dials a relay over WSS so the native iOS client reaches this machine even without a public IP.

包名
dsh-plugin-mobile-link
兼容性
待验证
版本
0.8.2
许可证
MIT
最近更新
2026年11月18日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-plugin-mobile-link

Configuration

All optional; the defaults are what a stock deployment needs. Set them in the plugin's config block (cordis.patch.yml), not by editing this file.

KeyDefaultMeaning
enabledtruefalse stops the outbound link without uninstalling
relayUrlfrom agent.jsonRelay base URL; a bare deployment dials /link/agent. Pinning a real value here outranks the enrolled identity and makes the panel field read-only
defaultRelayUrlemptyForm-only default: prefills the panel's relay input, but never outranks the enrolled identity. Official installs set this so users can still edit it
agentId / agentSecretfrom agent.jsonOverride the enrolled identity
stateFile~/.dsh/mobile-link/agent.jsonWhere the identity lives
journalFile~/.dsh/mobile-link/link-events.jsonlLifecycle journal (rotated once at 256 KiB); false keeps it in memory only
slowRequestMs2000A slower single request gets its own request.slow entry; 0 disables those (per-attach device.summary is still written)
diagnosticstruefalse refuses the phone's phase uploads; the phone ignores the refusal and stays connected
dshUrldiscoveryExplicit local DSH base URL (usually unnecessary — the host hands the connector its own address)
heartbeatMs20000DLP ping interval

The connector does not read an endpoint handoff file any more: discovery happens inside the host process (ctx.inject(['webServer','connection'])), which is what makes one npm package work on both the desktop app and the command-line host. It writes one instead — $DSH_HOME/mobile-link/endpoint.json, mode 0600 — for tools that run outside the host (our dev/test scripts and the iOS integration helpers).

Address resolution order: this config block, then DSH_RELAY_URL (or DSH_MOBILE_LINK_RELAY), then the enrolled identity file, then the repository placeholder wss://relay.example.com/dsh-link — the placeholder being the "nothing configured yet" sentinel rather than a real address.