SysArt
Book a briefing
SysArt

Private LLMs and RAG

DeepSeek Harness (dsh): Install, Models, Plugins and Safety

DeepSeek Harness (dsh) explained: how to install it, which models and plugins it supports, where session logs go and how to evaluate it safely in Europe.

Last reviewed by SysArt AI Architecture Team11 min readHow we review

In short

DeepSeek Harness (dsh) is DeepSeek's open-source, MIT-licensed agent harness, released in August 2026 as a developer preview. Every part is a plugin, and it works with DeepSeek's API, other providers or self-hosted models. Its own safety notice says it is not production-ready, and by default it uploads session logs with DeepSeek API requests, so evaluate it in isolation.

Key takeaways

  • DeepSeek Harness is an MIT-licensed agent harness from DeepSeek, run with the dsh command. As of 13 November 2026 every published version is an alpha or release candidate, and its safety notice says it has not had a security audit.
  • It defaults to DeepSeek's API but supports providers such as Anthropic, OpenAI, Kimi and GLM, and any endpoint that speaks the OpenAI, Anthropic Messages or Gemini API protocols, including self-hosted models on vLLM or Ollama.
  • With DeepSeek's official API, the harness uploads the session log and the list of active plugins alongside its requests by default. DeepSeek's policy says it processes and stores personal data in China and may use inputs for training unless you opt out.
  • Feedback such as a message rating uploads the session log to the harness's telemetry collector whatever model you use, and the default web search calls DeepSeek's Search API when DeepSeek credentials are present, so close these paths for a self-hosted setup.
  • The sandbox confines file writes, not reads or network access, and plugins run inside the harness process, so evaluate it in a disposable virtual machine or container with restricted egress and an allow-list of plugins.
A climber clips a blue rope to a carabiner on a climbing harness in front of a climbing wall

What is DeepSeek Harness?

DeepSeek Harness is an open-source agent harness from DeepSeek, run with the dsh command. It is written in TypeScript, released under the MIT licence and has been a developer preview since August 2026.

An agent harness is the software that turns a language model into an agent. In DeepSeek Harness, the agent reads and edits workspace files, runs commands, keeps a plan and delegates work to subagents.

Its defining design is that everything is a plugin. Built on the Cordis framework, the harness treats the model adapter, the tool registry, the session log and even the agent loop as plugins that configuration can replace. Profiles bundle plugins for each surface: web for the browser interface, headless for single tasks, sdk for the TypeScript and Python software development kits, and acp for automation clients that speak the Agent Client Protocol. DeepSeek has also reported coding-agent benchmarks for its V4 models run in the harness’s minimal mode.

It is popular and young. The GitHub repository showed about 280,000 stars on 13 November 2026, yet every version on npm is an alpha or a release candidate, and the README warns of compatibility-breaking changes. External pull requests are not accepted yet; bug reports go to GitHub Discussions.

How do you install and run DeepSeek Harness?

Install Node.js 24.9 or later and run one command. The web interface starts at http://127.0.0.1:3080 and opens in your browser.

npx @deepseek-ai/dsh web

Enter a model key under Settings → Models, add the project folder as a workspace and start a session.

Other options:

  • Global install. npm install -g @deepseek-ai/dsh@<version> adds dsh to your path, and dsh headless "run the tests" answers one task and exits. On 13 November 2026, npm’s latest tag pointed to 0.2.2-rc.1. The command line runs on macOS, Linux and Windows, where it uses PowerShell instead of bash.
  • From source. Clone the repository and run pnpm install, pnpm run build and pnpm dsh web.
  • Desktop. DeepSeek offers DeepSeek Harness Desktop for macOS on Apple silicon and 64-bit Windows and, as of 13 November 2026, no Linux build. It wraps the same interface in Electron and can install the dsh command. Unlike the web interface, it sends product usage events by default, with no switch in the interface; its documentation says these exclude prompts, responses and keys.
  • Python. pip install deepseek-harness-sdk installs the SDK with its own runtime, so no system Node.js is needed.

