I ran DeepSeek Harness and Claude Code on the same DeepSeek model, deepseek-flash at max effort, for 12 runs on two small coding jobs. Both tools passed all 33 of 33 hidden checks. A job cost $0.0054 to $0.0123 on the harness and $0.0057 to $0.0111 on Claude Code, priced by me at DeepSeek's off-peak list price, so I can't call a cost winner from three runs each. Claude Code's own cost readout came out 42 to 48 times higher for the same tokens. This was Claude Code running a DeepSeek model, not Claude models, and Anthropic's docs say that setup isn't supported.
I ran DeepSeek Harness vs Claude Code on Monday, November 30, 2026, on the Linux server where I already keep DeepSeek Harness running as a private web chat. Both tools can drive DeepSeek's models, so I wanted to see whether the program wrapped around the model changes the result or the bill. On these two jobs it barely changed either.
What each tool is
DeepSeek Harness is DeepSeek's own agent runner, and its command is dsh. The GitHub repo was created on August 13, 2026 and had about 289,000 stars on November 30. The code is MIT licensed. Claude Code is Anthropic's, and its repo says "All rights reserved", so it isn't open source.
An agent runner is the program that lets a model read your files, run commands and edit code. DeepSeek Harness and Claude Code are both agent runners. The harness talks to DeepSeek directly, while Claude Code needs a setup from DeepSeek's docs, covered below.
DeepSeek Harness and Claude Code side by side
| DeepSeek Harness | Claude Code | |
|---|---|---|
| Made by | DeepSeek | Anthropic |
| License | MIT | All rights reserved, not open source |
| How you run it | Web UI, headless, sdk, acp, desktop | Terminal, VS Code and JetBrains extensions, desktop app, web |
| How you pay | Your own DeepSeek API key | Claude subscription or Console account, or API billing |
| Permission modes | Read Only, Workspace Write, Full access | default, acceptEdits, plan, auto, dontAsk, bypassPermissions |
| Sandbox | Shell commands ran under Landlock in my logs | Bubblewrap on Linux, off by default, shell commands only |
| Extending it | Plugins ("Everything is a Plugin") | Subagents, plugins, hooks and MCP |
| Cost readout | Estimate under each answer in the web UI | Dollar figure computed locally at list price |
| Version I tested | 0.2.2-rc.5, a developer preview | 2.1.310 |
Source: DeepSeek Harness README, CLI README and SAFETY.md; Claude Code docs at code.claude.com; my own runs. Checked November 30, 2026
How I ran the 12 jobs
I upgraded DeepSeek Harness from 0.2.1-rc.5 to 0.2.2-rc.5 before the test, and the restart was clean. Claude Code was version 2.1.310. Both used the same server, the same Linux user, the same DeepSeek key and the same written instructions. Each tool got its own folder: empty for the first job, and a copy of a small buggy project for the second.
Both could edit and run files without asking me. The harness ran headless with its normal sandbox, and Claude Code ran with --dangerously-skip-permissions. Neither could see the grading checks.
Job one asked for csvstats.py, a standard-library Python tool that prints count, mean, median, min and max for the number columns of a CSV, with exact output rules and its own unittest tests. Five hidden checks graded it.
Job two was ledger.py, a small tool with four planted bugs plus a missing --by-category option. Day-first dates were read month-first, money drifted from floating point, duplicate ids were counted twice, and the minus sign printed after the dollar sign. The README described the right behavior and said not to change it. Six hidden checks graded it. The buggy code failed all six, and a reference fix I wrote passed all six.
I ran each job three times per tool. The harness and Claude Code ran side by side on the same machine, so the times are rough, and I'm not making a speed claim.
The harness command:
export DEEPSEEK_API_KEY=YOUR_DEEPSEEK_KEY
cd ~/job-folder
dsh --profile headless --patch flash-max.patch.yml "$(cat task.txt)"
The patch file is my own, a few lines that make deepseek-flash at max effort the default:
- id: agent-default-model
name: "@deepseek-ai/dsh-agent-default-model"
config:
provider: deepseek-official
model: deepseek-flash
reasoningEffort: max
The Claude Code settings, from DeepSeek's integration page, plus the run:
export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_AUTH_TOKEN=YOUR_DEEPSEEK_KEY
export ANTHROPIC_MODEL='deepseek-flash[1m]'
export ANTHROPIC_DEFAULT_OPUS_MODEL='deepseek-flash[1m]'
export ANTHROPIC_DEFAULT_SONNET_MODEL='deepseek-flash[1m]'
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-flash
export CLAUDE_CODE_SUBAGENT_MODEL=deepseek-flash
export CLAUDE_CODE_EFFORT_LEVEL=max
cd ~/job-folder
claude -p "$(cat task.txt)" --output-format json --dangerously-skip-permissions
DeepSeek's page lists more settings than these, and I didn't set all of them.
I priced every run at DeepSeek's off-peak list rates for deepseek-flash, per 1M tokens: $0.003 for cached input, $0.15 for uncached input and $0.60 for output. Peak prices are double, and peak is 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, except Chinese public holidays. All 12 runs ran off-peak, around 13:30 to 14:00 UTC. The harness tokens came from its session logs and the Claude Code tokens from its JSON output. These are my math, not an invoice. DeepSeek's model names and prices are covered in the DeepSeek V4 guide.
What I didn't test: DeepSeek-V4-Pro, any Claude model, big repos, languages other than Python, the IDE and desktop apps, agent teamwork mode, peak pricing, and long sessions. Two jobs and three runs each is a small sample, and it isn't a benchmark.
DeepSeek Harness vs Claude Code: all 12 runs
Cost per run, both tools on the same model
| Run | Checks (both) | Harness | Claude Code | Claude Code's figure |
|---|---|---|---|---|
| Job 1, run 1 | 5/5 | $0.0054 | $0.0070 | $0.2975 |
| Job 1, run 2 | 5/5 | $0.0077 | $0.0057 | $0.2388 |
| Job 1, run 3 | 5/5 | $0.0054 | $0.0082 | $0.3464 |
| Job 2, run 1 | 6/6 | $0.0072 | $0.0111 | $0.5132 |
| Job 2, run 2 | 6/6 | $0.0123 | $0.0094 | $0.4070 |
| Job 2, run 3 | 6/6 | $0.0057 | $0.0093 | $0.4435 |
| Total | 33/33 | $0.0437 | $0.0506 | |
| Average | $0.0073 | $0.0084 |
Source: My test on November 30, 2026, deepseek-flash at max effort. Both tools passed the same checks in every run. Harness and Claude Code costs are token counts priced by me at DeepSeek's off-peak list price, not billed figures. Claude Code's figure is the total_cost_usd in its own JSON output. Totals and averages come from unrounded costs
Every run passed every hidden check and its own tests. None of them touched the README. Runs took 51 to 120 seconds on the harness and 42 to 85 on Claude Code, but both were running at once on the same machine, so I wouldn't read anything into that.

