[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"auth:me":3,"blog-post-en-dsh-lifecycle-management":5,"site-config":76},{"user":4,"membership":4},null,{"post":6,"locale":62,"requestedLocale":62,"fallback":61,"related":63},{"slug":7,"title":8,"excerpt":9,"html":10,"toc":11,"cover":4,"category":55,"tags":4,"publishedAt":56,"updatedAt":57,"seoTitle":58,"seoDescription":59,"ogImage":4,"canonical":4,"keywords":60,"noindex":61},"dsh-lifecycle-management","DSH lifecycle management: install, start, pin a version, roll back","The client's first job — install Node and DSH on the remote machine, supervise the service, and own start, stop, version changes and removal.","\u003Cblockquote>\n\u003Cp>\u003Cstrong>In one sentence:\u003C\u002Fstrong> 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.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2 id=\"what-it-replaces\">What it replaces\u003C\u002Fh2>\n\u003Cp>Getting DSH running on a bare machine is a chain: check the OS, install Node 24+, install pnpm, install \u003Ccode>@deepseek-ai\u002Fdsh\u003C\u002Fcode>, 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: \u003Cstrong>detect → confirm → install → start → verify\u003C\u002Fstrong>, and after that every action is a button in Settings.\u003C\u002Fp>\n\u003Ch2 id=\"which-copy-of-dsh-it-manages\">Which copy of DSH it manages\u003C\u002Fh2>\n\u003Cp>Ownership matters, because it decides what uninstall can touch.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>The program lives in \u003Ccode>~\u002F.dsh-remote\u003C\u002Fcode> on the remote side, \u003Cstrong>no root required\u003C\u002Fstrong>.\u003C\u002Fli>\n\u003Cli>With no \u003Ccode>DSH_HOME\u003C\u002Fcode> set, the runtime keeps using your existing \u003Ccode>~\u002F.dsh\u003C\u002Fcode>, so sessions, plugins and config stay where they were.\u003C\u002Fli>\n\u003Cli>Only \u003Cstrong>one supervised copy\u003C\u002Fstrong> exists per machine. A DSH you started by hand is never stopped; if 3080 is taken, the supervised one runs on another port.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"the-six-step-install\">The six-step install\u003C\u002Fh2>\n\u003Cp>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:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Step\u003C\u002Fth>\n\u003Cth>What happens\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>1. Check disk and directories\u003C\u002Ftd>\n\u003Ctd>Is there space, where is home, is it writable\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>2. Reuse or install Node 24+\u003C\u002Ftd>\n\u003Ctd>Reuse a working one, otherwise download the official build\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>3. Install dsh\u003C\u002Ftd>\n\u003Ctd>Pull the dependency tree, about 500 MB\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>4. Install the companion plugin\u003C\u002Ftd>\n\u003Ctd>\u003Ccode>dsh-devtools\u003C\u002Fcode>; non-fatal — a failure is recorded, not hidden\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>5. Start dsh web\u003C\u002Ftd>\n\u003Ctd>Start the service; pick another port if 3080 is busy\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>6. Verify the port\u003C\u002Ftd>\n\u003Ctd>Confirm something is really listening, then derive the DSH address\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>Worth knowing:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>No invented percentage.\u003C\u002Fstrong> npm cannot report exact progress, so the UI shows &quot;fetched N packages, about X MB downloaded&quot; plus a log tail. A made-up number is worse than none.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Cancel really cancels.\u003C\u002Fstrong> It kills the remote npm process; it does not just write a flag while the install keeps running.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>The registry is chosen by measuring from the remote side.\u003C\u002Fstrong> 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.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"after-the-install-one-state-one-primary-button\">After the install: one state, one primary button\u003C\u002Fh2>\n\u003Cp>One status line, one primary action:\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>State\u003C\u002Fth>\n\u003Cth>Primary button\u003C\u002Fth>\n\u003Cth>Under &quot;more&quot;\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Nothing installed here\u003C\u002Ftd>\n\u003Ctd>Install runtime\u003C\u002Ftd>\n\u003Ctd>—\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Installing\u003C\u002Ftd>\n\u003Ctd>View progress \u002F Cancel\u003C\u002Ftd>\n\u003Ctd>Task centre\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Running\u003C\u002Ftd>\n\u003Ctd>Stop service\u003C\u002Ftd>\n\u003Ctd>Restart, logs, details\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Stopped\u003C\u002Ftd>\n\u003Ctd>Start service\u003C\u002Ftd>\n\u003Ctd>Restart, details\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Dead, or state unreadable\u003C\u002Ftd>\n\u003Ctd>Start service\u003C\u002Ftd>\n\u003Ctd>Re-check, reinstall\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>That last row is deliberate: \u003Cstrong>&quot;cannot see it&quot; is not &quot;it is not there.&quot;\u003C\u002Fstrong> When a probe fails, the UI does not claim the runtime is missing — it gives you a working &quot;Start service&quot; that follows the last recorded state.\u003C\u002Fp>\n\u003Ch2 id=\"the-watchdog-every-15-seconds-three-strikes\">The watchdog: every 15 seconds, three strikes\u003C\u002Fh2>\n\u003Cp>A watchdog probes the supervised DSH every 15 seconds.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Port answers → its miss counter resets.\u003C\u002Fli>\n\u003Cli>Port does not answer → counter goes up; only \u003Cstrong>three misses in a row (about 45 seconds)\u003C\u002Fstrong> count as dead, and then it restarts the service.\u003C\u002Fli>\n\u003Cli>The criterion is the \u003Cstrong>port\u003C\u002Fstrong>, not the pid: pids get reused, and \u003Ccode>dsh web\u003C\u002Fcode> can fork children.\u003C\u002Fli>\n\u003Cli>The restart uses \u003Cstrong>the exact same command\u003C\u002Fstrong> as the first start, so there is no second implementation to drift.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>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 &quot;the page drops every minute.&quot;\u003C\u002Fp>\n\u003Cp>One boundary: \u003Cstrong>a service you explicitly stopped stays stopped\u003C\u002Fstrong> — the intent is recorded, and both the watchdog and restart respect it.\u003C\u002Fp>\n\u003Ch2 id=\"day-to-day-actions\">Day-to-day actions\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Start\u003C\u002Fstrong> is idempotent — it puts our own copy away first.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Stop\u003C\u002Fstrong> stops the service and its watchdog; other processes on that machine are untouched.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Restart\u003C\u002Fstrong> is one command, not stop-then-wait.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Uninstall\u003C\u002Fstrong> removes \u003Ccode>~\u002F.dsh-remote\u003C\u002Fcode> only. It \u003Cstrong>does not touch your \u003Ccode>~\u002F.dsh\u003C\u002Fcode>\u003C\u002Fstrong> where sessions and config live; plugins it added are cleaned up where possible, and no \u003Ccode>~\u002F.dsh\u003C\u002Fcode> path ever appears in the delete list.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Logs\u003C\u002Fstrong>: failures come with a reason plus the last 20 lines of the remote log.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Re-check\u003C\u002Fstrong> merges the recorded state with one \u003Ccode>--verify\u003C\u002Fcode> call without changing anything.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Auto-connect on launch\u003C\u002Fstrong> and \u003Cstrong>open DSH after connecting\u003C\u002Fstrong> are two switches under Application; a stopped service is never auto-started.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"task-centre-closing-the-app-does-not-stop-the-remote-install\">Task centre: closing the app does not stop the remote install\u003C\u002Fh2>\n\u003Cp>Installs and downloads are first-class tasks: id, type, state, phase, progress, log, terminal state, history.\u003C\u002Fp>\n\u003Cp>That buys you:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Start an install, do something else, come back and read the phase and log.\u003C\u002Fli>\n\u003Cli>Close the app and \u003Cstrong>the remote install keeps running\u003C\u002Fstrong> (the script is started with \u003Ccode>setsid\u003C\u002Fcode>), then pick the progress up next launch.\u003C\u002Fli>\n\u003Cli>No guessing on failure: terminal state and log tail live on that task.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"changing-versions-node-and-dsh-separately\">Changing versions: Node and dsh separately\u003C\u002Fh2>\n\u003Ch3 id=\"node\">Node\u003C\u002Fh3>\n\u003Cp>Four actions: list installed versions, install a specific one, roll back, clean up old ones.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>The client downloads the official Node build and \u003Cstrong>verifies its sha256\u003C\u002Fstrong> before installing into its own root.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>No nvm, no edits to your shell profile\u003C\u002Fstrong> — your existing Node and PATH stay as they are.\u003C\u002Fli>\n\u003Cli>Node 24 is the verified line. Newer majors are \u003Cstrong>allowed\u003C\u002Fstrong>, 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.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3 id=\"dsh\">dsh\u003C\u002Fh3>\n\u003Cp>There is no &quot;update to latest&quot; button. Instead you \u003Cstrong>pin a version\u003C\u002Fstrong>: pick from a list (recent entries from the registry, with a built-in tested version as fallback), install it, and \u003Cstrong>roll back\u003C\u002Fstrong> to the previous one.\u003C\u002Fp>\n\u003Cp>One step more verbose than a one-click upgrade, but you always know where you are and how to get back.\u003C\u002Fp>\n\u003Ch3 id=\"the-data-directory-dsh_home\">The data directory (DSH_HOME)\u003C\u002Fh3>\n\u003Cp>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.\u003C\u002Fp>\n\u003Cp>One boundary up front: \u003Cstrong>it switches the directory, it does not copy data.\u003C\u002Fstrong> Your old sessions do not move.\u003C\u002Fp>\n\u003Ch2 id=\"boundaries-in-one-place\">Boundaries, in one place\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Only two channels support it\u003C\u002Fstrong>: SSH or the local machine. With &quot;just paste a URL&quot; there is no runtime to read, and install, start and stop are unavailable.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Remotely it supports Linux, macOS and Windows\u003C\u002Fstrong>; the Windows path uses PowerShell scripts.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>It needs room\u003C\u002Fstrong>: 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.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Node 24+\u003C\u002Fstrong>: the floor comes from dsh's dependency tree; lower gives you a dsh that will not start.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>No silent auto-update.\u003C\u002Fstrong> &quot;Check for updates&quot; asks whether a newer version exists and points you at the download page.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>It never takes over your DSH.\u003C\u002Fstrong> The copy you started is yours; the client does not look at it, block it or stop it.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>It is not a package manager.\u003C\u002Fstrong> It installs DSH, Node and the companion plugin — not your project dependencies, which DSH and the agent handle remotely.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"faq\">FAQ\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>What does the remote machine need?\u003C\u002Fstrong> 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.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Do I have to type the DSH address afterwards?\u003C\u002Fstrong> No — step six verifies the port, the address is derived from it, and the page opens.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Why can't &quot;just a URL&quot; install anything?\u003C\u002Fstrong> That channel carries only a page — no exec, no file access. To manage a runtime, give it an SSH connection or choose &quot;this computer.&quot;\u003C\u002Fp>\n\u003Cp>\u003Cstrong>What if the install is interrupted?\u003C\u002Fstrong> Read the terminal state and log tail in the task centre, then hit &quot;Re-check&quot;: the client verifies whether the remote process is still alive and reports a failure with the log instead of showing &quot;in progress&quot; forever.\u003C\u002Fp>\n\u003Ch2 id=\"read-next\">Read next\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Ca href=\"\u002Fen\u002Fblog\u002Fwhat-is-dsh-remote\">What is DSH Remote? The four capabilities\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fen\u002Fblog\u002Fssh-multi-environment\">SSH multi-environment management: one profile per environment\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fen\u002Fblog\u002Fport-forwarding\">Port forwarding: getting the service into your browser\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fen\u002Fdocs\u002Fgetting-started\u002Fquickstart\">Quick start\u003C\u002Fa> · \u003Ca href=\"\u002Fen\u002Fdocs\u002Freference\u002Fconfig\">Where the settings live\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fen\u002Fdownload\">Download\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n",[12,16,19,22,25,28,31,34,37,41,43,46,49,52],{"level":13,"text":14,"id":15},2,"What it replaces","what-it-replaces",{"level":13,"text":17,"id":18},"Which copy of DSH it manages","which-copy-of-dsh-it-manages",{"level":13,"text":20,"id":21},"The six-step install","the-six-step-install",{"level":13,"text":23,"id":24},"After the install: one state, one primary button","after-the-install-one-state-one-primary-button",{"level":13,"text":26,"id":27},"The watchdog: every 15 seconds, three strikes","the-watchdog-every-15-seconds-three-strikes",{"level":13,"text":29,"id":30},"Day-to-day actions","day-to-day-actions",{"level":13,"text":32,"id":33},"Task centre: closing the app does not stop the remote install","task-centre-closing-the-app-does-not-stop-the-remote-install",{"level":13,"text":35,"id":36},"Changing versions: Node and dsh separately","changing-versions-node-and-dsh-separately",{"level":38,"text":39,"id":40},3,"Node","node",{"level":38,"text":42,"id":42},"dsh",{"level":38,"text":44,"id":45},"The data directory (DSH_HOME)","the-data-directory-dsh_home",{"level":13,"text":47,"id":48},"Boundaries, in one place","boundaries-in-one-place",{"level":13,"text":50,"id":51},"FAQ","faq",{"level":13,"text":53,"id":54},"Read next","read-next","Guides","2026-11-02T02:00:00.000Z","2026-11-03T05:04:04.000Z","DSH lifecycle management: install, start, roll back","DSH Remote installs Node 24+ and @deepseek-ai\u002Fdsh on your remote machine, adds the companion plugin and supervises the service: six-step install, a 15-second watchdog, start\u002Fstop\u002Frestart, version pinning and rollback, DSH_HOME switching, logs and a task centre.","DSH lifecycle,install DSH remotely,start stop DSH,Node version,DSH_HOME,DSH logs",false,"en",[64,68,72],{"slug":65,"title":66,"publishedAt":67},"ssh-multi-environment","SSH multi-environment management: one profile per machine","2026-11-01T02:00:00.000Z",{"slug":69,"title":70,"publishedAt":71},"port-forwarding","Port forwarding: open remote services the VSCode Remote way","2026-10-31T02:00:00.000Z",{"slug":73,"title":74,"publishedAt":75},"dsh-devtools-plugin","dsh-devtools: a dev workbench inside your remote DSH","2026-10-30T02:00:00.000Z",{"settings":77,"products":93,"navigation":108,"oauth":159,"endpoints":161},{"site.name":78,"site.tagline":79,"site.description":80,"site.tagline.en":81,"site.description.en":82,"site.keywords":83,"site.icp":84,"site.police":85,"site.contact_email":86,"site.company":87,"site.copyright":87,"site.social.github":88,"site.social.x":87,"site.social.wechat":87,"site.support_url":87,"site.announcement":87,"trial.enabled":89,"trial.days":90,"trial.grant_on":91,"trial.enabled_at":87,"site.url":92},"DSH Remote","管理远端 DSH 的客户端：装、连、转、用一个窗口。","DSH Remote 是 DeepSeek Harness 的远程客户端：装好、连上、转发、打开，四件事一个窗口。","The remote client for DeepSeek Harness: install, connect, forward, work.","DSH Remote is the remote client for DeepSeek Harness: four jobs, one window.","DeepSeek Harness,DSH,DSH Remote,远程客户端,SSH 多环境,端口转发,DSH 生命周期,dsh-devtools,VSCode Remote,远程开发,AI 编程","赣ICP备2026027330号-1","赣公网安备36112402000139号","support@dshremote.cn","","https:\u002F\u002Fgithub.com\u002Fzhanglaian\u002Fdsh-remote",true,7,"register","https:\u002F\u002Fdshremote.cn",[94,102],{"slug":95,"name":96,"kind":97,"summary":98,"icon":99,"latestVersion":100,"minSupportedVersion":101},"dsh-remote","DSH Remote 桌面端","desktop","Windows \u002F macOS \u002F Linux 桌面客户端","i-lucide-monitor","1.2.0","0.8.0",{"slug":103,"name":104,"kind":105,"summary":106,"icon":107,"latestVersion":4,"minSupportedVersion":4},"dsh-mobile","DSH Remote 手机端","mobile","Android \u002F iOS 手机客户端","i-lucide-smartphone",{"main":109,"footer":134},[110,114,118,122,126,130],{"key":111,"to":112,"icon":113},"nav.download","\u002Fdownload","i-lucide-download",{"key":115,"to":116,"icon":117},"nav.pricing","\u002Fpricing","i-lucide-tag",{"key":119,"to":120,"icon":121},"nav.docs","\u002Fdocs","i-lucide-book-open",{"key":123,"to":124,"icon":125},"nav.blog","\u002Fblog","i-lucide-newspaper",{"key":127,"to":128,"icon":129},"nav.changelog","\u002Fchangelog","i-lucide-list",{"key":131,"to":132,"icon":133},"nav.about","\u002Fabout","i-lucide-info",[135,141,150],{"titleKey":136,"items":137},"footer.product",[138,139,140],{"key":111,"to":112},{"key":115,"to":116},{"key":127,"to":128},{"titleKey":142,"items":143},"footer.resources",[144,145,146,147],{"key":119,"to":120},{"key":123,"to":124},{"key":131,"to":132},{"key":148,"to":149},"nav.contact","\u002Fcontact",{"titleKey":151,"items":152},"footer.legal",[153,156],{"key":154,"to":155},"nav.privacy","\u002Flegal\u002Fprivacy",{"key":157,"to":158},"nav.terms","\u002Flegal\u002Fterms",{"providers":160},[],{"policy":162,"desktopLatest":163,"appLatest":164,"announcements":165},"\u002Fapi\u002Fv1\u002Fclient\u002Fpolicy","\u002Fapi\u002Fv1\u002Fdesktop\u002Flatest","\u002Fapi\u002Fv1\u002Fapp\u002Flatest","\u002Fapi\u002Fv1\u002Fannouncements"]