DeepSeek Harness
DeepSeek Harness (CLI/npm package @deepseek-ai/dsh, 290,478 GitHub stars, MIT license, v0.2.3-alpha.3) is DeepSeek AI's plugin-based agent runtime built on the Cordis spatiotemporal composability framework (arXiv:2608.25512). It decouples model adapters, tool loops, sandboxes, MCP connectors, append-only session logs, Web UI (:3080) and an Electron desktop shell, routing both official DeepSeek APIs and third-party OpenAI/Anthropic/OpenRouter/Ollama endpoints via @earendil-works/pi-ai.
Verified directly from repository source files, releases and public GitHub Issues as of Dec 3, 2026 (not a hands-on benchmark test).
What DeepSeek Harness does & who it is for
- Everything-is-a-plugin Cordis kernel (packages/llm, packages/sandbox, packages/mcp, packages/subagent, packages/team, packages/workflow, packages/browser-use, packages/computer-use) ships four built-in runtime presets — Standard, Code, Minimal and Creator — plus an append-only replayable session log and Git worktree review UI.
- Model-agnostic dual adapter architecture verified in packages/llm/README.md: official DeepSeek routes (dsh-llm-deepseek-api-key and dsh-llm-deepseek-account) run alongside @deepseek-ai/dsh-llm-pi-ai (@earendil-works/pi-ai ^1.3.0) with built-in provider entries (anthropic, openai, moonshotai, zai) and Custom Model API slots for OpenRouter, Ollama, vLLM or LiteLLM.
- Fast iterative surface across CLI (`npx @deepseek-ai/dsh web` at 127.0.0.1:3080, `dsh headless`, `dsh acp`, `dsh sdk`), Electron desktop (@deepseek-ai/dsh-desktop), and recent 0.2.3-alpha additions: Git-repo plugin market sources (v0.2.3-alpha.1, Nov 22) plus official Connectors tab for custom MCP servers, native Office/PDF preview, IM chat bots and voice I/O (v0.2.3-alpha.3, Nov 28, 2026).
Real limitations & caveats
- Experimental developer-preview software per SAFETY.md (never security-audited, breaking changes expected); two notable CVEs were disclosed in earlier 0.1.x builds — CVE-2026-82533 (CVSS 9.4 local HTTP Host-header auth bypass allowing sandbox elevation to danger-full-access, patched in 0.1.2-alpha.1) and CVE-2026-101132 (path traversal via dsh.bundle.patch in packages/boot/app-boot/src/profile.ts through 0.1.7-rc.2).
- Strict Node.js floor raised in dsh-v0.2.3-alpha.2 (Nov 22, 2026): package.json enforces Node ^24.22.3 || >=26.13.1 and pnpm@11.28.5, rejecting Node 20/22 or older Node 24 point releases during source builds or runtime boot.
- Public GitHub Issues are disabled on the repository (open_issues_count: 0); bug reports, plugin discovery (#dsh-plugin) and troubleshooting run through GitHub Discussions and release changelogs rather than an open issue tracker.
Install, requirements & model support
# Verify Node.js version first (^24.22.3 or >=26.13.1 required):
node -v
# Option 1: Zero-install Web UI (opens http://127.0.0.1:3080; add --no-open over SSH):
npx @deepseek-ai/dsh web
# Option 2: Single-shot headless task or plugin management:
npx @deepseek-ai/dsh headless "run the test suite and summarize failures"
npx @deepseek-ai/dsh plugin --profile web add <plugin-package>
# Option 3: Build from source (requires pnpm@11.28.5):
git clone https://github.com/deepseek-ai/deepseek-harness.git
cd deepseek-harness && pnpm install && pnpm run build && pnpm dsh web
Running cost & hardware note: DeepSeek Harness is free MIT-licensed software with no platform subscription; you pay only the underlying LLM API bill (or $0/token via local Ollama/vLLM). At a typical 10M input + 2M output monthly agent workload (uncached baseline), DeepSeek V4.1 Flash runs $2.70/mo on DeepSeek direct off-peak rates ($0.15/$0.60 per 1M; $5.40/mo peak at $0.30/$1.20; $0.60/mo on OpenRouter's lowest third-party host at $0.02/$0.20), compared with $22.80/mo on GLM-5.4 ($1.40/$4.40) or $80.00/mo on Claude Opus 5.5 ($4/$20, ~29.6× higher than direct off-peak Flash). Compare routes in our API Cost Calculator.
Common GitHub Issues & verified fixes
Release dsh-v0.2.3-alpha.2 (Nov 22, 2026) and root package.json raised engines.node to ^24.22.3 || >=26.13.1 (excluding Node 22.x and earlier 24.x builds). Upgrade Node via nvm or fnm to 24.22.3+ (or 26.13.1+) and use pnpm@11.28.5 when building from source.
Per docs/user/guide/providers.md, pi-ai sends reasoning system prompts as role: "developer" and caps output with max_completion_tokens on unrecognized endpoints. In $DSH_HOME/profiles/<profile>/cordis.patch.yml, set compat.supportsDeveloperRole: false and compat.maxTokensField: max_tokens (never leave a YAML compat switch empty). For DeepSeek V4 routes behind a third-party gateway where thinking "off" still reasons, add compat.thinkingFormat: deepseek.
Per docs/user/guide/network-proxy.md, DSH ignores OS GUI system-proxy switches and deliberately refuses proxy settings inside a cloned repo's .env. Export HTTP_PROXY and HTTPS_PROXY in your shell or $DSH_HOME/.env (or enable TUN mode), and replace CIDR blocks like 10.0.0.0/8 in NO_PROXY with hostnames or domain suffixes (localhost and 127.0.0.1 bypass automatically).
Over SSH, pass `--no-open` so your IDE/SSH client handles port 3080 forwarding instead of invoking a host browser. Always run v0.2.3-alpha.3+ (patching CVE-2026-82533 Host-header auth bypass fixed in 0.1.2-alpha.1 and CVE-2026-101132 profile path traversal affecting <=0.1.7-rc.2), and follow SAFETY.md by isolating untrusted repos inside a container or disposable VM.
Alternatives comparison
| Tool | Best for | Key difference vs DeepSeek Harness |
|---|---|---|
| Claude Code / OpenAI Codex CLI | Developers already paying for Claude Pro/Max or ChatGPT Plus/Pro who want managed zero-config CLI sandboxes | Proprietary/vendor-coupled harnesses tied tightly to Anthropic or OpenAI plans, whereas DeepSeek Harness is MIT-licensed, plugin-swappable via Cordis and brings your own DeepSeek, OpenRouter or local Ollama endpoints. |
| cmux | macOS developers orchestrating multiple existing CLI agents (Claude Code, Codex, OpenCode) side-by-side | cmux is a macOS-only libghostty terminal multiplexer wrapping external CLIs; DeepSeek Harness is the cross-platform agent runtime itself (Web UI, CLI, Desktop and SDK). |
| Unslop | Teams focused on pre-merge codebase review, dead-code detection and security auditing | Unslop targets automated PR/codebase hygiene checks, while DeepSeek Harness runs full multi-step coding, MCP tool, browser-use and subagent execution loops. |
Verification evidence
- README.md
- SAFETY.md
- package.json
- apps/cli/package.json
- apps/desktop/package.json
- packages/llm/README.md
- packages/llm/llm-pi-ai/package.json
- packages/llm/llm-deepseek-api-key/README.md
- docs/cli-help.md
- docs/user/guide/providers.md
- docs/user/guide/network-proxy.md
- docs/user/guide/desktop-uninstall-cleanup.md
- https://github.com/deepseek-ai/deepseek-harness
- https://deepseek-harness.github.io/deepseek-harness/
- https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.3-alpha.3
- https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.3-alpha.2
- https://github.com/deepseek-ai/deepseek-harness/blob/master/package.json
- https://github.com/deepseek-ai/deepseek-harness/blob/master/SAFETY.md
- https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/guide/providers.md
- https://github.com/deepseek-ai/deepseek-harness/blob/master/docs/user/guide/network-proxy.md
- https://github.com/deepseek-ai/deepseek-harness/discussions
- https://arxiv.org/abs/2608.25512
FAQ
Can DeepSeek Harness run non-DeepSeek models like Claude, GPT or local Ollama?
Yes. Alongside native DeepSeek routes, packages/llm/llm-pi-ai (@earendil-works/pi-ai) supports built-in providers including anthropic, openai, moonshotai (Kimi) and zai (GLM), plus Custom Model API entries for OpenRouter, Ollama, vLLM and LiteLLM gateways.
Where are DeepSeek Harness API keys and profile settings stored, and why are GitHub Issues empty?
Write-only API keys are stored in $DSH_HOME/.credentials.yaml (default ~/.dsh/.credentials.yaml) while route overrides live in $DSH_HOME/profiles/<profile>/cordis.patch.yml. Public GitHub Issues are closed on deepseek-ai/deepseek-harness; community bug reports and plugin discussions are handled via GitHub Discussions.