By default the web interface listens only on the loopback address, and its printed URL carries a launch token, so share it carefully. Remote access needs TLS and an explicitly trusted host name, typically through a reverse proxy.

How do DeepSeek Harness plugins work?

A plugin is an npm package or Git repository that adds or replaces part of the harness. Install it from the Plugins page or with dsh plugin --profile web add <package>, which runs pnpm in that profile’s directory. Plugin code runs inside the harness process, outside the workspace sandbox.

Four details matter for governance:

  • Discovery is community-led. DeepSeek asks authors to tag repositories with the dsh-plugin GitHub topic. An experimental Discover tab browses plugin indexes, JSON catalogues that anyone can publish; the harness ships with none and checks an index’s format, not its claims.
  • The agent can install plugins. Its plugin_manager tool is enabled in the Standard and Creator presets, with approval required for each call unless the session has full access.
  • MCP servers are off by default, because each Model Context Protocol server command is executable code outside the sandbox.
  • Official bundles reach other agents. Optional bundles run Codex or Claude Code as subagents.

Treat every plugin as third-party code with the harness’s privileges: review it, pin its version and allow only what you have approved.

Which models and APIs can DeepSeek Harness use?

By default it calls DeepSeek’s official API with the deepseek-flash model, using an API key or a signed-in DeepSeek account. It also ships connections for providers such as Anthropic, OpenAI, Moonshot AI (Kimi) and Z.ai (GLM), and accepts any custom endpoint that speaks the OpenAI Chat Completions, OpenAI Responses, Anthropic Messages or Gemini API protocol.

Third-party and custom providers run through pi-ai, the MIT-licensed model library of the pi agent toolkit. A custom endpoint can be a company gateway, an EU-hosted provider or your own inference server, and the route decides where data goes:

RouteWhere prompts, code and session logs goWhat to check
DeepSeek’s official API (default)DeepSeek, whose policy says it processes and stores personal data in China; by default the session log and plugin list go tooGDPR transfer rules, training opt-out, upload settings
Another hosted provider, including EU-hosted servicesThat provider, in the region and under the contract you chooseData processing agreement, region, retention and training terms
Self-hosted open-weight modelYour own servers, ideally through your gatewayModel licence, GPU capacity, tool-call support, egress rules that stop hosted fallbacks

For automation, the sdk profile exposes the agent to TypeScript and Python programs over JSON-RPC.

Can DeepSeek Harness run local models with Ollama?

Yes. Ollama configures the harness for a local model in one command, and any inference server with an OpenAI-compatible API, such as vLLM, works as a custom model API. The real work is keeping every request local.

  • Ollama. ollama launch dsh --model <model> installs @deepseek-ai/dsh if needed and stores its settings in ~/.ollama/launch/dsh/settings.yaml. Names ending in :cloud, such as the deepseek-v4-flash:cloud example in Ollama’s documentation, run on Ollama’s cloud service, and the integration’s web search needs that cloud too.
  • vLLM or a gateway. Add a Custom model API under Settings → Models with the base URL, protocol and model IDs; vLLM serves both OpenAI-compatible and Anthropic-style endpoints. For DeepSeek V4 behind an OpenAI-compatible gateway, set compat.thinkingFormat: deepseek on the model so that turning reasoning off works.
  • DeepSeek’s open weights. DeepSeek publishes its V4 models, such as DeepSeek-V4-Pro-0813, on Hugging Face under the MIT licence; they need multi-GPU servers. Our comparison of the best open-weight LLMs in 2026 covers sizes and alternatives, and our guide to open-weight model licences explains what to check.
  • Close the side doors. Even with a local model, the default web search calls DeepSeek’s Search API whenever a DeepSeek key or sign-in is available, and sends the first 128 characters of the prompt that triggered it. Remove DeepSeek credentials, switch off or replace web search, and block outbound traffic except to your model server.

