rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:feiyang-dev/dsh-mobile-remote
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English · 简体中文
A community plugin for DeepSeek Harness — adds a built-in "Remote Control" page to the Web settings: connection QR code, one-click toggle, and live connected-device count. Access and control your desktop DeepSeek Harness from your phone over LAN, with mobile-first UI polish.
dsh-mobile-remote is a DeepSeek Harness ecosystem mobile remote-control plugin (DSH plugin, Host + Client in one package). After installation, a management panel appears under Settings → Remote Control in the Web UI:
http://<lan-ip>:<port> — scan it with your phone's camera / browser to connect.http://192.168.x.x:3080 (no token) and it enters automatically — the server transparently performs the new dsh browser-session handshake (dsh >= 0.1.2-rc.1); older dsh versions keep their original behavior.<lan-ip>:<port> → 127.0.0.1:<port>). dsh's own listen address and port are never touched — your local window, the desktop app and sessions keep working, and the switch takes effect instantly with no restart and no config writes.0px so content gets the full width; a floating button opens an overlay drawer (no more squeezing the center column) with a scrim — closes on scrim tap / Esc / picking a session.token in login doesn't match) plus a one-click retry; FRP_TOKEN placeholder warnings from the relay show as a yellow banner; keep-alive heartbeats keep the relay's online state truthful.Key selling point: pure CLI users don't need the desktop app. The official CLI rejects --host 0.0.0.0 for safety, and since dsh 0.2.1-rc.3 the patch layer rejects wildcard binds too (host: '0.0.0.0' aborts startup during config validation), while binding a concrete NIC IP makes the loopback listener disappear (desktop windows go blank). So v1.9.0 uses a side-car LAN listener instead: dsh keeps listening on loopback only, and the plugin listens on the LAN interface and forwards. The phone and the computer still share the same dsh backend process and the same ~/.dsh data, so sessions, history, workspace and settings are naturally two-way synced — no data copying involved.
To make remote (external-tunnel) access safer, the plugin ships a remote access password gate:
, HTTPS reverse-proxied)** is blocked by a full-screen password page and **must enter the correct password** to use it; local (127.0.0.1`) and LAN-direct access are unaffected, so the admin can always log in locally to manage / repair;~/.dsh/plugins/dsh-mobile-remote/config.json) as an scrypt hash + random salt — never plaintext, verified with timingSafeEqual (timing-attack safe) and rate-limited to prevent brute force.Key design: fully local, decoupled from any relay backend. Whether you use the bundled
dsh-update-serverrelay or self-host any other frp / tunneling solution (including a different relay service), the password gate works directly — it applies to any "remote HTTPS access" and does not depend on your relay.
The plugin's external-tunnel status uses the relay server's member-side endpoints (no admin login):
GET /api/tunnel/status — basic member status (name / online / port / last-seen).GET /api/tunnel/stats — rich member tunnel stats (added in this release, requires the relay server to be updated): same basic fields plus live frps proxy details — today's inbound/outbound traffic, current connection count, local forwarded port, and proxy start time.The plugin tries /stats first and falls back to /status if the relay server hasn't been upgraded yet, so an outdated backend never breaks the panel.
Deploy these updated files to your relay server (e.g. via
dsh-update-serverdeployment):src/routes/tunnel.jsandsrc/tunnel-service.js. Then restart the relay service.
A common reason remote (external-tunnel) access feels slower than LAN: DSH's first screen fires many concurrent requests (JS/CSS / API / WebSocket), while frp's default work-connection pool (poolCount) is too small, so frpc repeatedly logs work connection pool is full, discarding — connections get dropped, queued and retried, making the initial page spin for a long time.
This plugin optimizes it by:
poolCount = 20 into each [[proxies]] of the generated frpc.toml (override with env DSH_FRPC_POOL_COUNT);dsh-update-server deploy/frps.toml template raises transport.maxPoolCount to 64 (takes effect after you deploy it to the relay server), so the server won't cap the client pool.Open Settings → Remote Control to see the on/off switch and status badge, the connection QR code, LAN address list, connected devices (expandable: system / browser / screen / network), runtime info, DSH state, network interfaces, the remote-access password, and the external tunnel (domain / frpc version / logs).
Either method works and is equivalent. We recommend the desktop app — fully graphical, no command line needed.
Install DeepSeek Harness Desktop, open it, then go to "Install Plugins" → Recommended → Mobile Remote Control → Install and click "Restart Service Now" to activate.
# Prerequisite: install dsh (npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add @feiyang666/dsh-mobile-remote
Restart the dsh web service to activate.
When the plugin is not on npm yet (or the npm publish is blocked by 2FA / staged approval), install straight from local source:
# Run in the plugin repo root: packs and installs into the given profile(s)
node scripts/install-local.mjs # install into desktop
node scripts/install-local.mjs desktop web # install into several profiles
The script packs, installs with the profile's own package manager (pnpm when a
pnpm-workspace.yaml exists, otherwise npm), registers the bundle name in
dsh.profile.bundles, then reads back the version and key files so a silent
"fake success" cannot happen.
You can also pick a local
.tgzfrom the desktop app's "Install plugin" dialog.After installing, the profile's
dependenciesrecordsfile:...tgz. That is intentional: until the plugin is published, a range such as^1.7.1would make a laternpm installdowngrade to an older registry version.
For front-end-only changes (lib/client.js), sync-to-profile.mjs copies files
into the installed directory; a browser refresh is enough:
node sync-to-profile.mjs # default profile: web
DSH_PROFILE=desktop node sync-to-profile.mjs
Note: lib/index.js, lib/external.js and lib/patch.js are host-side code with a
module cache — restart the dsh service for those to take effect.
npx @deepseek-ai/dsh web / from source).http://127.0.0.1:3080 in a desktop browser → Settings → Remote Control.# Way 1: use the settings-page toggle (recommended)
dsh --profile web
# then open http://127.0.0.1:3080 → Settings → Remote Control → ON
# Way 2: manual overlay
dsh --profile web --patch remote-control.patch.yml
Note (dsh ≥ 0.2.1-rc.3): do not hand-write a
- id: webserver+host: '0.0.0.0'overlay any more — the new schema aborts startup on wildcard binds, and a concrete NIC IP would take the loopback listener away (desktop windows stop loading). Since v1.9.0 the LAN exposure is provided by the plugin's own side-car listener, so no overlay is required — just use the settings toggle.
Security note: enabling remote control exposes the service to your LAN. Use it only on trusted home / office networks — do not expose it to the public internet.
One npm package = host half (Node-side Cordis plugin: /__dsh_remote/* API, patch-file management, heartbeat device counting, index.html injection — see lib/index.js) + client half (browser settings panel — see lib/client.js, talking to the host via /__dsh_remote/status etc.).
It plugs into DSH through two declarations:
| Declaration | Purpose |
|---|---|
dsh.bundle.patch (cordis.patch.yml) |
Lets DSH treat it as a standard bundle plugin package: dsh plugin --profile <name> add <pkg> installs and wires it in one command |
dsh.client + exports["./client"] |
Lets the web client auto-load the settings panel at /plugins/<pkg>/client.js |
So for users, installing is one command — no YAML editing, no manual file copying.
| Layer | File | Responsibility |
|---|---|---|
| host | lib/index.js |
/__dsh_remote/status / toggle / heartbeat / qr API; patch-file read/write; heartbeat device counting; index.html injection |
| client | lib/client.js |
Registers the settings.section "Remote Control" panel (toggle / QR / device count) |
| qrcode | lib/qrcode.js |
Inlined MIT QR generator (qrcode-generator), zero runtime deps |
POST /__dsh_remote/toggle → writes/removes a webserver override block in the profile's cordis.patch.yml → dsh's watchUserPatches (Cordis HMR) hot-reloads the webserver entry to re-listen.GET /__dsh_remote/qr?url=... returns SVG.tapIndex only injects a ~40-line device-heartbeat script (CLIENT_JS). dsh 0.2.2+ already ships the mobile layout (drawer sidebar below 768px, auto-collapse at 1024px, no focus stealing on mobile UA, iOS keyboard fix, PWA), so the old mobile CSS, sidebar drawer, "Upload image" button, toast and sending indicator were removed — duplicated adaptation only fights the official implementation.crypto.randomUUID fallback for insecure contexts (kept in GATE_JS): DSH clients call crypto.randomUUID() on the wire; it only exists on HTTPS or localhost, so LAN http:// access used to fail with settings are unavailable in this browser. The injected head script provides an RFC 4122 v4 shim backed by getRandomValues.npm install -g @deepseek-ai/dsh globally, or via the desktop app / npx @deepseek-ai/dsh web).dsh on your PATH (use the desktop app's own terminal if it manages its environment).dsh plugin --profile web add @feiyang666/dsh-mobile-remote
This command does three things automatically:
~/.dsh/profiles/web via pnpm (initializes the profile on first use);dsh.bundle declaration and registers the package in the profile's dsh.profile.bundles;cordis.patch.yml and mounts the plugin entry into the app tree — no manual config editing.The same works for other profiles — replace web with your profile name.
Local tarball testing:
dsh plugin --profile web add C:\path\to\feiyang666-dsh-mobile-remote-1.4.3.tgz
Restart the dsh web app (CLI: stop the old process and run dsh web again; desktop: fully quit and reopen). Then:
dsh plugin --profile web remove @feiyang666/dsh-mobile-remote
Then restart the app.
| Symptom | Cause / Fix |
|---|---|
| No "Remote Control" panel in Settings | Plugin not activated. Check the cordis.patch.yml row exists with the right name; restart and hard-refresh |
| Phone opening the bare URL shows "authentication required" | Running a pre-v1.8.0 plugin, or the server hasn't loaded this plugin's / takeover. Install v1.8.0+ and restart the dsh web service (on old dsh without auth this plugin falls back to its previous behavior) |
| Phone still can't connect after toggling ON | Same Wi-Fi? Firewall allowing port 3080? Accessing the LAN IP (not 127.0.0.1)? |
| Phone connects but shows 403 | dsh's trust fence: make sure the plugin is installed and dsh is started the supported way (--patch / profile patch overriding webserver.host) |
| Device count stays 0 | The phone page must be opened once to start heartbeat; wait a few seconds and refresh |
| QR won't scan | Confirm Remote Control is ON; use a camera app that supports QR |
| External access blocked by a full-screen password page | That's the remote access password gate (v1.2.0+). Enter the correct password set locally under Settings → Remote Control → Remote Access Password; if forgotten, reset it on the host machine |
| Remote loading still spins for a long time | Make sure the relay server's frps has transport.maxPoolCount = 64 applied (deploy/frps.toml) and restart frps; re-enable external access once to rebuild the tunnel (DSH_FRPC_POOL_COUNT defaults to 20) |
| Panel shows a red "外网隧道鉴权失败" error | frpc's auth.token doesn't match the frps server's auth.token. Sync the relay .env's FRP_TOKEN with /www/server/frps/frps.toml's auth.token, restart frps + the relay service, then toggle external access off and on |
| External tunnel shows "连接中" but never turns online | frpc is retrying after a disconnect; open the panel's 查看 frpc 日志 to see the exact reason (server down / port blocked / token mismatch) |
| A yellow banner warns FRP_TOKEN 仍是占位符 | The relay .env still uses a placeholder FRP_TOKEN; it must be replaced with the real value matching frps.toml or the tunnel can never come up (502) |
| Project | Description | Installation |
|---|---|---|
| DeepSeek Harness Desktop | Windows desktop console: install/start/stop/restart the dsh web service with one click, built-in plugin management — install this plugin from its Recommended section | Download the desktop app and click a few buttons |
| Usage & Cost Tracker (dsh-usage-plugin) | Per-call token/cache-hit stats, peak/off-peak billing, balance query, CSV/JSON/PNG export | One-click from the desktop app, or dsh plugin add @feiyang666/dsh-usage-plugin |
| Data Vault (dsh-vault) | Auto-backup, wipe detection, one-click restore for chat history and workspace data | One-click from the desktop app, or dsh plugin add @feiyang666/dsh-vault |
| DeepSeek-Harness | Official CLI / Web service | Quick start below |
Quick start (via npm)
Install Node.js, then run:
npx @deepseek-ai/dsh web
This starts the Web UI at http://127.0.0.1:3080 by default. See the Web UI Guide.
Run from source
git clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness
pnpm install
pnpm run build
pnpm dsh web
MIT © dsh-mobile-remote
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。