Repository navigation
Releases
Releases · weichengwu/dsh-web-control
dsh-web-control 0.1.0
dsh-web-control 0.1.0
Manage a LAN or Tailscale reachable dsh web instance from inside DSH.
dsh web listens on loopback by default, so a phone or a second machine cannot open it.
This plugin gives you a Settings → Web access panel that binds it to a real address
(Tailscale, LAN, or loopback), starts and stops it, and hands you the token URL.
Install
dsh plugin --profile desktop add dsh-web-control-0.1.0.tgzThen restart DSH and open Settings → Web access.
What it does
- Detects usable addresses: Tailscale (
Tailscale ip -4), LAN (ipconfig getifaddr en0), loopback - Start / stop / restart, with the running state and elapsed time shown in the panel
- Copies the full
?token=URL; the token is regenerated on every start - Tail of the child's log, viewable from the panel
- Persists
bindHost/port/autoStartin~/.dsh-web-control/config.json - Two agent tools:
dsh_web_controlanddsh_web_config
Notes
--hostmust be a concrete IPv4 literal; dsh rejects0.0.0.0. The plugin only offers real addresses.- Binding a non-loopback address lets anyone who can reach it — and holds the token — use this machine's
DSH with full file and command access. Only enable it on a network you trust, and stop it when done. - The host half has no runtime dependencies; Node 24.
Tests: 16 unit tests plus an acceptance harness that spawns a real dsh web.