MorseSign inOpen Morse

DeepSeek for coding: V4.1 Flash 1017 or V4 Pro, with four tested agent runs

The Morse teamPublished Facts checked 4 min read

DeepSeek's newest small model is also its best coder. On DeepSeek's own cards, V4.1 Flash 1017 beats the much larger V4 Pro on every agent and coding test the two share, and on December 3, 2026 it fixed a SQL injection in Claude Code in 7 seconds and in Codex in 11, through Morse's private API. Here is which DeepSeek to pick, the scores behind that, the setup for both tools, and our four runs.

What do DeepSeek's scores say?

Agent coding is where DeepSeek moved fastest in 2026. These rows sit at maximum reasoning effort on DeepSeek's cards:

BenchmarkV4 ProV4.1 FlashV4.1 Flash 1017
DeepSWE v1.162.774.277.0
Terminal-Bench 4.012.431.242.3
AutomationBench43.254.860.5
ProgramBench15.520.329.1

Sources: DeepSeek's V4.1 Flash and V4.1 Flash 1017 model cards.

DeepSWE has an agent fix real issues in real repositories; Terminal-Bench gives it a shell and hard multi-step jobs. DeepSeek warns that the harness matters: the same V4.1 Flash scored 74.2 on DeepSWE in one harness and 69.8 in Claude Code. The 1017 update added more reinforcement learning on coding and was tuned for DeepSeek Harness, its own open-source agent framework.

Which DeepSeek should you code with?

DeepSeek V4.1 Flash 1017DeepSeek V4 Pro
Model iddeepseek/deepseek-v4.1-flash-1017deepseek/deepseek-v4-pro-0813
Context1M tokens1M tokens
Reasoning effort"none", "low", "high", or "max""none", "low", "high", or "max"
Privacy tiersTEE, PrivatePrivate
Price$0.30 per million input tokens and $1.20 per million output tokens$1.32 per million input tokens and $3.96 per million output tokens

Read from Morse's catalog when this page was built.

Start with V4.1 Flash 1017: the higher scores, quick replies, image input for screenshots of errors, and a TEE tier for code that must stay on attested hardware. Keep V4 Pro for work already tuned on it, or as a second model to check a risky change. V4.1 Flash without the update still works, but 1017 replaced it at the same price on DeepSeek's own API.

Claude Code settings for DeepSeek

Export these before you start claude, with your Morse key in MORSE_API_KEY:

export ANTHROPIC_BASE_URL=https://inference.trymorse.ai
export ANTHROPIC_AUTH_TOKEN="$MORSE_API_KEY"
export ANTHROPIC_MODEL=deepseek/deepseek-v4.1-flash-1017
export ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek/deepseek-v4.1-flash-1017
export ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek/deepseek-v4.1-flash-1017
export ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek/deepseek-v4.1-flash-1017
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=32000
export CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000
claude

Naming one model on all four lines keeps Claude Code's background calls on DeepSeek too. Leave /v1 off the base URL. The Claude Code guide explains each line.

Codex settings for DeepSeek

In ~/.codex/config.toml:

model = "deepseek/deepseek-v4.1-flash-1017"
model_provider = "morse"
web_search = "disabled"
model_context_window = 1048576
model_auto_compact_token_limit = 200000

[model_providers.morse]
name = "Morse"
base_url = "https://inference.trymorse.ai/v1"
env_key = "MORSE_API_KEY"
wire_api = "responses"

To use V4 Pro, change the first line to its id; its window is also a million tokens. Codex sends parallel_tool_calls on every request, and before these runs we checked that both stock models accept it on the Responses endpoint: each returned a correct tool call. More in the Codex guide and our list of models that work in Codex.

Four runs, one bug

The test project held one Python file whose find_user glued a name into a SQL string. Each tool got the same instruction: "Fix it with a parameterized query. Change nothing else." Claude Code 2.1.333 ran headless with only Read and Edit; Codex 0.172.0 ran with workspace write access.

ToolModelTimeEffort to finishOutcome
Claude CodeV4.1 Flash 10177 s6 turnsCorrect ? placeholder fix
CodexV4.1 Flash 101711 sAbout 13,200 tokensCorrect
Claude CodeV4 Pro 081313 s4 turnsCorrect
CodexV4 Pro 081317 sAbout 16,300 tokensCorrect

All four left the rest of the file alone. The Flash runs finished first in both tools. V4 Pro took fewer turns in Claude Code but more time per turn, which fits a model with 49 billion active parameters per token against Flash's 8 to 16 billion.

Getting the most from DeepSeek in an agent

  • Pick the effort per task. Both models think at high effort by default on Morse. A rename or one-line fix doesn't need it: low answers sooner and spends fewer tokens. Keep high or max for bugs that span several files.
  • Give it the error, not a summary. Paste the full stack trace or test output. V4.1 Flash 1017 also takes a screenshot when the failure is visual.
  • Watch the context. A million-token window is room, not a target. Compacting near 200,000 tokens keeps each turn quick.

What about uncensored DeepSeek for security code?

Morse serves two abliterated DeepSeek builds for cybersecurity and agent security work on systems you own: DeepSeek V4.1 Flash Uncensored and DeepSeek V4.1 Flash 1017 Uncensored. The 1017 build ran in Claude Code in our tests, but it rejects parallel_tool_calls, so for Codex keep to the stock models above.

Who sees your code?

It runs in attested hardware enclaves, under zero-data-retention terms. Morse runs the open weights on its own providers, so nothing reaches DeepSeek's servers; how DeepSeek's own app handles data is in is DeepSeek safe. Agent loops resend context every turn, and repeated input on V4.1 Flash 1017 bills at $0.006 per million cached input tokens. Get a key and try both tools on your own repository.

Common questions

Which DeepSeek model is best for coding?

DeepSeek V4.1 Flash 1017. On DeepSeek's own cards it scores 77.0 on DeepSWE v1.1, against 62.7 for V4 Pro, and it leads V4 Pro on every agent and coding row DeepSeek reports.

Can I use DeepSeek in Claude Code?

Yes. Set ANTHROPIC_BASE_URL to Morse's API origin, your Morse key as ANTHROPIC_AUTH_TOKEN, and the model variables to deepseek/deepseek-v4.1-flash-1017. In our run it fixed the bug in 7 seconds.

Does DeepSeek work in Codex?

Yes. Both stock models we tried accept the parallel_tool_calls setting Codex sends, and both fixed our test bug. The abliterated 1017 build doesn't accept it, so use it in Claude Code instead.

What is DeepSeek Harness?

DeepSeek's own open-source agent framework, released under the MIT license. DeepSeek says the 1017 update was trained to work better with it.

Ask what you actually want to ask.

80+ models, characters, and images, with every chat encrypted and kept on your device. Free to start.

Start a private chat

Read next