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.

UI Enhancements ★ 2 updated 2026-08-17
View on GitHub ↗

Install

dsh plugin --profile web add dsh-lan-gateway

dsh 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

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

More plugins in UI Enhancements

Browse more in UI Enhancements

Guides for UI Enhancements plugins