Pular para o conteúdo principal
Z

dshmobile (plugins)

zdx8637-gitdog/dshmobile/plugins

Acesso por telemóvel ao DSH através de um relay auto-hospedado (WSS via o seu próprio proxy com terminação TLS): plugin bundle com supervisor de bridge e início de sessão por QR, uma aplicação Android nativa e revogação de dispositivos do lado do servidor.

Instalar

dsh plugin --profile web add github:zdx8637-gitdog/dshmobile

Este plugin está no subdiretório plugins do repositório.

README

dshmobile — Remote Mobile Client for DeepSeek Harness

中文文档

dshmobile banner

Zero-friction: one command installs the plugin → scan a QR code → keep working from your phone. A true Remote Client for DSH — no Tailscale, tunnels, port forwarding, NAT, or networking knowledge required, no DSH modifications, cross-platform.

Control your local DeepSeek Harness (DSH) from your phone: scan to pair → device → session tree → chat, approvals, question answering, model switching, file browsing.

Architecture

┌──────────────┐   WSS    ┌───────────────────┐   WSS    ┌───────────────────────────┐
│ Android App  │ ───────▶ │  Cloud Relay       │ ◀─────── │ PC Bridge (DSH plugin)     │
│ (signed APK) │          │ (hosted service)   │          │ (open source)              │
└──────────────┘          └───────────────────┘          └────────────┬──────────────┘
                                                                       │ 127.0.0.1:3080
                                                             ┌─────────▼──────────┐
                                                             │ DeepSeek Harness   │
                                                             └────────────────────┘

Business content (prompts / replies / sessions / files) is protected by E2EE end-to-end encryption: the relay only sees routing metadata — it can neither read nor tamper with your session content. The connection layer self-heals: after a DSH restart or a network hiccup it re-handshakes automatically, no manual steps required.

Open Source & Security

ComponentStatusNotes
PC Bridge / pluginOpen Source (MIT)plugins/, npm package @zdx8637/dshmobile-bridge
Protocol contractOpendocs/02-protocol.md (single source of truth for the wire format)
E2EE designOpen and auditabledocs/plan-e2ee.md (threat model + crypto parameters + handshake)
Android AppSigned APK distributionDownload by scanning the QR code
Cloud RelayHosted serviceAuth / routing / audit

The protocol and crypto implementations are fully public and independently auditable; business content is end-to-end encrypted, and the relay only forwards routing metadata — it cannot read your sessions.

Installation

PC (Bridge plugin)

npx -y @deepseek-ai/dsh plugin --profile web add @zdx8637/dshmobile-bridge@latest

Requires pnpm. After restarting DSH, a ▶ panel appears at the bottom of the web sidebar: ① login / grant code, ② encrypted pairing code. Current plugin version: 0.1.0-beta.20.

Phone (Android App)

Scan the QR code on the PC panel → download the signed APK from the landing page (current version v0.2.12). Then scan in the App: ① first to log in, ② then for E2EE pairing — once paired, a key icon appears in the device list (E2EE is active).

DSH Version Compatibility (dual-protocol auto-detection)

Since 0.1.0-beta.18 the plugin auto-detects the DSH generation — upgrade order doesn't matter:

DSH versionPlugin behavior
v0.1.5 or newerFull new-protocol support: /api session auth (launch token → session Cookie), Typert endpoints (session/* etc.), /api/remote.mux stream multiplexing, $events approval/question waterfalls
v0.1.0-rc.6 or olderFalls back to the legacy protocol (dot endpoints, events.mux/events.host, respond replies, no auth), matching beta.16 behavior

So you can upgrade the plugin first, DSH first, or either way — or leave an old DSH untouched; everything keeps working.

Directory

PathContents
plugins/PC Bridge plugin (host + bridge daemon + web panel), open source
docs/02-protocol.mdRelay envelopes, message types, device semantics (wire-format contract)
docs/plan-e2ee.mdE2EE v1 design (threat model, cryptography, handshake, pinning)
docs/e2ee-identity-issues.mdE2EE identity/pairing investigation (torn-read key regeneration, restart self-heal, etc.)
docs/bridge-singleton.mdBridge single-instance protection: why duplicate bridges fight, the four defence layers, diagnostics

Trust & Self-hosting (roadmap)

  • Today the relay is a hosted service operated by the author; content privacy is guaranteed by E2EE, and the relay only routes and forwards metadata.
  • A reference self-hosted relay (reference implementation, ≠ the production service) will be released later so you can self-host: Android → self-hosted relay → Bridge → DSH. Account system, monitoring, and scaling remain the operator's concern.

Privacy & Secrets

This repository contains no real credentials. Android signing keys, relay account passwords, and server SSH credentials live only in local/private channels — always injected via environment variables and referenced as placeholders in docs.

Plugins relacionados