shaobeichen/dsh-pocket

把 DeepSeek Harness 装进你的口袋:电脑上跑 dsh web,手机扫码即同步访问(局域网 + 公网,实时同屏)Put DeepSeek Harness in your pocket: run dsh web on your computer and access it synchronously by scanning a QR code on your phone (LAN + public network, real‑time screen mirroring)

What it solves

DSH Pocket solves the problem of being away from your computer but still wanting to use the DeepSeek Harness agent that runs on it. Without remote desktop or SSH, you can't see what the agent is doing, check results, or send new tasks. DSH Pocket lets you scan a QR code with your phone to see and control the same interface in real time, whether you're on the same Wi‑Fi or anywhere on the internet.

How it works

It's a single npm package installed as a plugin to DeepSeek Harness. After installation and restarting dsh web, a "手机访问" (Mobile Access) entry appears in the settings sidebar. The plugin starts a local reverse proxy that mirrors the web interface and generates QR codes for two access modes:

  • LAN mode: uses your computer's local IP address; scan the QR code while on the same Wi‑Fi.
  • Public mode: uses a cloudflared tunnel to expose the interface to the internet; scan the QR code from anywhere (4G, office network, etc.).

Both modes are protected by passwords (random 8‑digit by default, or custom 8–64 character). The plugin handles session persistence (you only enter the password once until the dsh web process restarts), real‑time sync via WebSocket, gzip/brotli compression for large responses, and automatic tunnel recovery if the connection drops.

Who it’s for

For individuals who run DeepSeek Harness on a computer and want to monitor or control it from their phone while away from the machine. It's designed for personal use, with security features like passwords, a mandatory disclaimer before enabling public access, and fail‑closed public detection. It's not meant for multi‑user collaboration or enterprise deployments.

Highlights

  • LAN QR code: scan to open the interface on the same Wi‑Fi, with automatic IP detection (including WSL).
  • Public tunnel: one click enables a cloudflared tunnel with a QR code for access from anywhere.
  • Fixed public domain: optional named tunnel mode with your own domain and token, so the address never changes.
  • Password protection: random 8‑digit passwords by default (rotated on each public enable), or custom 8–64 character passwords; LAN password can be disabled.
  • Session persistence: enter the password once and stay logged in until dsh web restarts.
  • Real‑time sync: WebSocket streaming with heartbeat keep‑alive and auto‑reconnect.
  • Mobile‑optimized UI: drawer layout, touch controls, and optional right sidebar for foldable screens.
  • Compression: large JSON responses are gzip/brotli compressed (17MB → ~1MB) for faster loading and less data usage.
  • Tunnel auto‑recovery: health checks every 20 seconds and automatic tunnel rebuild if the edge connection is lost.
  • Zero‑dependency install: one npm package, no separate core/adapters, no account or server required.

Related

  • Project
  • Project
  • Project
  • Project
  • Project