TZHR-invest/dsh-plugins#dsh-lan-gateway
Complete LAN/remote access for the Web UI: 0.0.0.0 binding, crypto.randomUUID polyfill, token gate (401 login page + WebSocket interception, loopback exempt), privileged-fence and settings-persistence exemptions, and an idempotent installer with upgrade recovery.
Complete LAN/remote access for the DeepSeek Harness web UI: binds to 0.0.0.0, polyfills crypto.randomUUID for insecure-origin LAN access, and adds a token gate — a 401 login page plus WebSocket interception with the loopback interface exempt, so localhost stays seamless while remote access requires the token. Includes privileged-fence and settings-persistence exemptions so the gate cannot be disabled through the settings UI.
Install
dsh plugin --profile web add dsh-lan-gatewaydsh plugin --profile web add dsh-lan-gateway (npm dsh-lan-gateway 0.2.1, verified npm 2026-08-31; part of the TZHR-invest/dsh-plugins monorepo — 'self-hosted, battle-tested against real incidents').
Compatibility
DSH web profile; host-side plugin; loopback exempt from auth; idempotent installer.
Details
- Repo: TZHR-invest/dsh-plugins#dsh-lan-gateway
- Category: UI Enhancements
- Stars: 2
- Version: npm dsh-lan-gateway 0.2.1
- Last push: 2026-08-17
- First seen: 2026-08-14
Recent updates
0.0.0.0 LAN binding; randomUUID polyfill; token-gated login (401 + WebSocket interception, loopback exempt); privileged-fence + settings persistence.
FAQ
- Is localhost still password-free?
- Yes — the loopback interface is exempt from the token gate by design, so local use is seamless while remote access requires the token.
- What is the randomUUID polyfill for?
- Some browser APIs require a secure context; over plain LAN HTTP, crypto.randomUUID is unavailable, so the gateway polyfills it to keep DSH's client-side code working.
- Can the gate be turned off from Settings?
- No — the privileged-fence and settings-persistence exemptions prevent the auth gate from being disabled through the settings UI.
Alternatives
TecFancy/dsh-auth-gate · arrow949/dsh-turn-approval · Starfie1d1272/dsh-builtin-toggles