AI Tools
●11 min read●November 30, 2026●Updated November 30, 2026

DeepSeek Harness Setup: Install, Login, 24/7 Server

DeepSeek Harness setup tested on Windows 11 and a Linux server: Node 24.9+, one npx command, a 7 minute first start, 1.5 GB of cache and a systemd unit file.

Paras Tiwari
Paras TiwariFounder, Spectrum AI Labs
DeepSeek Harness Setup: Install, Login, 24/7 Server

Get weekly AI tool reviews

We test tools so you don't have to. No spam.

TL;DR

DeepSeek Harness needs Node.js 24.9 or newer. Run npx @deepseek-ai/dsh web, wait for the server to print a link that ends in a token, and open that link in your browser. Then sign in with a DeepSeek account or add a DeepSeek API key. On my Windows 11 PC the first start took about 7 minutes and the npm cache used about 1.5 GB of disk. The software is MIT licensed, DeepSeek bills the model use, and light use on my Linux server came to about $0.10 by my own math.

On November 30, 2026 I installed DeepSeek Harness fresh on a Windows 11 PC and went through every screen up to the model. I've also run it on my own Linux server since early November. I entered no key on the Windows PC, so no task ran there. Everything about running tasks comes from the server.

DeepSeek Harness setup: what you need

The command is dsh. The code is on GitHub at deepseek-ai/deepseek-harness under the MIT license. The README calls it a developer preview and warns that compatibility-breaking changes will happen. On npm, the latest tag of @deepseek-ai/dsh is 0.2.2-rc.5, a release candidate from November 18. The alpha tag is 0.2.3-alpha.3 from November 28. I wouldn't call any of them stable.

The latest version asks for Node.js 24.9.0 or newer in its engines field. The alpha asks for a newer one: 24.22.3 or later within Node 24, or 26.13.1 or newer.

DeepSeek Harness routes and what each needs

RouteCommand or downloadGood forNeeds
Web UI via npxnpx @deepseek-ai/dsh webA browser chat on 127.0.0.1:3080Node.js 24.9 or newer
Desktop appdeepseek.com/downloadA normal installed appApple silicon Mac or Windows x64 build, per the download page. Not tested by me
From sourcegit clone, pnpm install, pnpm run build, pnpm dsh webReading or changing the codegit, pnpm and Node.js. The master branch asks for 24.22.3 or later within Node 24, or 26.13.1 or newer
CLI profilesdsh --profile headless, sdk, sdk-minimal or acpOne-off jobs, scripts, editorsThe dsh command
Python SDKpython -m pip install deepseek-harness-sdkDriving the harness from PythonPython 3.10 or newer

Source: DeepSeek Harness README, apps/cli README, python-sdk guide and the download page. Checked November 30, 2026

For the Windows test I used the web UI from npx.

DeepSeek Harness install on Windows 11

My PC already had Node.js 24.22.1.

  1. Check your Node version.
node --version
  1. Run the install command. The README form is below.
npx @deepseek-ai/dsh web
  1. Answer the npx prompt. A plain run first asks "Ok to proceed?" before it downloads the package. I passed --yes and never saw that prompt, so I can only report that it exists.

  2. Wait for the address to print. My exact command, in an empty folder, with a throwaway harness home and npm cache, was this.

npx --yes @deepseek-ai/dsh@0.2.2-rc.5 web --no-open

The first start took about 7 minutes until the server printed its address. That was one run on my connection, and it includes the download. Afterwards the npm cache folder held about 1.5 GB in 98,351 files. That's disk used, not the size of the download. The only warning was an npm deprecation notice for node-domexception. I deleted everything after the test.

By default the server listens on http://127.0.0.1:3080 and, on a local launch, opens your default browser. --no-open stops the browser from opening.

When the server starts, it prints one line.

dsh web: http://127.0.0.1:3080/?token=...

That token is a process credential. When I opened the plain address without it, I got HTTP 401. The docs say "The printed URL carries a process credential, so share it only with intended users." Opening the full link swaps the token for a session cookie, and after that your browser stays in.

The token decides who can open the page. Your DeepSeek key or account comes later, inside the app. If you lose the link, it's still in the server's output or log.

DeepSeek Harness login: account or API key

The first screen after the launch link is a Preview Notice.

DeepSeek Harness Preview Notice on first launch saying version 0.2 is still in preview, with a Continue button
The first screen on a fresh install on my Windows 11 PC.

It says "DeepSeek Harness 0.2 is still in preview" and has a Continue button. The next box reads "Sign in to your DeepSeek account or add an API Key to get started. Your projects and files are stored locally."