The harness was cheaper in 4 of the 6 pairs and Claude Code in 2, and the two ranges overlap. On job 2 the harness cost $0.0123 on one run and $0.0057 on another, with the same prompt.
I'd put that down to how many steps the model decides to take. The harness logged 4 to 14 model messages per run and Claude Code 5 to 14 turns, but those aren't the same unit, so I won't compare them.
Claude Code sent about 11,900 uncached input tokens in every job 1 run, while the harness sent between 1,188 and 7,599. Most input on both sides was cache hits, and those are cheap on DeepSeek.
The Trajectory tab lists every tool call with its arguments. If a run goes wrong, that's the screen I'd check first.

My prompt never mentioned hidden tests. The agent guessed it would be graded and tried to predict what the grader wanted. It still left the README alone.
Running coding agents on real work? Get a practical setup that wastes less of your limit.
Claude Code's own cost figure was 42 to 48 times higher
Claude Code's JSON output has a total_cost_usd field. On these runs it said $0.2388 to $0.5132 per job. My repricing of the same tokens said $0.0057 to $0.0111.
The ratio per run was 42.5, 42.0, 42.3, 46.1, 43.5 and 47.8. I tried to work out where its number comes from, and it matches the same tokens priced at $5 per 1M input, $25 per 1M output and $0.50 per 1M cache reads. That's my math, and it matched to the cent on all six runs. The costBasis field in the output said "unknown".
Anthropic's docs say Claude Code computes the figure locally from token counts at list price, and that it's an estimate. So it isn't lying. It just doesn't know it's talking to DeepSeek.
Point Claude Code at deepseek-flash and trust its readout, and at off-peak prices you'd think a job costs more than 40 times what it does. I'd reprice from the token counts yourself. The AI API price index lists per-token rates for the other major models.
All 12 runs together cost about $0.094 at my pricing.
Installing and using DeepSeek Harness
The DeepSeek Harness install is one line from the README, npx @deepseek-ai/dsh web, and the web UI opens at http://127.0.0.1:3080. You add a DeepSeek API key in Settings > Models. On my server the service prints a one-time login link in its log, and opening it once keeps my browser signed in.

