SSD Nodes Learn Hosting plans →
How to do am Matt ConnorBy Matt Connor · Updated 2026-10-30

How to Keep DeepSeek Harness Private on VPS

Install DeepSeek Harness on Linux VPS, pin the npm version, see wetin plugins fit do, and open port 3080 web UI safely through SSH tunnel.

Wetin DeepSeek Harness be

The DeepSeek Harness (dsh) na Node.js agent runtime wey you fit run for VPS (virtual private server), and the safe way to run am na to bind am to 127.0.0.1 while your browser dey reach am through SSH (secure shell) tunnel. E dey serve web UI (user interface) for port 3080 instead make e dey live inside terminal. For the 0.1.0-rc.6 release wey this guide pin, that web server no ask for password of its own. So, if you publish port 3080, anybody wey discover am fit get agent wey dey read your files and run commands as your Linux user. Newer releases, from 0.2.0-rc.2 reach 0.2.2-alpha.2 of 28 October 2026, wey be the newest release GitHub list for 29 October 2026, dey print startup URL wey carry fresh token for that process and swap am for session cookie. But dem still dey listen on loopback by default, and dem still refuse to bind every interface.

DeepSeek release am on 13 August 2026 under MIT licence, as npm package @deepseek-ai/dsh. The project describe itself as developer preview and talk say compatibility-breaking changes dey expected. The pinned version below na the August 2026 release. On 27 October 2026, npm latest tag name 0.2.1-rc.2 and its next tag name 0.2.1-rc.4. GitHub now list 0.2.1-rc.4, tagged dsh-v0.2.1-rc.4 and released on 28 October, with fix for diagnostics wey dey leak enter stdout for ACP mode. The newer 0.2.2-alpha.2, wey dem also release on 28 October, na the newest prerelease wey dey listed there on 29 October 2026. Check the repository before you copy any part of am onto a box wey matter.

One idea dey run through the whole design: everything na plugin. The model adapter, tool registry, session log, sandbox, scheduler, and the agent loop itself na plugins wey load into one shared context, and you fit replace any of dem. No privileged core dey wey plugins only decorate. Na this make the harness worth trying, and na also where the one real risk dey. Whether this trade make sense depend on wetin you dey compare am with. How e compare with Claude Code and Omnigent put the plugin-everything design side by side with two other answers about model coupling, licence, and how much of a VPS each one need.

Harness no be model

Harness na the thing wey dey run agent loop. Model dey do the reasoning for another place, so nothing go work until you give am either API (application programming interface) key or address of model endpoint wey you host by yourself. Everything for this post na harness configuration, no be model behaviour, and the boundary between both dey important to understand before you spend afternoon dey debug which side problem come from.

You go configure am for UI under Settings, then Models. DeepSeek get its own card, and for current releases, the "Add model provider" button under am dey open two modes. "Third-party model provider" cover providers wey harness get catalog for, like OpenAI and Anthropic, where you paste key and the catalog provide endpoint and model list. "Custom model API" na the interesting option: e dey take lowercase provider ID, display name, base URL, API protocol, credential, and at least one model. The protocol picker get OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages, so you fit configure gateway or local server wey speak one of dem; endpoints wey get different request format need compatibility settings. Custom providers fit also query the OpenAI-compatible GET /models endpoint to fill the model list for you.

Na so you point harness to model wey dey the same VPS. Ollama dey expose OpenAI-compatible API for http://127.0.0.1:11434/v1/, and API key field dey accept any string, ollama by convention, because OpenAI-style client require value and Ollama dey ignore am. Ollama own docs also describe ollama launch dsh, wey install @deepseek-ai/dsh if e never dey there and start am against Ollama model, so check the version wey e install before you rely on the pin below. Whether model wey small enough to fit your VPS good enough to drive agent na the harder question, and the difference between Ollama and vLLM as local model server go decide how much of your RAM the answer go cost.

