Installing DSH Plugins
Where plugins come from
DSH plugins are distributed as npm packages, with source hosted on GitHub. Three places to look:
- The
dsh-plugintopic on GitHub: the official recommendation is that plugin authors tag their repos with it so they are easy to find; - The npm registry: published as
@scope/xxxpackages; - The dsh.plus plugin library: every listed plugin comes with a copy-ready install command.
How it works: profiles
Each runnable composition in DSH is a profile, stored under $DSH_HOME/profiles/<name>. The web profile, started by dsh web, is the usual target; DeepSeek Harness Desktop uses the reserved desktop profile instead, and the two directories are fully independent. The dsh plugin command manages a profile’s plugins: it forwards its arguments to pnpm inside the profile directory, then appends any installed package that declares dsh.bundle to the profile’s dsh.profile.bundles list, making it a config layer. So have pnpm installed before using dsh plugin.
Install into the web profile
dsh plugin --profile web add <package>
For example, a package published to npm:
dsh plugin --profile web add dsh-hello-plugin
You can also install straight from GitHub (github:owner/repo, or any pnpm-supported git spec):
dsh plugin --profile web add github:you/hello-plugin
Git installs pull source, not build output: the author must provide a prepare script that builds at install time. pnpm 10+ refuses to run prepare scripts of git dependencies until explicitly allowed, so the first add fails and prints a hint — put the exact package key from the error into that profile’s pnpm-workspace.yaml under allowBuilds and run add again:
allowBuilds:
dsh-hello-plugin: true
Treat this grant seriously: it lets that package’s code execute on your machine during install. Only allowlist source you trust, and prefer pinning a commit (github:you/hello-plugin#<sha>).
To avoid the git build dance entirely, ask the author to ship a tarball and install it locally:
dsh plugin --profile web add ./hello-plugin-0.1.0.tgz
Install into the desktop profile (Desktop app)
The Desktop app (DeepSeek Harness Desktop) uses the reserved desktop profile at $DSH_HOME/profiles/desktop. It is fully independent from web: a plugin installed into one never shows up in the other.
dsh plugin --profile desktop add <package>
Two prerequisites:
- Launch the Desktop app at least once — the app owns profile initialization, and the CLI will not create it for you;
- Fully quit the Desktop app before running the command, so it does not contend for the profile’s pnpm state.
You can skip the terminal entirely and install from the app’s own plugin page or plugin market: that writes to the same desktop profile, and it hot-loads without a restart.
Every install box on this site switches between Web and Desktop, and copies the command with the matching
--profilevalue.
Verify the install
Before launching, dump the composed config to confirm the layer is active:
dsh --profile web --dump-config
The output shows a bundle layer marked # == <package>. You can also ask where a package came from:
dsh plugin --profile web why dsh-hello-plugin
Finally start dsh web and exercise the plugin’s features in the Web UI; working behavior plus logs confirm it. The desktop route works the same way — swap the profile name for desktop, then restart or watch the Desktop app hot-load it.
Remove
dsh plugin --profile web remove dsh-hello-plugin
This removes both the dependency and its config layer. To temporarily disable a plugin instead of uninstalling, edit the profile’s cordis.patch.yml and disable or remove the corresponding row.
Local development: patch overlays
A plugin under development doesn’t need installing — load it with a --patch overlay:
pnpm dsh web --patch ./scratch-plugin/cordis.yml
See Your First Cordis Plugin and Cordis, Level Up for details.