Get started box offering Add API Key or Sign in with a DeepSeek account, noting that projects and files are stored locally
Right after the notice: sign in with a DeepSeek account or add an API key.

Add API Key opens a dialog titled "Add an API key to get started". It says "Configure the official DeepSeek provider to start building." The buttons are Configure later and Save and continue.

Add an API key to get started dialog with an empty API key field and Configure later and Save and continue buttons
Add API Key opens this dialog. I left the field empty on the test install.

Sign in is the other route, and it's also under the More menu at the bottom left. It shows "Waiting for sign in" and opens a DeepSeek Platform page at platform.deepseek.com. That page says "Signing in grants it access to DeepSeek models through your account." It also warns that modified or untrusted clients "may misuse your credentials and incur unauthorized charges." I did not complete the sign-in, so I can't tell you what the account route costs or how it bills.

Waiting for sign in dialog with a Copy sign-in link option and a Cancel button
After choosing Sign in, the app shows this Waiting for sign in dialog.

I'd use an API key. With a key you pay per token at DeepSeek's published prices, and those are the numbers I've measured against on my server. That's my preference, and the docs don't say one route is better.

A key saved in the app lives in $DSH_HOME/.credentials.yaml, and the home folder is ~/.dsh unless you set DSH_HOME. The providers guide says "Keys are write-only", and the page only gets a redacted descriptor. You can skip the app entirely and set DEEPSEEK_API_KEY in the environment. Behind a proxy, set HTTPS_PROXY or HTTP_PROXY, which the harness reads at launch. A project's own .env can't set proxy variables, but ~/.dsh/.env can hold variables next to your key.

Settings and other model providers

Settings sits under the More menu at the bottom left. The tabs are General, Models, Built-in plugins and Agent presets, plus an Open configuration file button. General holds the default Permission, which was Workspace Write, along with Language, Appearance, Font size and Work details. It also has "Show coding view", which the page describes as showing the trajectory, code diffs and all Agent presets. It was switched on in my install.

Settings Models tab with the DeepSeek card, an empty API key field and a warning that DEEPSEEK_API_KEY was not detected
Settings, Models: leave the field empty and it reads DEEPSEEK_API_KEY from the environment instead.

The Models tab has a DeepSeek card named deepseek-official with one API key field. With no key and no variable, it said "Env var not detected. Enter an API key, or configure DEEPSEEK_API_KEY in your env."

The "Add model provider" form has two tabs. The Third-party model provider tab lists 42 built-in providers, among them anthropic, openai, google, openrouter, groq, xai, mistral, moonshotai, zai, amazon-bedrock and github-copilot. The Custom model API tab takes any OpenAI Chat Completions, OpenAI Responses, Anthropic Messages or Gemini endpoint, according to the providers guide. I haven't added any provider other than DeepSeek.

Add model provider form on the Third-party model provider tab with amazon-bedrock selected and a Custom model API tab beside it
Add model provider: pick a provider from the built-in list, or switch to Custom model API.

On my server the model menu shows DeepSeek-V4.1-Flash and DeepSeek-V4-Pro, with an effort level next to them. On the Windows install it only said "Select model", because no key or sign-in existed. For model names and prices, the DeepSeek V4 guide goes through them.

DeepSeek Harness model picker with deepseek typed in its search box, listing DeepSeek-V4.1-Flash (ticked) and DeepSeek-V4-Pro, and the composer below showing DeepSeek-V4.1-Flash at Max
The model picker with the two DeepSeek models. The composer below it shows the effort level, Max.

The workspace folder: docs and my screen differ

The docs say the folder you launch from is the default workspace root. They also say a fresh Web UI has no workspace selected until you add one with Choose workspace.

My Windows install showed something else. The composer already had "Default workspace" selected, with "Standard mode", "Workspace Write" and "Select model" next to it. Its session record pointed at a folder named deepseek-harness-default-workspace in my Documents folder. That folder didn't exist yet when I checked. I'm reporting what I saw. I never used the Choose workspace step, so I can't confirm it.

Running coding agents on real work? Get a practical setup that wastes less of your limit.

Get the Claude Code setup

Permission modes

There are three modes: Read Only, Workspace Write and Full access. The web UI asks before operations that need approval under the active policy. Workspace Write was the default on my fresh install, and it's what I leave on.

DeepSeek Harness permission menu with Read Only, Workspace Write and Full access
The three permission modes in the composer.

DeepSeek Harness CLI and the Python SDK

The web UI is one profile of the dsh command. The apps/cli README lists the others, and docs/cli-help.md has the flags. The invoking directory is the default workspace root for all of them.

dsh --profile headless "your job"
dsh --profile headless --json "your job"
dsh --profile sdk
dsh --profile acp