Keys wey you type for UI na write-only. Harness dey store dem for $DSH_HOME/.credentials.yaml, and settings dey keep only credential reference, wey current releases write to active profile patch file, $DSH_HOME/profiles/<profile>/cordis.patch.yml (profile na web for dsh web). $DSH_HOME dey default to ~/.dsh. Treat credentials file like password file, because na password file e be: anybody wey read am fit spend your API budget. If you want edit those files directly instead of clicking through Settings, the walkthrough for dsh config files, keys, and model endpoints show wetin each key dey do and wetin dey leave your box for each mode.

Wetin you need before you install

  • one VPS wey dey run Ubuntu 24.04 or another current Linux, with SSH access
  • Node.js 24.9 or newer, because the project's main branch and 0.2.2-alpha.2 now declare >=24.9.0 and e CI tests Node 24 with compatibility check for Node 24.9 and Node 26, without any Node 22 job; tagged releases through 0.2.1-rc.4 still list Node 22.19 as acceptable, but that one no longer be the minimum version wey the project builds against
  • one normal user account, no be root, because the agent dey run shell commands as whoever start the process
  • pnpm for PATH if you plan install plugins, because the plugin command dey shell out to am
  • port 3080 closed for your firewall and for your provider's separate network firewall

Ubuntu own nodejs package old pass wetin the harness need, so install Node from NodeSource or nvm instead of using apt install nodejs. If the VPS new, harden SSH before anything else go take about ten minutes and e worth am, because the tunnel wey you wan depend on only dey as secure as the SSH server behind am.

Install DeepSeek Harness for VPS, pin am version

node --version
npx @deepseek-ai/dsh@0.1.0-rc.6 web

npx dey download package then run dsh binary. web na alias for --profile web, wey dey start browser application, and the process dey print address wey e dey listen on. Default na http://127.0.0.1:3080. Those numbers na binding decision, no be just cosmetic default, and why dsh dey print loopback address explain wetin harness go answer and wetin e no go answer before you search for am from your laptop.

Pin the version. npx @deepseek-ai/dsh web dey resolve any version wey latest tag point to for the minute wey you run am, unless project wey you run am from already get copy installed. For that case, npx quietly use that copy instead. Either way, na project choose the version, no be you, and project don already release several release candidates and talk say breaking changes dey come. 0.1.0-rc.6 na the August 2026 version wey we pin here. On 27 October 2026 latest dey point to 0.2.1-rc.2, release wey dey print tokenized startup URL, while next tag dey point to newer prerelease 0.2.1-rc.4; GitHub now get release notes for 0.2.1-rc.4 and list newer 0.2.2-alpha.2. So, if you wan move to another version, make you do am deliberately after you read the repository. Pinned version mean say the box wey you set up today go behave the same next month. Upgrade go become decision wey you make, instead of accident wey you discover. If pinned command still start wrong build or refuse to install at all, the usual dsh install and version errors explain how to clear npx cache and check which npm your Node package dey bundle.

For daily use, install am once instead of resolving version again every time you start am.

npm install -g @deepseek-ai/dsh@0.1.0-rc.6
dsh --profile web --help

That second line dey worth running, because launcher and web app get separate flag sets. dsh --help show launcher's own options. dsh --profile web --help show flags wey web application accept. Na there --port, --host and repeatable --trusted-host dey.

Now confirm wetin e dey listen on.

ss -tlnp | grep 3080

The local address column suppose read 127.0.0.1:3080. If e read 0.0.0.0:3080, UI dey listen on every interface. That mean na only your firewalls dey between am and internet, so stop the process before you do anything else.

Why you no suppose publish port 3080

The web server for 0.1.0-rc.6 no get authentication layer. Its configuration exposes a listen host and a listen port, and na only that e expose. Access control for non-loopback deployments na separate trusted-host setting, and e no be login screen.

Newer releases add one. From 0.2.0-rc.2, startup dey print URL wey carry fresh token for that process; browser wey open am go receive signed session cookie, then redirect go the same address without the token. A Host/Origin fence for front of /api routes only accept loopback, the listener own bind address, and the authorities wey you name with --trusted-host. That one na real credential, but the project own docs warn say you suppose share the printed URL only with intended users, and plain HTTP dey send am without encryption. Since 0.2.1-alpha.2, the web app fit also bind one specific local address and serve HTTPS by itself with --tls-cert and --tls-key. That one solve the plaintext problem, but e no solve the exposure problem. E make exposed port harder to abuse. E no make am something wey you suppose publish.

