Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

The DeepSeek test kit: run V4.1 Flash in Claude Code and compare it with Opus 5

The short version

DeepSeek's cheap model, V4.1 Flash, beat Claude Opus 5 on DeepSWE, 77 to 74. DeepSWE is 113 long coding jobs, the kind where an agent has to read a repo, change several files and not break anything. Flash writes code from 60 cents per million tokens. Opus 5 charges 25 dollars for the same million. It is open under the MIT license, and a few lines of setup point Claude Code at it, so you keep your usual workflow.

The catch: these are DeepSeek's own numbers, and on Terminal Bench, which DeepSeek ran inside Claude Code, Opus 5 still wins 52 to 42. So don't switch everything. Give both models the same real task on your own repo, then compare the result and the bill. This kit is the setup and the three prompts for that test.

Number What it means
77 vs 74 DeepSWE v1.1, V4.1 Flash vs Opus 5 (DeepSeek's table)
113 long coding jobs in DeepSWE
0.60 USD Flash, per million output tokens, off-peak (1.20 at peak)
25 USD Opus 5, per million output tokens
42 vs 52 Terminal-Bench 4.0, Flash vs Opus 5, run inside Claude Code
MIT the license on the weights

Sources: DeepSeek release note, 17 Oct 2026 · Model card on Hugging Face · DeepSeek pricing · DeepSeek's Claude Code guide · Anthropic pricing · DeepSWE v1.1

Copy these prompts

Do the setup below first. Then paste these into Claude Code, in this order. Prompt 1 runs on your normal model, prompt 2 runs in the DeepSeek window, prompt 3 runs back on your normal model.

1. Pick the task and freeze the starting point

I want to compare two coding models on one real task in this repo. Suggest three tasks from the open issues,
TODOs or recent bugs that touch more than one file and have a clear definition of done (a test that should
pass, or a behaviour I can check by hand). For the one I pick, write the exact prompt I will give both models,
word for word, and save it to compare/task.md. Then create a branch called compare/base from the current commit
so both runs start from the same place. Don't change any code yet.

2. Run the same task in the DeepSeek window

Read compare/task.md and do exactly what it says. Work on a new branch called compare/deepseek, created from
compare/base. When you are done, run the tests, then write compare/deepseek.md with: the files you changed,
whether the tests pass, anything you were unsure about, and every time you had to guess.

Run the same prompt in your normal window on a branch called compare/claude, ending with compare/claude.md.

3. Compare the result and the bill

Compare the branches compare/claude and compare/deepseek against compare/base. For each one report: do the
tests pass, did it change any file the task did not need, did it remove or weaken any test, how many follow-up
corrections I gave it, and what you would have to fix before merging. Then put the two costs side by side: I
will paste the Claude usage and the DeepSeek usage for this session. End with one line: for this kind of task,
which model would you use, and why.

The exact Claude Code setup

From DeepSeek's own guide. Get an API key from the DeepSeek Platform and top up a few dollars. Then run this in a new terminal window (Mac or Linux) before you start Claude Code:

export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_AUTH_TOKEN=<your DeepSeek API 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
export CLAUDE_CODE_AUTO_COMPACT_WINDOW=786432

cd /path/to/your-project
claude

On Windows (PowerShell) the names are the same: $env:ANTHROPIC_BASE_URL="https://api.deepseek.com/anthropic" and so on.

Good to know:

The numbers, in full

DeepSeek's own table, from the model card:

Test V4.1 Flash Opus 5 Who wins
DeepSWE v1.1 (113 long coding jobs) 77.0 74.0 DeepSeek
Terminal-Bench 4.0 (run in Claude Code) 42.3 51.8 Opus 5
ProgramBench 29.1 37.0 Opus 5
NL2Repo-Bench 68.2 75.3 Opus 5
Automation-Bench 60.5 50.3 DeepSeek

Price per million tokens:

Flash off-peak Flash peak Opus 5
Input 0.15 USD 0.30 USD 5 USD
Input, cached 0.003 USD 0.006 USD 0.50 USD
Output 0.60 USD 1.20 USD 25 USD

The catch

Steal this for your app

Run this on your codebase

Look at the last 20 tasks I gave you in this repo (use git log and the commit messages). Sort them into two
groups: routine work (small features, clear bugs, tests, docs, refactors) and hard work (long multi-step
debugging, migrations, setup scripts, anything that needed many terminal commands). For each group, pick one
example I could rerun as a fair comparison between two models, and write the exact prompt for it.

Get the next one in your inbox