Headless runs one task, prints the final answer and exits. --json prints run events instead. A - or a pipe reads the task from stdin. --permission-mode takes a preset, and --approval-policy takes ask or never. The sdk and sdk-minimal profiles speak JSON-RPC over stdio. The acp profile speaks the Agent Client Protocol, for editors and automation clients.

For dsh web, the flags are --host, --port, --no-open, --public-url, --trusted-host, --tls-cert and --tls-key. --host takes one concrete local address and rejects wildcard addresses. --port 0 lets the OS pick.

The Python SDK installs with python -m pip install deepseek-harness-sdk. It needs Python 3.10 or newer and lists Linux x64 and arm64, macOS 14 or newer on arm64, and Windows x64. I haven't used it.

DeepSeek Harness desktop

I did not test the desktop app, so this part comes from DeepSeek's pages. The download page at deepseek.com/download offers two DeepSeek Harness builds: macOS for Apple silicon (macOS 13 or later, a .dmg) and Windows (the file name says x64, an .exe). It lists no Intel Mac, Windows ARM or Linux build. It shows no version number, file size or Windows requirement. It says the desktop client supports background running and local file read and write, and that the current version is still being iterated on.

The desktop README adds two things. Desktop can optionally register a dsh terminal command. On Windows, closing the window hides it to the tray while tasks keep running.

Plugins and automation tasks

The README describes an "everything-is-a-plugin architecture", built on Cordis. The Plugins page on my server lists Subagent, Web search and fetch, Agent loop and Shell as built-ins. The experimental ones are Voice input, Custom plugin indexes, Auto authorization review, Change requests and worktrees, and Session search.

DeepSeek Harness Plugins page with built-in plugins Subagent, Web search and fetch, Agent loop and Shell, and experimental plugins including Voice input and Session search
The Plugins page, with built-in and experimental plugins.

You add a plugin package to a profile from the terminal.

dsh plugin --profile NAME add PACKAGE

That forwards to pnpm. The README asks plugin authors to add the dsh-plugin topic to their GitHub repos. Switching on Custom plugin indexes adds a Discover tab, but "DSH ships no index source", so you add an index URL yourself. The docs say "Indexes are third-party content", and installs need a confirmation. I haven't installed any plugin.

The web profile also has an Automation tasks page for scheduled reminders. You ask the model to create, list, edit, pause or delete a reminder with a repeat rule, such as every weekday at 09:00.

Running it 24/7 on a Linux server

Since early November I've run it as a background service on my own Linux server, under its own Linux user with memory and CPU caps. It isn't open to the public internet. I read the browser login link from the service log once, and my browser has stayed signed in since. On November 30 I upgraded from 0.2.1-rc.5 to 0.2.2-rc.5, and the restart was clean. I'm keeping my exact network setup, paths and limits private.

Install the package into its own folder instead of running npx at every start. Make a user called agent, then run these as that user.

npm install --prefix /home/agent/harness @deepseek-ai/dsh
mkdir -p /home/agent/projects

The projects folder has to exist, because the unit uses it as the working directory. Back on an account with sudo, put your key in an environment file that only root can read. Systemd reads it as root. The first command creates the file empty with root-only permissions, and the second opens it in an editor, so the key never lands in your shell history. Add one line, DEEPSEEK_API_KEY=your-key.

sudo install -m 600 /dev/null /etc/deepseek-harness.env
sudoedit /etc/deepseek-harness.env

Save this as /etc/systemd/system/deepseek-harness.service. It's an example to adapt, and it shares nothing with my own unit.

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

[Service]
User=agent
WorkingDirectory=/home/agent/projects
EnvironmentFile=/etc/deepseek-harness.env
Environment=PATH=/usr/local/bin:/usr/bin:/bin
ExecStart=/home/agent/harness/node_modules/.bin/dsh web --no-open --host 127.0.0.1 --port 3080
Restart=on-failure

[Install]
WantedBy=multi-user.target

The dsh file starts with #!/usr/bin/env node, so Node has to be on the service PATH. That's what the Environment=PATH line is for. My own unit also has memory and CPU limits. I left them out here, because the numbers depend on the machine.

Then start it and read the login link.

sudo systemctl enable --now deepseek-harness
sudo journalctl -u deepseek-harness

To reach it from your own computer, open an SSH tunnel and then the printed link.

ssh -N -L 3080:127.0.0.1:3080 user@server

I checked this path on November 30 with a throwaway instance: a separate harness home, a spare port, bound to 127.0.0.1, removed afterwards. Through an SSH tunnel, the address without the token returned 401. The token link returned a 303 redirect and set a session cookie. The plain address then returned 200. I ran systemd-analyze verify on the unit too, and its only complaint was that the example program path doesn't exist on my test machine.