Now add wetin dey behind that port. The agent dey edit files for the workspace and run shell commands, and your provider credentials dey on disk beside am. So for the pinned release, open port 3080 na remote shell with chat interface, wey dey run as the user wey start am, with your API key attached. Nobody need exploit for that. Dem need the port number, and scanners dey find port numbers within hours after host come online. For release wey get launch token, dem also need the token. Anybody wey fit read your terminal, your service logs, or your unencrypted traffic already get am.

The CLI (command line interface) agree with this. As of 0.1.0-rc.6, e deliberately no support --host 0.0.0.0 and e go exit with usage error instead of starting, and the newer 0.2.2-alpha.2 still reject am for startup. That refusal na feature, so no go look for patch wey remove am.

Two other deployments dey reasonable when tunnel no fit work for you. Put the box for private overlay network so e get address wey na only your own devices fit route to, and na wetin self-hosted Headscale control server dey provide. Or put reverse proxy for front wey authenticate the request before e reach port 3080, for example Authentik single sign-on server wey dey do forward auth. Reverse proxy wey no get auth for front no be security control. Na just longer URL.

Access the web UI through an SSH tunnel

Run this for your laptop, no be for the server.

ssh -N -L 3080:127.0.0.1:3080 you@your-server

-L dey open port 3080 for your laptop and forward anything wey connect to am through the encrypted SSH session. The 127.0.0.1:3080 part dey resolve for the server, so the connection go reach the harness from loopback, exactly as if you dey sit for the machine. -N mean say make e no start remote shell, because na the forward alone you want.

Then open http://127.0.0.1:3080 for your local browser. For release wey get launch token, open the complete startup URL wey the server print instead, including the token; when you start the harness through SSH, e still print the startup line but e no try open browser for you. If port 3080 don already dey busy for your laptop, change the number for the left side: ssh -N -L 3180:127.0.0.1:3080 you@your-server, then browse to http://127.0.0.1:3180, and change the port for tokenized URL the same way. The number for the left side na local one, while the number for the right side belong to the server, so na only the left one you go change.

Save am for ~/.ssh/config and stop typing am.

Host dsh
  HostName 203.0.113.10
  User deploy
  IdentityFile ~/.ssh/id_ed25519
  LocalForward 3080 127.0.0.1:3080

After that, ssh -N dsh go start the tunnel. If browser report say connection dey refused, e usually mean say the tunnel dey up but nothing dey listen for the far side, because SSH dey forward the port whether the harness dey run or not. Check the server with the ss command wey dey above.

Harness dey run after you log out

An npx command dey die together with your shell. A systemd user service dey survive, and e go bring the harness back after crash or reboot. The unit wey dey here na deliberately minimal; if you want the harness to run under its own locked-down account, pin the version inside the unit, and get logs wey you fit search properly, the headless systemd setup for dsh explain everything for there.

loginctl enable-linger $USER
mkdir -p ~/.config/systemd/user
command -v dsh

enable-linger matter because user services normally stop when your last session end, so without am the harness go die immediately you close the tunnel. Take the absolute path wey command -v dsh print and put am for the unit, because systemd no dey search the PATH wey your login shell build.

[Unit]
Description=DeepSeek Harness web UI
After=network-online.target

[Service]
Type=simple
WorkingDirectory=%h/projects/site
ExecStart=/usr/local/bin/dsh web
Restart=on-failure
RestartSec=5

[Install]
WantedBy=default.target

WorkingDirectory no be decoration. The dsh process dey use the directory wey start am as the default filesystem location, so if service start for wrong place, e go point the agent to wrong folder. But that directory na only default: fresh Web UI no get workspace selected until you add one under Choose workspace, and the project's guide tell you to add the directory wey you start dsh inside. The guide no carry version marker, and the same wording don already dey for 0.1.0-rc.7, the earliest tagged release, four days after the pin, so expect am for the pinned release too. Set the unit's directory to the project, then choose that workspace for the UI.

