In one sentence: DSH Remote installs Node, DSH and the companion plugin on the remote machine (or locally), supervises the service, and puts start, stop, restart, version changes, data-directory changes, logs and removal behind buttons.

What it replaces

Getting DSH running on a bare machine is a chain: check the OS, install Node 24+, install pnpm, install @deepseek-ai/dsh, start the service, confirm the port, add the plugin — then repeat most of it at every version change. When a step fails you SSH back in to read logs. Lifecycle management folds that chain into the client: detect → confirm → install → start → verify, and after that every action is a button in Settings.

Which copy of DSH it manages

Ownership matters, because it decides what uninstall can touch.

  • The program lives in ~/.dsh-remote on the remote side, no root required.
  • With no DSH_HOME set, the runtime keeps using your existing ~/.dsh, so sessions, plugins and config stay where they were.
  • Only one supervised copy exists per machine. A DSH you started by hand is never stopped; if 3080 is taken, the supervised one runs on another port.

The six-step install

Before anything runs you get a confirmation list: what gets installed, where, which config, whether root is needed, how much disk, how to remove it. Then six steps:

Step What happens
1. Check disk and directories Is there space, where is home, is it writable
2. Reuse or install Node 24+ Reuse a working one, otherwise download the official build
3. Install dsh Pull the dependency tree, about 500 MB
4. Install the companion plugin dsh-devtools; non-fatal — a failure is recorded, not hidden
5. Start dsh web Start the service; pick another port if 3080 is busy
6. Verify the port Confirm something is really listening, then derive the DSH address

Worth knowing:

  • No invented percentage. npm cannot report exact progress, so the UI shows "fetched N packages, about X MB downloaded" plus a log tail. A made-up number is worse than none.
  • Cancel really cancels. It kills the remote npm process; it does not just write a flag while the install keeps running.
  • The registry is chosen by measuring from the remote side. On one machine the official registry took 19m23s for this tree and a mirror took 20s; the winner is written into the confirmation list so you can check it.

After the install: one state, one primary button

One status line, one primary action:

State Primary button Under "more"
Nothing installed here Install runtime —
Installing View progress / Cancel Task centre
Running Stop service Restart, logs, details
Stopped Start service Restart, details
Dead, or state unreadable Start service Re-check, reinstall

That last row is deliberate: "cannot see it" is not "it is not there." When a probe fails, the UI does not claim the runtime is missing — it gives you a working "Start service" that follows the last recorded state.

The watchdog: every 15 seconds, three strikes

A watchdog probes the supervised DSH every 15 seconds.

  • Port answers → its miss counter resets.
  • Port does not answer → counter goes up; only three misses in a row (about 45 seconds) count as dead, and then it restarts the service.
  • The criterion is the port, not the pid: pids get reused, and dsh web can fork children.
  • The restart uses the exact same command as the first start, so there is no second implementation to drift.

Why three strikes: on a loaded machine the probe itself can time out; restarting on one miss would bounce a healthy service and look like "the page drops every minute."

One boundary: a service you explicitly stopped stays stopped — the intent is recorded, and both the watchdog and restart respect it.

Day-to-day actions

  • Start is idempotent — it puts our own copy away first.
  • Stop stops the service and its watchdog; other processes on that machine are untouched.
  • Restart is one command, not stop-then-wait.
  • Uninstall removes ~/.dsh-remote only. It does not touch your ~/.dsh where sessions and config live; plugins it added are cleaned up where possible, and no ~/.dsh path ever appears in the delete list.
  • Logs: failures come with a reason plus the last 20 lines of the remote log.
  • Re-check merges the recorded state with one --verify call without changing anything.
  • Auto-connect on launch and open DSH after connecting are two switches under Application; a stopped service is never auto-started.

Task centre: closing the app does not stop the remote install

Installs and downloads are first-class tasks: id, type, state, phase, progress, log, terminal state, history.

That buys you:

  • Start an install, do something else, come back and read the phase and log.
  • Close the app and the remote install keeps running (the script is started with setsid), then pick the progress up next launch.
  • No guessing on failure: terminal state and log tail live on that task.

Changing versions: Node and dsh separately

Node

Four actions: list installed versions, install a specific one, roll back, clean up old ones.

  • The client downloads the official Node build and verifies its sha256 before installing into its own root.
  • No nvm, no edits to your shell profile — your existing Node and PATH stay as they are.
  • Node 24 is the verified line. Newer majors are allowed, with a note that the app has not verified them and can roll back in one click — a rollback is more useful than a refusal.

dsh

There is no "update to latest" button. Instead you pin a version: pick from a list (recent entries from the registry, with a built-in tested version as fallback), install it, and roll back to the previous one.

One step more verbose than a one-click upgrade, but you always know where you are and how to get back.

The data directory (DSH_HOME)

You can point DSH at an existing remote directory or create a new one. Before switching, the client validates it (exists, is a directory, writable, not inside the install root) and refuses if it does not pass.

One boundary up front: it switches the directory, it does not copy data. Your old sessions do not move.

Boundaries, in one place

  • Only two channels support it: SSH or the local machine. With "just paste a URL" there is no runtime to read, and install, start and stop are unavailable.
  • Remotely it supports Linux, macOS and Windows; the Windows path uses PowerShell scripts.
  • It needs room: about 500 MB of dependencies plus 120 MB of Node, with 1.5 GB free required before starting — a half-installed runtime that ran out of disk is worse than no install at all.
  • Node 24+: the floor comes from dsh's dependency tree; lower gives you a dsh that will not start.
  • No silent auto-update. "Check for updates" asks whether a newer version exists and points you at the download page.
  • It never takes over your DSH. The copy you started is yours; the client does not look at it, block it or stop it.
  • It is not a package manager. It installs DSH, Node and the companion plugin — not your project dependencies, which DSH and the agent handle remotely.

FAQ

What does the remote machine need? A Linux, macOS or Windows host you can SSH into, a writable home directory and 1.5 GB free disk. Neither needs to exist yet.

Do I have to type the DSH address afterwards? No — step six verifies the port, the address is derived from it, and the page opens.

Why can't "just a URL" install anything? That channel carries only a page — no exec, no file access. To manage a runtime, give it an SSH connection or choose "this computer."

What if the install is interrupted? Read the terminal state and log tail in the task centre, then hit "Re-check": the client verifies whether the remote process is still alive and reports a failure with the log instead of showing "in progress" forever.