Where does DeepSeek Harness send prompts, code and session logs?

To the model endpoint you choose, to your local disk and, unless you change the defaults, to DeepSeek through documented upload paths. Each upload can be switched off.

On disk. Each session is an append-only log of prompts, model output, tool calls and results, including file contents and command output. The harness keeps these logs as Zstandard-compressed files under $DSH_HOME/sessions (~/.dsh/sessions by default) and saved keys in $DSH_HOME/.credentials.yaml. The configuration reference sets no retention period, so plan deletion yourself.

With DeepSeek’s official API. Requests carry your prompts, code and tool results. By default the harness also attaches the session log, in increments of up to 8 MiB per request, the names and versions of active plugins and an anonymous installation ID. The documentation says the log can expose the working directory, system prompts, user and assistant messages, tool arguments and results, and feedback. Turn the session-log upload off under Settings → General, or both uploads in configuration; a home-level cordis.patch.yml outranks the profile’s file and the settings form:

- id: session-log-deepseek
  config:
    enabled: false
- id: plugin-package-inventory-deepseek
  config:
    enabled: false

After feedback. Rating a message or sending feedback uploads the session log up to that point, including context and without built-in redaction, to the harness’s telemetry collector (dsh-otel-collector.deepseeksvc.com by default), whatever model the session uses. DSH_TELEMETRY_MODE=DISABLED stops it but does not affect the API upload.

DeepSeek’s privacy policy for the harness, updated on 20 September 2026, names Hangzhou DeepSeek Artificial Intelligence Co., Ltd. as data controller, says it collects, processes and stores personal data in the People’s Republic of China, and allows inputs and outputs to be used for model training unless you opt out. For custom models, it says the harness does not store or process inputs and outputs on DeepSeek’s servers; check the feedback upload, which the repository documents for every provider, against that statement.

What does the GDPR mean for DeepSeek Harness in Europe?

Sending personal data in prompts, code or logs to DeepSeek’s hosted API transfers it to China, a third country under Chapter V of the GDPR. Running the harness with a self-hosted model, and with the DeepSeek paths closed, avoids that transfer, although the GDPR still applies to the logs you keep.

The European Commission has adopted no adequacy decision for China (checked 13 November 2026). A transfer therefore needs an Article 46 safeguard, such as standard contractual clauses, backed by an assessment of the law and practice in the destination country, or one of the narrow Article 49 derogations. The European Data Protection Board’s Recommendations 01/2020 set out how: map the transfer, verify the tool, assess the destination’s law and practice, and add supplementary measures where needed. Because the policy names DeepSeek as controller and reserves training use, also check your lawful basis and client contracts. Our guide to GDPR-compliant LLM deployment covers lawful basis, processor contracts and transfers.

Regulators have already acted on DeepSeek’s consumer service. On 30 January 2025, Italy’s Garante ordered an immediate limitation on processing the personal data of people in Italy by the two Chinese companies behind the DeepSeek chatbot, opened an investigation and rejected their view that the GDPR did not apply. On 27 June 2025, Berlin’s data protection commissioner reported the DeepSeek app to Apple and Google as unlawful content under the Digital Services Act, because DeepSeek had not shown that German users’ data received protection in China equivalent to the EU’s. Both cases concern the app, not the harness, but they show how authorities assess transfers to DeepSeek’s hosted services.

With a self-hosted model, session logs still hold personal data: set retention, restrict access and record the processing. This article is not legal advice; obligations depend on your use case and role.

Is DeepSeek Harness safe for enterprise use?

Not for production yet, by its makers’ own account: its safety notice says it has not had a security audit and should not be treated as secure or ready for production. You can evaluate it with acceptable risk in an isolated environment, with approved models, pinned versions and the DeepSeek uploads switched off.

