rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:juntaoqian/dsh-remote-v2
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Remote access for DeepSeek Harness (DSH), rebuilt for isolation and stability:
127.0.0.1 only, exact Host/Origin policy, decode-safe deny of the management plane, hop-by-hop/edge headers stripped before reaching DSH.Status: v0.1.0 — Quick / Named / Tailscale transports, pairing, devices, settings UI and diagnostics are implemented.
📖 中文使用指南:docs/USAGE.zh-CN.md — 安装/配对/Tailscale/Named/Quick Tunnel/常见问题,含「一句话让 AI 安装」提示词。
Phone browser / PWA
│ HTTPS
▼
Transport (Cloudflare Quick Tunnel / Named Tunnel)
▼
Remote Core (sidecar, own process)
├─ tunnel manager (ready via metrics /ready, backoff reconnect)
├─ authenticated gateway (/pair, /pair/claim, reverse proxy HTTP+WS)
├─ pairing tickets + device sessions
└─ control API (loopback + Bearer token)
▲
│ loopback control API
DSH plugin (lib/index.js, thin adapter)
└─ settings section "远程访问" (lib/client.js)
▼
DSH Web Server (127.0.0.1)
>= 0.2.1-rc.2 (bundles connection + webServer services).cloudflared is auto-downloaded (pinned version + SHA-256) on first start; macOS/Linux support is planned.Network note (important): Cloudflare Quick Tunnel uses
*.trycloudflare.com. On some networks (notably parts of mainland China) that hostname does not resolve, so the public URL is unreachable even thoughcloudflaredreports ready. For stable/production use prefer the Named Tunnel transport with your own domain (fixed hostname), or put the Quick Tunnel behind a working proxy. The loopback path (gateway, pairing, proxy) is unaffected.
# from this repository
node scripts/install.mjs --profile desktop
# then fully quit and reopen DeepSeek Harness
See docs/contracts.md for module and API contracts.
A Named Tunnel keeps the same public hostname across restarts. It needs a domain
whose nameservers point at Cloudflare (the free plan is enough) and a fixed local
port, because the Cloudflare Public Hostname is configured to forward to
http://127.0.0.1:<gatewayPort>.
dsh-remote) → Save.cloudflared service install eyJhIjoi.... The long string after install is the token.
CLI alternative: cloudflared tunnel token dsh-remote (after cloudflared tunnel login and cloudflared tunnel create).dsh, Domain: example.com127.0.0.1:26001 (must equal the plugin's local gateway port)https://dsh.example.com26001 (same as step 3)The token is a machine credential for the tunnel (tunnel id + secret). Treat it like a password: it is stored only in the plugin state directory (
~/.dsh/plugins/dsh-remote-v2/config.json, mode 0600), never logged. Delete and recreate the tunnel to rotate it.
If both the computer and the phone are in the same Tailscale tailnet, tailscale serve can terminate HTTPS and forward to the plugin gateway. Nothing is exposed
to the public internet (use tailscale funnel instead if you want that), and
Tailscale ACLs still apply.
& 'C:\Program Files\Tailscale\tailscale.exe' status --json |
ConvertFrom-Json | ForEach-Object { $_.Self.DNSName.TrimEnd('.') }
# e.g. cxqjt.tail7cbe8.ts.net
& 'C:\Program Files\Tailscale\tailscale.exe' serve --bg 26001
If Serve is not enabled yet, the command prints a
https://login.tailscale.com/f/serve?node=... link — open it and enable Serve
for the tailnet. Re-run the command afterwards.
https://cxqjt.tail7cbe8.ts.net26001 (same port as step 2)https://cxqjt.tail7cbe8.ts.net/pair and type the 8-character code.tailscale serve --bg 26001 persists in tailscaled's state and keeps forwarding
https://<dns-name>/ → http://127.0.0.1:26001. The plugin gateway still checks
the exact Host (cxqjt.tail7cbe8.ts.net) and requires device pairing, so a tailnet
peer that has not paired gets 401. To stop serving: stop remote access in the
plugin and run tailscale serve reset.
/dsh-remote-v2) is denied publicly (percent-decoding safe).HttpOnly; SameSite=Lax cookies, and has a strict CSP.Host/Origin to the loopback DSH server and strips authorization, cf-*, x-forwarded-*, forwarded and the device cookie before forwarding.A paired device has the same power as a local DSH browser (tool execution included) — this is the product by design. Keep pairing codes private and revoke devices you no longer use.
node --test test/
MIT. See LICENSE and third-party notices in NOTICE.
| 项 | 值 |
|---|---|
| 版本 | 0.1.0 |
| 测试 | .github/workflows/ci.yml(push / PR) |
| CI | node --test(9 个测试文件) |
| 问题反馈 | https://github.com/juntaoqian/dsh-remote-v2/issues |
| 源码 | https://github.com/juntaoqian/dsh-remote-v2 |
| 许可证 | MIT |
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。