ddtcorex/dsh-maestro-remote1

@ddtcorex/dsh-maestro-remote

Maestro 远程访问插件:集成 Cloudflare 隧道与局域网反向代理,支持通过 PIN 码和二维码配对进行安全的跨设备远程连接。

AI 分析

核心用途是让用户能够在外网或移动设备上安全访问本地运行的 DSH 会话。适合需要随时随地连接本地 AI 算力、且注重连接安全性的用户。

套件
@ddtcorex/dsh-maestro-remote
版本
0.1.0
最近更新
2026年8月26日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ddtcorex/dsh-maestro-remote

@ddtcorex/dsh-maestro-remote

Remote access plugin for the DeepSeek Harness: a Cloudflare tunnel (quick or named) plus a LAN remote proxy so a DSH session can be reached from outside the machine, gated by a second PIN with QR provisioning.

Part of the Maestro Harness suite (dsh-maestro-*). Cordis patch row id: dsh-maestro-remote (short alias maestro-remote in the meta bundle).

What it provides

  • Tunnel lifecycle (maestroTunnel service): start/stop/status of a cloudflared quick tunnel or a named tunnel (ingress /hooks/* → gitlab webhook, everything else → the remote proxy), auto-restore of a previously running named tunnel on boot.
  • Remote proxy: request handler for the tunnel target with PIN auth (constant-time comparison), reloadable config.
  • cloudflared fetcher: resolves the binary from PATH or installs it into a cache dir.

Settings

Config persists through the shared namespaced settings store (~/.dsh/maestro/settings.json, owned by @ddtcorex/dsh-maestro-config-lib) via a flat MaestroUserConfig adapter — see src/config-store.ts. Machine runtime state (lastTunnelRunning) deliberately lives in this package's own sidecar (~/.dsh/dsh-maestro-remote/runtime.json) so editing settings can never silently flip tunnel state.

Install

dsh plugin --profile web add @ddtcorex/dsh-maestro-remote
# or everything at once:
dsh plugin --profile web add @ddtcorex/dsh-maestro-meta

Development

pnpm install
pnpm verify   # tsc --noEmit
pnpm test     # vitest run
pnpm build    # tsc -> lib/

A tunnel change must be validated live (real start/stop + proxy round-trip), not just by unit tests — see AGENTS.md.

License

MIT