The risks are specific:

  • Commands run with real access. The default workspace-write preset confines file writes to the workspace and temporary folders, through bwrap or Landlock on Linux, Seatbelt on macOS and a restricted token on Windows, and asks before risky actions. It does not confine reads or network access, and web fetches need no per-call approval.
  • Approvals can be removed. The danger-full-access preset and the sdk-minimal profile run without them.
  • Extensions sit outside the sandbox: plugins in the harness process, MCP servers as separate programs.
  • The supply chain is pre-release. The CLI package has about 90 direct dependencies. On 13 November 2026 the npm registry showed no provenance attestations for the current release candidates, and the repository had no security policy file or published advisories.
  • Logs hold secrets, including file contents, command output and credentials.

For an evaluation, apply these controls:

  1. Isolate. Use a disposable virtual machine or container with a test repository, backups and no production credentials, as the safety notice advises.
  2. Pin and mirror. Install an exact version from an internal npm mirror, record its integrity hash and review each upgrade.
  3. Restrict egress. Allow outbound traffic only to your model gateway and package mirror. The harness honours HTTPS_PROXY and NO_PROXY, but its telemetry exporter connects directly, so enforce the rules in the network.
  4. Switch off unapproved uploads. Disable the session-log and plugin-inventory contributions and set DSH_TELEMETRY_MODE=DISABLED.
  5. Allow-list extensions. Disable the agent’s plugin_manager tool, keep plugin indexes off or internal, and approve MCP servers one by one.
  6. Govern logs. Set retention for $DSH_HOME/sessions, encrypt disks and limit access.

Our guide to AI coding agents in the enterprise covers the controls and EU duties that apply to any coding agent.

DeepSeek Harness vs Claude Code, Codex and OpenCode: what is the difference?

All four turn a model into a coding agent; they differ in maturity, licence, model choice and default data flows.

  • Claude Code is Anthropic’s agent. Anthropic does not support routing it to non-Claude models, so the model runs at Anthropic or at a cloud provider under the terms you agree.
  • Codex is OpenAI’s coding agent; its command-line client is open source under the Apache 2.0 licence.
  • OpenCode is MIT-licensed, discovers local Ollama, LM Studio and vLLM servers and accepts any OpenAI-compatible server; our guide to OpenCode with local models shows the setup.
  • DeepSeek Harness is MIT-licensed, plugin-based and works with many models, but it is a developer preview whose defaults favour DeepSeek’s API and uploads. Optional bundles let it hand tasks to Codex or Claude Code.

For Hermes Agent, the MIT-licensed agent from Nous Research, see our Hermes Agent article.

If code must stay on your infrastructure, pair an open-source harness with a self-hosted model and decide on maturity, controls and your own evaluation. Today DeepSeek Harness is a candidate to test, not yet a standard to deploy.

How SysArt helps

SysArt helps organisations evaluate and run coding agents such as DeepSeek Harness on infrastructure they control: self-hosted open-weight models behind an OpenAI-compatible gateway, isolated execution environments with restricted egress, plugin allow-lists and the logging and retention controls around them. We work with the models and tools that fit your stack, implement on your premises, in your sovereign cloud or in a dedicated EU environment, and then hand over with runbooks or operate the platform. See how we deliver private LLM platforms.

Featured image by Vitaly Gariev on Unsplash.

Frequently asked questions

What is DeepSeek Harness?

DeepSeek Harness is an open-source agent harness from DeepSeek, released in August 2026 under the MIT licence. Started with the dsh command, it turns a language model into an agent that reads and edits files, runs commands, plans and delegates work through a web interface, a desktop app, a headless command line or an SDK. Every part, including the model adapter and the agent loop, is a replaceable plugin. It remains a developer preview.

How do I install DeepSeek Harness?

Install Node.js 24.9 or later, then run npx @deepseek-ai/dsh web. The web interface starts at http://127.0.0.1:3080. Add a model key under Settings, then Models, choose a workspace folder and start a session. You can also install the package globally with npm, build it from source with pnpm or use the Python SDK. For teams, pin an exact version, because every published version is still a pre-release.

