DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-remote-control

o

dsh-remote-control

Discovered

Secure remote access for DeepSeek Harness (DSH): Cloudflare Tunnel + password gate + Feishu notifications. macOS first, Linux first-class.

dsh-remote-control

English | 中文

Secure remote access to DeepSeek Harness (DSH) deployed on your own Mac or Linux server, from anywhere — Cloudflare Tunnel → password gate → DSH, with Feishu (Lark) notifications pushed to your phone whenever the entry URL or service state changes.

Browser ──HTTPS──▶ Cloudflare edge (Quick Tunnel: https://<random>.trycloudflare.com)
                        │  outbound-only connection, no inbound ports opened
                        ▼
                 cloudflared ──▶ Caddy (password gate, cookie session)
                        │  http://127.0.0.1:3080
                        ▼
                 DSH web profile (loopback only, zero modification)

Why

  • No inbound ports — the machine only makes outbound connections through the tunnel.
  • Password gate in front of DSH — login page + signed session cookie (7 days), per-IP lockout after 5 failed attempts. DSH itself stays untouched.
  • Feishu notifications are a necessity, not a nice-to-have — Quick Tunnel assigns a new random URL on every start; without a push channel you lose the entry. Every start / URL change / failure / recovery is pushed as a card message, plus a separate copy-friendly password message.
  • Survives DSH upgrades — the chain only talks HTTP to 127.0.0.1:3080; no DSH internal APIs are used.

Quick start

Requirements: macOS (x86_64 / arm64) or Linux (x86_64 / arm64), curl, python3. Windows is not officially supported — PRs welcome with real test evidence.

git clone https://github.com/oh-summy/dsh-remote-control.git
cd dsh-remote-control
scripts/install.sh     # downloads official cloudflared/caddy binaries, generates password

Install without git clone

Prefer a GitHub Release (no git):

# one-click install (latest release)
curl -fsSL https://raw.githubusercontent.com/oh-summy/dsh-remote-control/main/scripts/install-remote.sh | bash

# or a specific version
curl -fsSL https://raw.githubusercontent.com/oh-summy/dsh-remote-control/main/scripts/install-remote.sh | bash -s -- v0.3.0

The script downloads the official source tarball from GitHub Releases, verifies its SHA256 (integrity check — guards against corrupted downloads; it is not an authenticity proof, since the checksum ships from the same release), and runs install.sh (which fetches cloudflared/caddy for your OS/arch). All releases: https://github.com/oh-summy/dsh-remote-control/releases.

By default, dsh-web start auto-detects if DSH web is not running and starts it automatically. To disable this behavior, set RC_AUTOSTART_DSH=false in ~/.remote-control/rc.env. (If auto-start fails, check dsh-web logs dshweb or start DSH web manually with dsh web.)

DSH web (≥0.1.5) has its own signed-cookie authentication on top of the password gate. After you log in, remote-control automatically mints that cookie too — no extra step. If you ever see dsh web authentication required, the DSH credentials were unreadable at that moment (e.g. DSH just restarted): log in again once.

Then edit ~/.remote-control/rc.env:

  • Primary notification channel (bot DM): set RC_FEISHU_OPEN_ID (your open id, ou_...). Requires lark-cli installed and configured with your Feishu app (lark-cli config init); the app's bot needs IM permission and must be able to DM you.
  • Fallback channel: set RC_FEISHU_WEBHOOK (group custom-bot webhook) — works without lark-cli. If both are set, DM is used and webhook only on failure.

Start everything:

dsh-web start

start prints the URL and password, returns to the shell, and pushes a card + password to your Feishu DM. Open the URL, enter the password once — the cookie lasts 7 days.

Self-healing & process guard

  • Resident watchdog: if caddy/auth die they are respawned in place (URL unchanged); if cloudflared dies the tunnel is rebuilt automatically (Quick Tunnel gets a new URL, a new card is pushed to Feishu). Retries back off 30s→600s; only after all attempts fail does it ask for manual intervention and enter a cooldown (no alert storm) — dsh-web start clears it.
  • Boot autostart + guarded watchdog: dsh-web autostart uses launchd KeepAlive to guard the watchdog itself — the whole chain comes up at boot, and a killed watchdog is respawned at once. During a manual dsh-web stop the guard idles and never fights your commands.
  • Upgrading: machines with autostart installed from ≤ v0.2.x keep the old launchd job after upgrading; run dsh-web install (or dsh-web autostart) once to switch it to the resident-watchdog mode. dsh-web autostart off also stops the watchdog.

Commands

CommandPurpose
dsh-web startStart the chain, print URL + password (Feishu notified)
dsh-web stopStop everything
dsh-web restartRestart (URL changes; new card is pushed)
dsh-web statusComponent status + gate/upstream health
dsh-web logs [caddy|cloudflared|auth|watchdog|selfheal|notify|all]Tail logs
dsh-web passwordPrint the access password
dsh-web urlPrint the current entry URL
dsh-web installInstall / repair (binaries, config, credentials, CLI link)
dsh-web tunnel-setupGuide to create Named Tunnel (fixed domain)
dsh-web rotate-passwordRotate access password (generate new + restart)
dsh-web autostart [off]Install/remove launchd autostart (macOS)

Configuration — ~/.remote-control/rc.env

VariableDefaultMeaning
RC_UPSTREAM127.0.0.1:3080Upstream service to protect (any local HTTP service, not just DSH)
RC_LISTEN127.0.0.1:4080Caddy listen address (loopback only)
RC_FEISHU_OPEN_ID—Feishu open id for bot DM (primary channel)
RC_FEISHU_WEBHOOK—Group custom-bot webhook (fallback channel)
RC_NOTIFY_PASSWORDfullfull = password pushed as its own message; mask = last 4 chars only; any other value = no password message
RC_NOTIFY_NOTE—Custom text at the top of the notification card (above the URL); re-read on every notify, no restart needed
RC_TUNNEL_NAME—Named Tunnel name (optional, for fixed domain)
RC_TUNNEL_HOSTNAME—Named Tunnel hostname (optional, e.g. dsh.example.com)
RC_TUNNEL_PROTOCOLhttp2Tunnel transport protocol. Keep http2 if a proxy TUN (e.g. Clash Verge) runs on this machine — QUIC/UDP flaps with TUN routing and shows up as intermittent 502/530; switch to quic only on clean networks

Runtime data (password, token, logs) lives in ~/.remote-control/ with 600 permissions and never enters git.

Platform support

PlatformStatus
macOS x86_64 / arm64✅ developed & verified here
Linux x86_64 / arm64 (Ubuntu/Debian first)✅ same installer, systemd units planned (M3)
Windows❌ not officially supported; PRs welcome with real test evidence

Security notes

  • DSH keeps binding to 127.0.0.1 only; the only public surface is the Cloudflare edge behind the password gate.
  • Password: 128-bit random, stored locally with 600 permissions; failed logins lock the source IP for 5 minutes (HTTP 429).
  • Session cookie is HttpOnly + SameSite=Lax, valid 7 days. To rotate: regenerate the password (scripts/gen-password.sh) and/or edit ~/.remote-control/session.secret, then dsh-web restart.
  • Never commit rc.env, password, session.secret or rendered Caddyfile — .gitignore already covers them; CI plus review keep it that way.

Named Tunnel (fixed domain)

By default, Quick Tunnel assigns a random URL on every start. For a fixed domain:

# 1. Login to Cloudflare
cloudflared tunnel login

# 2. Create tunnel
cloudflared tunnel create my-dsh-tunnel

# 3. Route DNS
cloudflared tunnel route dns my-dsh-tunnel dsh.example.com

# 4. Edit ~/.remote-control/rc.env
RC_TUNNEL_NAME="my-dsh-tunnel"
RC_TUNNEL_HOSTNAME="dsh.example.com"

# 5. Restart
dsh-web restart

Or run dsh-web tunnel-setup for a guided setup.

Architecture

For system architecture, design decisions, and component interaction, see docs/architecture.md.

Roadmap

For milestone progress and what's next, see docs/roadmap.md.

Contributing

See CONTRIBUTING.md · 中文版. In short: CI must pass (shellcheck + syntax checks), scripts stay bash-3.2/POSIX compatible, platform-specific changes come with real test evidence.

License

MIT © 2026 Summy Wu (oh-summy)

Comments

Loading…

Similar plugins

dsh-auth-tunnel

by ai-eks

Password-gated Cloudflare Tunnel access for the DeepSeek Harness Web GUI, with quick and named tunnel modes.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 4

↓ 348/wk

MIT

TypeScript

Sep 25, 2026

dsh plugin --profile web add dsh-auth-tunnel

by JUANWANG-BUAA

Auditable, token-gated DeepSeek Harness remote gateway: mobile QR access, per-device sessions, Host/Origin rewrite, settings/credentials/directory support.

Tools & CapabilitiesTerminal & ClientsUI & ExperienceManifest valid

★ 44

MIT

TypeScript

Sep 26, 2026

dsh plugin --profile web add dsh-full-remote

by why-did

Remote access for the DeepSeek Harness Web GUI via Tailscale or cloudflared — early-stage, read the notice first.

Development & InfrastructureManifest valid

★ 0

MIT

JavaScript

Sep 21, 2026

dsh plugin --profile web add dsh-tailscale-access

by slywalker2006

Server-grade gateway that turns DeepSeek Harness into a multi-tenant platform: remote access + auto HTTPS, subuser permissions & quotas, sandbox enforcement, encrypted auth, audit log.

Security & AuditModels & ProvidersManifest valid

★ 63

GPL-3.0

TypeScript

Sep 25, 2026

dsh plugin --profile web add dsh-passwords

by xgone

让你通过浏览器安全地远程使用 DeepSeek Harness:登录、MFA 两步验证、角色权限和远程文件预览。 | Use DeepSeek Harness securely in a remote browser with login, MFA, roles, and remote file preview.

Tools & CapabilitiesSecurity & AuditDevelopment & InfrastructureManifest valid

★ 66

MIT

JavaScript

Sep 23, 2026

dsh plugin --profile web add @xgone/dsh-remote

by RyensX

Provides a secure reverse proxy, enabling DeepSeek Harness to be accessed remotely and to converse with AI anytime, anywhere.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

MIT

TypeScript

Aug 26, 2026

dsh plugin --profile web add dsh-remote-gateway