Don't open the port to the internet. If you do want a public URL behind a reverse proxy, the docs require --public-url plus --trusted-host, and TLS. They also say to "restrict the port to the trusted proxy or network."

Cost

The software is free. DeepSeek bills the model, either per token on your own key or through your account. DeepSeek's prices per 1M tokens are below, shown as off-peak and then peak.

DeepSeek API prices per 1M tokens, off-peak and peak

ModelCache hitCache missOutput
deepseek-flash$0.003 / $0.006$0.15 / $0.30$0.60 / $1.20
deepseek-v4-pro$0.022 / $0.044$0.66 / $1.32$1.98 / $3.96

Source: DeepSeek API pricing page, checked November 30, 2026. Peak is 01:00 to 04:00 and 06:00 to 10:00 UTC Monday to Friday, except Chinese public holidays

Each answer in the web UI shows a cost estimate and a token count. One of mine showed about $0.0072. Over 4 sessions and 29 messages of light use on deepseek-flash at Max, the total came to about $0.10. I got that by writing a small script that reprices the tokens from the session logs, so it's my math and not an invoice.

For per-job numbers, the earlier DeepSeek Harness vs Claude Code test has the details. A small coding job there cost between about half a cent and 1.2 cents on deepseek-flash off-peak. For other models, the AI API price index lists the rates.

Safety

I won't call DeepSeek Harness secure. SAFETY.md says "It has not undergone a security audit and must not be treated as secure or production-ready." It also says "Sandboxing, approval prompts, and permission controls can reduce risk, but they do not guarantee isolation or prevent damage."

Its responsible use list says to use least privileges, keep backups, and review plugins and proposed commands. It also says "Prefer a disposable virtual machine, container, or dedicated environment."

On my server, shell commands ran under Landlock, a Linux kernel sandbox feature. The log said "partial enforcement (older Landlock ABI)", so part of that protection isn't active on my kernel. That's why the separate user and the private network matter to me. The printed link is a credential too, so I treat it like a password.

What I'd do differently

On Windows I'd enter a key and run a real task, which I didn't do. The model picker, permission menu and Plugins screenshots in this guide came from my Linux server, and I can't say how the Windows version behaves once a model is attached. I'd also try the desktop app and the Python SDK, since I've only read about both.

For the install itself, I'd pin the version in the command, as I did with 0.2.2-rc.5. The README warns of breaking changes and the latest tag is a release candidate, so an unpinned run could change under me. On a server I'd go straight to the own-folder install and the unit file above, so the version only changes when I update it.

Sources

All pages were checked on November 30, 2026. Install timings and disk numbers are from one run on my own PC and connection.

FAQ

Is DeepSeek Harness free?

Yes, the software is MIT licensed. DeepSeek charges for the model, per token on an API key or through your DeepSeek account. In my earlier test a small coding job cost about half a cent to 1.2 cents, by my own math.

How do I log in to DeepSeek Harness?

Open the link that dsh web prints, the one ending in a token. Then sign in with a DeepSeek account or add an API key in the app.

Does DeepSeek Harness need an API key?

Not necessarily. The app also offers sign-in with a DeepSeek account, which I didn't complete. On a server I'd use a key in the DEEPSEEK_API_KEY environment variable.

Does DeepSeek Harness run on Windows, Mac and Linux?

The web UI needs Node.js 24.9 or newer. I've installed and started it on Windows 11 and run tasks on Linux, not on macOS. The download page lists desktop builds only for Apple silicon Macs and Windows x64.

Is there a DeepSeek Harness desktop app?

Yes, for Apple silicon Macs on macOS 13 or later and for Windows x64, at deepseek.com/download. The page lists no Linux build. I haven't tested it.

How do I run DeepSeek Harness on a server?

Install the package for a separate Linux user and run dsh web on 127.0.0.1 as a systemd service, with the key in a root-only environment file. Then reach it through an SSH tunnel, not an open port.

Is DeepSeek Harness safe to run?

DeepSeek's SAFETY.md says it hasn't had a security audit and shouldn't be treated as secure. Give it as few permissions as you can, ideally on a spare machine or in a container.

Where does DeepSeek Harness store my API key?

In .credentials.yaml inside the harness home, which is ~/.dsh unless you set DSH_HOME. You can skip that and set DEEPSEEK_API_KEY in the environment.

Paras Tiwari
Written by
Paras Tiwari
Founder, Spectrum AI Labs

Founder of Spectrum AI Labs, testing AI tools and models, and writing up what actually ships.

More about Paras →

Stay ahead of the AI curve

We test new AI tools every week and share honest results. Join our newsletter.