Is there a DeepSeek Harness desktop app?

Yes. DeepSeek offers DeepSeek Harness Desktop for macOS on Apple silicon and for 64-bit Windows; as of 13 November 2026 its download page lists no Linux build. The app wraps the same web interface in Electron, works with a DeepSeek account or API keys and can install the dsh command. It sends product usage events by default, with device details but without prompts or responses.

Can DeepSeek Harness use local models with Ollama?

Yes. Run ollama launch dsh with a model that runs on your machine; Ollama installs the harness package if needed and writes its settings. Avoid model names ending in :cloud, which run on Ollama's cloud service, and note that the integration's web search also uses Ollama's cloud. For a shared GPU server, add vLLM or another OpenAI-compatible endpoint as a custom model API.

Does DeepSeek Harness send data to DeepSeek?

It depends on the configuration. With DeepSeek's official API, prompts and tool results go to DeepSeek, and by default the harness also uploads the session log and the list of active plugins. Feedback such as a message rating uploads the session log to the harness's telemetry collector whatever the model. DeepSeek's policy says it stores personal data in China. The extra uploads can be switched off, and other models avoid DeepSeek's API altogether.

Is DeepSeek Harness safe for enterprise use?

Not for production yet. Its own safety notice says it has not had a security audit and should not be treated as secure or ready for production. It runs model-generated commands and third-party plugins, and its sandbox limits file writes but not network access. Evaluate it in a disposable virtual machine or container with approved models, pinned versions, a plugin allow-list and the DeepSeek uploads turned off.

DeepSeek Harness vs Claude Code: what is the difference?

Claude Code is Anthropic's coding agent, and Anthropic does not support routing it to non-Claude models. DeepSeek Harness is an MIT-licensed open-source harness that defaults to DeepSeek's API but also accepts third-party and self-hosted models; optional bundles even let it delegate tasks to Claude Code. DeepSeek Harness is still a developer preview, so compare both on your own repositories, controls and data terms.

Sources

  1. DeepSeek: deepseek-ai/deepseek-harness repository on GitHub (README, MIT licence, SAFETY.md, CONTRIBUTING.md, dsh CLI reference, architecture, user guides and package READMEs; about 280,000 stars on 13 November 2026) · checked 13 November 2026
  2. DeepSeek Harness documentation: Official DeepSeek LLM API wire extensions (session-log and plugin-inventory fields, request headers) · checked 13 November 2026
  3. npm registry: @deepseek-ai/dsh package metadata (versions, dist-tags, licence, Node.js engine, dependencies) · checked 13 November 2026
  4. DeepSeek: DeepSeek Harness product page (preview status and desktop downloads) · checked 13 November 2026
  5. DeepSeek: DeepSeek Harness Privacy Policy (last updated 20 September 2026) · checked 13 November 2026
  6. DeepSeek: DeepSeek-V4-Pro-0813 model card and MIT licence on Hugging Face · checked 13 November 2026
  7. Ollama documentation: DeepSeek Harness integration · checked 13 November 2026
  8. Garante per la protezione dei dati personali: decision of 30 January 2025 limiting DeepSeek's processing of data of people in Italy (doc. web 10098477) · checked 13 November 2026
  9. Berlin Commissioner for Data Protection and Freedom of Information: press release on reporting the DeepSeek app to Apple and Google (27 June 2025) · checked 13 November 2026
  10. European Commission: Adequacy decisions · checked 13 November 2026
  11. European Data Protection Board: Recommendations 01/2020 on measures that supplement transfer tools, version 2.0 (adopted 18 June 2021) · checked 13 November 2026
  12. Anthropic: Claude Code documentation, Other LLM gateways · checked 13 November 2026

Related insights

Plan your private AI with people who build it

Book a briefing. We look at your use case, data and constraints, and you leave with the deployment options and governance steps that fit.