I set it up on November 5 and it's been running around the clock since. Before the test I'd used it lightly, 4 sessions and 29 messages, for about $0.10 in total. I know that figure because I wrote a small script that reads the harness's session logs and reprices the tokens.
The model menu has DeepSeek-V4.1-Flash and DeepSeek-V4-Pro, an Effort setting, and an "Enable agent teamwork" switch. All 29 of my messages before the test ran on flash, so I can't tell you how V4-Pro behaves in the harness.

Permission modes are Read Only, Workspace Write and Full access. The UI asks before anything that needs approval under the active mode. I leave it on Workspace Write.

Plugins are the whole design. The tagline is "Everything is a Plugin", and it's built on Cordis, a plugin kernel. The Plugins page lists Subagent, Web search and fetch, Agent loop and Shell as built-ins. Experimental ones include Voice input, Custom plugin indexes, Auto authorization review, Change requests and worktrees, and Session search. I've only looked at the list, not built a plugin.

It's also an early release. The README calls it a developer preview and warns of compatibility-breaking changes, and the newest build on npm's latest tag, 0.2.2-rc.5 from November 18, is a release candidate. Newer alpha builds exist, so I wouldn't call any version stable.
Claude Code with DeepSeek
DeepSeek's docs describe how to run Claude Code with DeepSeek. You point ANTHROPIC_BASE_URL at DeepSeek's Anthropic-format endpoint and set the model names, as in the settings above. DeepSeek also maps names that start with claude-opus to deepseek-v4-pro, and claude-sonnet and claude-haiku names to deepseek-flash. I overrode all of them to flash, so nothing silently went to V4-Pro.
It worked. Claude Code printed [claude-code:unrecognized_model] for deepseek-flash[1m] and then ran normally every time.
Anthropic is clear about its side. Its LLM gateway page says Claude Code "doesn't support routing Claude Code to non-Claude models through any gateway." The setup comes from DeepSeek, not Anthropic, so it isn't a supported path. Fine for trying things. I'd think twice before building a team's daily workflow on it. If you're on real Claude models, the Claude Code guide covers the normal setup.
Safety and the sandbox
I'm not going to call DeepSeek Harness secure. Its SAFETY.md says it "has not undergone a security audit", and that sandboxing, approval prompts and permission controls "do not guarantee isolation".
On my server the shell commands ran under Landlock, a Linux kernel sandbox feature, and the log said landlock-run: partial enforcement (older Landlock ABI). My kernel only supports part of it. I run the harness under its own Linux user on a private setup, and I'd want that whatever the sandbox does.
Claude Code's sandbox is off by default and covers shell commands only. Anthropic's permission table says bypassPermissions, the mode that --dangerously-skip-permissions turns on, is for isolated containers and VMs only. I used it for these runs, in throwaway folders under a separate user. Don't copy that onto a laptop with your real files on it.
What I'm keeping
I'm keeping DeepSeek Harness as my always-on private chat. It's MIT, it shows a cost under every answer, and the Trajectory tab lets me see what the agent actually did. On deepseek-flash, the 12 runs gave me no reason to take the extra setup of the other route.
Claude Code is still the one I'd open for Claude models, because DeepSeek's setup is the unsupported path. I'd also want its IDE extensions for editor work, which I haven't tested here.
What I'd change: more runs per job, a bigger project than my small test folders, and a V4-Pro round. Three runs each can't settle a cost argument, and I'd rather say so than pretend.
Sources
- DeepSeek Harness on GitHub (README, CLI README, web UI user guide and SAFETY.md)
- @deepseek-ai/dsh on npm
- DeepSeek: Claude Code integration
- DeepSeek API pricing
- Claude Code overview and Claude Code on GitHub
- Claude Code permission modes
- Claude Code headless mode
- Claude Code sandboxing
- Claude Code subagents and plugins
- Claude Code costs
- Claude Code LLM gateway
All pages were checked on November 30, 2026. Timings, costs and run counts are from my own test.
FAQ
Is DeepSeek Harness free?
The software is free to download under the MIT license. The model isn't free, because it runs on your own DeepSeek API key and DeepSeek bills the tokens. In my test a small coding job came to between about half a cent and 1.2 cents at off-peak prices.
How do I install DeepSeek Harness?
Run npx @deepseek-ai/dsh web, open http://127.0.0.1:3080 in your browser, and add a DeepSeek API key under Settings > Models. The version on npm's latest tag is 0.2.2-rc.5, a release candidate, and the README calls the project a developer preview. Headless, sdk, acp and desktop modes exist as well.
Can Claude Code use DeepSeek?
Yes. DeepSeek documents a setup that points Claude Code at its Anthropic-format API at https://api.deepseek.com/anthropic through environment variables. I ran it that way with deepseek-flash. Claude Code 2.1.310 printed an unrecognized model warning and then worked normally.
Does Anthropic support Claude Code with DeepSeek?
No. Anthropic's LLM gateway page says Claude Code doesn't support routing it to non-Claude models through any gateway. The DeepSeek setup comes from DeepSeek's docs, so if a Claude Code update breaks it, DeepSeek's docs are where you'd look for a fix.
Which is cheaper, DeepSeek Harness or Claude Code with DeepSeek?
Not by a margin I'd trust. The harness was cheaper in four of my six paired runs, but the harness's cost for the same job more than doubled from one run to another. If you budget for Claude Code on DeepSeek, work from the token counts in its output and DeepSeek's price page, not from its own dollar figure.
Is DeepSeek Harness safe to run?
Its own SAFETY.md says it has not undergone a security audit and that its sandboxing, approval prompts and permission controls do not guarantee isolation. On my server the shell sandbox was only partly enforced because the kernel is older. I run it under a separate Linux user on a private setup, and I'd suggest the same to anyone.
What is a harness in AI coding tools?
A harness is the program around the model that reads files, runs commands, edits code and loops until the job is done. The model decides what to do, and the harness gives it access to files, commands and tools. DeepSeek Harness and Claude Code are two harnesses, and in my test both drove the same model.

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.


![Claude Code: Install, Setup & Workflows [2026]](/_next/image?url=%2Fimages%2Fclaude-code-guide.jpg&w=3840&q=75)
![Claude Code vs Codex: Models, Plans and Costs [2026]](/_next/image?url=%2Fimages%2Fclaude-code-vs-codex-2026.jpg&w=3840&q=75)