How to install dsh: npx, npm global, or source build

Install & Get StartedPublished 2026-08-28Author: DSH Plugin Hub
DeepSeek HarnessDSH plugininstall dshinstallation guideDeepSeek Harness install
How to install dsh: npx one-liner, npm global (dsh web), or source build. Scenarios, steps, verification and uninstall for each route, plus troubleshooting.

DeepSeek Harness offers three install routes: npx runs without installing (best for beginners), npm global installs the dsh command (best for daily use), and a source build (for development and the newest code). This guide compares scenarios, prerequisites, commands, verification and uninstall notes for all three — and closes with a troubleshooting table.

Overview: the three install routes compared

Pick npx to try things out, or a global install when dsh becomes part of your routine. All three share the same data directory (~/.dsh), so plugins and configs never conflict and you can switch routes anytime (source):

RouteBest forPrerequisiteStart commandUninstall
npx one-linerquick try, no environment changesNode.jsnpx @deepseek-ai/dsh webnothing installed, nothing to remove
npm globallong-term daily useNode.js + npmdsh webnpm uninstall -g @deepseek-ai/dsh
source buildnewest code, custom developmentNode.js + gitdsh web after builddelete the cloned repo

Route 1: npx one-liner (beginners)

One command downloads and starts — no global files written, the fastest way to try DeepSeek Harness.

Prerequisites:

  1. Node.js (with npm) installed; node -v prints a version;
  2. Network access to the npm registry (a mirror helps on slow connections).

Steps:

  1. Open a terminal and run:
bash
npx @deepseek-ai/dsh web
  1. The first run downloads @deepseek-ai/dsh and initializes the web profile; wait for the "service started" message;
  2. The browser opens http://127.0.0.1:3080 automatically — or type the address manually;
  3. Finish the first-time setup (e.g. configure a model provider) and you are ready.

Fallback: npx: command not found means Node.js is missing or not on PATH — install it and retry. Slow or timed-out downloads: switch the npm mirror (npm config set registry https://registry.npmmirror.com) and run again.

Route 2: npm global install (daily use)

Put the dsh command on your system and start anytime; updates and uninstalls both go through npm.

Prerequisite: Node.js + npm available; npm -v prints a version.

Steps:

  1. Install globally:
bash
npm install -g @deepseek-ai/dsh
  1. Verify: dsh --version prints a version number;
  2. Start the service:
bash
dsh web
  1. Open http://127.0.0.1:3080 and finish the first-time setup.

Fallback: dsh: command not found — find the global bin directory with npm prefix -g, add it to PATH and reopen the terminal. EACCES permission errors: run sudo npm install -g @deepseek-ai/dsh or configure a user-level npm prefix.

Route 3: source build (development and newest code)

Clone the official repo and build it yourself — great for reading the code, doing your own development, or trying unreleased features.

Prerequisites: Node.js (node -v), git (git --version), and GitHub access.

Steps:

  1. Clone the official repo:
bash
git clone https://github.com/deepseek-ai/deepseek-harness
  1. Enter the directory and install dependencies:
bash
cd deepseek-harness
npm install
  1. Run the build command documented in the repo (check the README for the exact one);
  2. Once built, start with dsh web and open http://127.0.0.1:3080.

Fallback: a timed-out git clone means GitHub access is restricted — configure a proxy and retry. npm install errors usually point to an old Node version — upgrade Node.js and run it again.

Verify and take the next step

Verify first, then step into the plugin ecosystem. Steps:

  1. dsh --version printing a version number means the binary is installed;
  2. dsh web (or npx @deepseek-ai/dsh web) opening http://127.0.0.1:3080 means you are fully ready;
  3. Next, install the plugin market: dsh plugin --profile web add dsh-plugin, which brings in DSH Plugin Hub;
  4. Restart dsh web, refresh the page, and use it from Settings → Plugin Center.
dsh-plugin-hub · settings
DSH Plugin Hub settings page

Uninstall notes for each route

Uninstall the way you installed — and remember the binary and the ~/.dsh data directory are two different things. Commands:

bash
# npx route: nothing installed; optionally clear the temp cache (data kept)
rm -rf ~/.npm/_npx

# npm global install
npm uninstall -g @deepseek-ai/dsh

# source build: delete the cloned repo directory
rm -rf ~/path/to/deepseek-harness

Uninstalling removes only the program; configs, credentials and sessions under ~/.dsh stay by default. Only delete ~/.dsh yourself for a full data wipe — back it up first.

Troubleshooting common issues

Can't install or start? Locate the problem in the table first. Common issues:

IssueLikely causeFix
npx: command not foundNode.js missing or not on PATHinstall Node.js, reopen the terminal
dsh: command not foundglobal bin dir not on PATHnpm prefix -g, add the dir to PATH, reopen the terminal
Install / download timeoutslow network, restricted registryswitch the npm mirror: npm config set registry https://registry.npmmirror.com
Permission error (EACCES)no write access to global dirsinstall with sudo, or configure a user-level npm prefix
git clone timeoutGitHub access restrictedconfigure a proxy and retry
Port 3080 won't open in the browserservice not running, or port busyconfirm the terminal service is up, free port 3080, restart

Quick recap

In short: start with npx, install globally for daily use, build from source for development — then verify with dsh --version and dsh web. Four reminders:

  1. All three routes share data — switching install methods never loses the configs, sessions or plugins in ~/.dsh;
  2. Node.js comes first — every route depends on it; confirm node -v before starting;
  3. The first download is slow by design — npx and the global install both fetch packages on first run; a mirror speeds it up;
  4. Step into the plugin ecosystem after installingdsh plugin --profile web add dsh-plugin installs DSH Plugin Hub, then install more plugins from Settings → Plugin Center.

Sources: dsh CLI README, DeepSeek Harness docs - Quickstart, dshplugin/dsh-plugin-hub

FAQ

What install options does DeepSeek Harness have and what are the commands?

Three: the npx one-liner (npx @deepseek-ai/dsh web), the npm global install (npm install -g @deepseek-ai/dsh, then start with dsh web), and a source build (git clone https://github.com/deepseek-ai/deepseek-harness, npm install, then build per the README).

Which install route is best for beginners?

The npx route: one command downloads and starts with the latest version, writing no global files. Upgrade to a global install (npm install -g @deepseek-ai/dsh) once you know you will use dsh daily — startup is faster.

After a global install, how do I start and update dsh?

Start with dsh web and open http://127.0.0.1:3080; update later with npm update -g @deepseek-ai/dsh; check the installed version with dsh --version.

What are the prerequisites for a source build?

Node.js (check with node -v), git (check with git --version), and network access to GitHub. Clone the repo, cd deepseek-harness, run npm install, then run the build command documented in the repo.

How do I verify the dsh install succeeded?

Two checks: dsh --version prints a version number (binary ready), and dsh web (or npx @deepseek-ai/dsh web) lets the browser open http://127.0.0.1:3080 (fully usable).

Sources