systemctl --user daemon-reload
systemctl --user enable --now dsh
systemctl --user status dsh

Unit wey refuse to start almost always get wrong ExecStart path or Node version wey the binary no accept, and journalctl --user -u dsh -n 50 name which one. For release wey get the launch token, the journal na also where the tokenized startup URL go land, and every restart go print new one. The same pattern fit keep any coding agent dey alive for VPS, and the failure modes dey identical.

Plugin fit do wetin

A plugin na module wey dey add services, typed events, and effects wey fit reverse to shared context. Na these extension points you need read well:

  • register model provider for ctx.llm
  • add tools wey model fit use for ctx.tools
  • provide shell backend behind ctx.shell
  • provide filesystem access or policy behind ctx.fs
  • register commands wey human fit run for ctx.commands
  • run background work through ctx.jobs
  • use ctx.sandbox backend wrap processes wey e spawn
  • intercept requests and tool calls through agent/* and tools/* events
  • extend durable session state
  • control UI through ctx.agents

Read this list the way attacker go read am. Plugin fit provide filesystem layer and shell layer, and e fit dey inside every tool call wey model make. No permission dialog dey between plugin and these connection points, because plugin na ordinary Node code wey load for the same process with everything else. To install plugin mean say you dey run stranger code with your agent permissions, and your agent permissions na the permissions of your Unix user.

Na the same trust decision you dey make when you attach an MCP server to agent for VPS, where MCP mean model context protocol. Na also why to run coding agent safely for VPS dey start with the account wey e go run under, instead of starting with the model, and why npm supply chain attacks dey hit servers hard: the install step na where breach happen, and nothing go prompt you.

Wia plugins dey come from

Plugins dey live inside profiles. Profile na named composition wey dey stored under $DSH_HOME, and $DSH_HOME default na ~/.dsh. Each profile directory dey hold the out-of-tree plugins wey e install. CLI dey manage dem by forwarding your arguments straight go pnpm, using the profile directory as the working directory.

dsh plugin --profile web add github:deepseek-harness/turtle-ui
dsh plugin --profile web remove turtle-ui

Because the arguments reach pnpm unchanged, add, remove, update and why behave the same way dem dey behave for any pnpm project, and plugin fit be npm package or GitHub reference. pnpm must dey for PATH first. For Node 24, corepack enable pnpm go put am there. Node 25 stop distributing Corepack, so for Node 25 and newer, install am with npm install -g pnpm instead.

Discovery dey work through one GitHub topic. Plugin authors add the dsh-plugin topic to their repository, and na by browsing that topic you go find wetin dey available. Topic na label wey author apply to their own repository. Nobody dey review am and nobody sign am, and topic page dey rank by stars, wey measure popularity instead of safety.

Current 0.2.1 releases also carry experimental Custom plugin markets bundle. Switch am on under Plugins, and one Discover tab go let you add market. Market na JSON index file wey e fetch from URL wey you supply. Harness no ship any index of e own. E check the file format, but e no check the titles, authors, or sources wey market claim. Anybody wey dey on the network path fit rewrite index wey dem serve over plain http:. Market na catalogue wey another person write, no be review.

Four habits fit keep this manageable. Read the source before you install am, because most plugins small enough to read within ten minutes. Pin the exact version or commit instead of tracking branch. Run the harness under user wey no own anything else, for VPS wey you go dey willing to rebuild. Give the agent e own API key with e own spending limit, separate from the key wey your production services dey use. When you sit down to read plugin and you wan know which files carry the risk, the walkthrough for vetting dsh plugin dey go through the manifest, the entry point, and the extension points wey plugin register.

If you prefer compare designs before you commit to one, the Omnigent multi-agent harness answer the same problem with different structure, and the trade-offs go clear once plugins enter the picture. If you later keep two or three of dem for the same box instead of picking one winner, putting every harness behind one self-hosted API go save you from one tunnel per port, but you go need bind one more service to loopback and give am real password from day one.

Wetin fit spoil first

Node too old. The project main branch and 0.2.2-alpha.2 need Node 24.9 or newer. The CI tests Node 24, plus compatibility check for Node 24.9 and Node 26. E no get anything for Node 22. Older tagged releases up to 0.2.1-rc.4 accept Node 22.19, but the project no longer builds with am. Older runtime go fail for startup because the code dey use syntax and APIs wey e no get. Run node --version before you do anything else.

Port 3080 don already dey use. E fit be second harness, old process, or another application wey dey use 3080 too. Find am with ss -tlnp | grep 3080, then stop am or start the harness for another place with dsh web --port 3180. --port belong to the web app, so e go come after web.

Browser no fit connect through tunnel. Confirm say you browse go 127.0.0.1, no be the server public address, because the forwarded port dey only for your laptop. Then confirm say the harness dey listen for the server, because SSH go set up the forward whether anything dey answer for the far end or not.

dsh plugin fail immediately. The command na wrapper around pnpm, so if pnpm binary no dey, e go stop before any plugin work start. For Node 25 and newer, na the default state be that, because Corepack no longer ships with Node.

Agent no fit see your project. Fresh Web UI no get workspace selected until you add one. The session composer no go available until you do that. The process dey use the directory wey e start from as the default filesystem location only. So if unit WorkingDirectory dey your home directory, agent go point to your home directory. Choose the workspace for the UI, or correct the unit and reload am.

FAQ

E safe to expose DeepSeek Harness web UI for port 3080?

No. For the pinned 0.1.0-rc.6, web server no get login of im own, and the agent wey dey behind am fit edit files and run shell commands as the user wey start the process, while your provider API key dey stored for that same disk. From 0.2.0-rc.2 onward, including 0.2.1-rc.2, npm's latest release for 27 October 2026, and the newer 0.2.2-alpha.2 prerelease, the startup URL wey e print get launch token. Browser go exchange this token for session cookie, but plain HTTP go send that URL without encryption, so the advice no change. Keep the listener for 127.0.0.1 and reach am through SSH tunnel. Private overlay network, or reverse proxy wey authenticate every request before e reach the port, go work too. As of version 0.1.0-rc.6, the CLI dey reject --host 0.0.0.0 and exit with usage error. 0.2.2-alpha.2 still reject am too, and this show wetin the authors think about the idea.

I need DeepSeek API key, or I fit use local model?

Either one go work, because the harness na runtime, no be model. Under Settings and then Models, you fit paste key inside the DeepSeek card or catalog provider. You fit also choose "Add model provider", then "Custom model API", and give am base URL wey speak OpenAI Chat Completions, OpenAI Responses, or Anthropic Messages. Local Ollama server dey answer for http://127.0.0.1:11434/v1/ and e accept any string for the API key field. Keys dey enter $DSH_HOME/.credentials.yaml, wey default to ~/.dsh/.credentials.yaml.

Wetin installing DeepSeek Harness plugin actually give the plugin?

The permissions of the account wey dey run the harness. Plugin na Node code wey load for the same process. The extension points include shell backend, filesystem layer, tool registry, and events wey wrap every tool call. Nothing sandbox plugin away from those seams unless the plugin provide the sandbox by itself. Read the source before you install am, and run the harness as user wey no own anything wey matter to you.

Which version I suppose install, and e go continue to work?

Install exact version, for example npx @deepseek-ai/dsh@0.1.0-rc.6 web. Na the August 2026 version pinned here. For 27 October 2026, latest point to 0.2.1-rc.2 and next point to 0.2.1-rc.4. For 29 October 2026, GitHub list both 0.2.1-rc.4 and the newer 0.2.2-alpha.2, wey dem release for 28 October, with 0.2.2-alpha.2 requiring Node 24.9 or newer. The project call itself developer preview and talk say compatibility-breaking changes dey expected. So, command wey no get pinned version fit behave differently from one day to the next. Check the repository before you upgrade, and expect config keys and plugin interfaces to change while the version still start with 0.

Dis article help you?