Skip to content
Claude

Best Claude model for coding: start with Opus 5.5

Anthropic now has a 5.5 model at every tier: Opus 5.5 by default, Sonnet 5.5 and Haiku 5.5 below it, Fable 5.1 above. Here is when each one is the better call in Claude Code, which effort to start at, and what each choice costs per task, taken from Anthropic's own docs.

Quick answer

Use Claude Opus 5.5 for most coding. Anthropic says most workloads should start there, and it is the model Claude Code picks for you. Hand well-specified work to Claude Sonnet 5.5 at half the price, fan bounded sub-tasks out to Claude Haiku 5.5, and escalate to Claude Fable 5.1 only when Opus 5.5 at higher effort still falls short. Keep the default effort until a task proves it needs more.
Default pick
Claude Opus 5.5 · $4 / $20 per MTok
Everyday value
Claude Sonnet 5.5 · $2 / $10 per MTok
Sub-agents
Claude Haiku 5.5 · $0.10 / $0.50 per MTok
Hardest work
Claude Fable 5.1 · $10 / $50 per MTok
Set it
claude --model opus or /model
Verified
October 9, 2026 against Anthropic's docs
01

Pick by task, not by leaderboard

Anthropic's model-selection guide doesn't crown a single winner. It pairs each model with a kind of work, and states plainly that most workloads start with Claude Opus 5.5. That makes it the most useful starting point available: it comes from the vendor, not from a synthetic leaderboard. The right-hand column is our reading of what each row looks like inside a Claude Code session.

When you needAnthropic's pickAnthropic's examplesIn a Claude Code session
Complex agentic coding and enterprise workClaude Opus 5.5Multihour autonomous coding agents, large-scale refactoring, complex systems engineering, vision-heavy workflows, computer useFeature work, planning, ambiguous bugs and multi-file changes: the default
Speed and capability for everyday coding, agent, and enterprise workloadsClaude Sonnet 5.5Code generation, data analysis, content creation, visual understanding, agentic tool useWell-scoped features, bug fixes, tests and terminal-heavy loops
The lowest latency and priceClaude Haiku 5.5Real-time applications, high-volume intelligent processing, cost-sensitive deployments needing strong reasoning, sub-agent tasksSub-agents: codebase searches, summaries, mechanical edits
The highest available capabilityClaude Fable 5.1Agent sessions that run for hours, multistep deep research, analysis carried through to a finished document, spreadsheet, or deckThe longest autonomous runs, once Opus 5.5 at xhigh falls short

Claude Opus 5.5: the default

Anthropic's recommended starting point and Claude Code's default model, built for long-running agentic coding, at $4 / $20 per MTok.

Claude Sonnet 5.5: the value pick

Anthropic's best published Terminal-Bench 4.0 score (70.6%) at half Opus 5.5's token price. Give it the tasks you can specify clearly.

Claude Haiku 5.5: the fan-out

Sub-agents, triage and mechanical edits at $0.10 / $0.50 per MTok for prompts up to 100K tokens, with a 1M window and effort levels.

Claude Fable 5.1: the escalation

When a failed or half-finished run costs more than a 2.5x token premium. Anthropic's rule: move up when Opus 5.5 at xhigh or max still falls short.
02

The current Claude lineup

All four current models share a 1M-token context window and 128K maximum output, use adaptive thinking, and accept effort from low to max, so capability, speed and price are what separate them. Prices are standard API rates per million tokens; up to 1M tokens there is no long-context surcharge, except on Haiku 5.5, which bills prompts above 100K tokens at a higher tier.

ModelAPI idInput / outputCache readsDefault effort (API · Claude Code)Role
Claude Opus 5.5claude-opus-5-5$4 / $20$0.20 (5% of input)medium · mediumThe default for complex coding and agentic work
Claude Sonnet 5.5claude-sonnet-5-5$2 / $10$0.10 (5% of input)high · mediumEveryday coding at half the price
Claude Haiku 5.5claude-haiku-5-5$0.10 / $0.50$0.01 (10% of input)medium · mediumSub-agents and high-volume tasks
Claude Fable 5.1claude-fable-5-1$10 / $50$0.25 (2.5% of input)high · highThe escalation for the hardest long-horizon work

What the 5.5 generation changed

Between September 22 and October 7, Anthropic replaced the Opus, Sonnet and Haiku models in turn. The pattern is the same each time: equal or lower prices, much higher agentic-coding scores.

Claude Opus 5 → Claude Opus 5.5Claude Sonnet 5 → Claude Sonnet 5.5Claude Haiku 4.5 → Claude Haiku 5.5
Input / output per MTok$5 / $25 → $4 / $20$2 / $10 → $2 / $10$1 / $5 → $0.10 / $0.50
Cache reads per MTok$0.50 → $0.20$0.20 → $0.10$0.10 → $0.01
Terminal-Bench 4.052.3% → 66.4%10.3% → 70.6%0.0% → 39.2%
Context window1M → 1M1M → 1M200k tokens → 1M
ReleasedSeptember 22, 2026September 28, 2026October 7, 2026
Claude Code aliasopus, from v2.1.280sonnet, from v2.1.284haiku, from v2.1.293

Inside Claude Code the switch is automatic once you update. If you call the API directly, the 5.5 models bring breaking changes worth checking before you swap the ID: thinking can't be turned off on Opus 5.5 (Sonnet 5.5's lowest setting is between_tools), non-default temperature, top_p and top_k return a 400, and Opus 5.5 and Sonnet 5.5 reject forced tool_choice. Details are on the Sonnet 5.5 and Haiku 5.5 pages.

03

Which model Claude Code uses, and how to change it

If you never set a model, Claude Code uses its default, Claude Opus 5.5 on every Anthropic plan and on the API, unless your organization set its own. To choose deliberately there are three levers, from the most temporary to the most permanent:

  1. 1

    For one session: /model

    /model opens the picker: Enter saves your choice as the default, s applies it to this session only. /model sonnet switches directly.
  2. 2

    For one run: --model

    Pass an alias or a full model ID when you launch Claude Code. It works for non-interactive claude -p runs too.
    claude --model claude-opus-5-5
    claude -p --model haiku "Summarize the failing tests in this log"
  3. 3

    As your default: settings.json

    Set the model in ~/.claude/settings.json, or in .claude/settings.json to share it with a repository. A per-model effort level can live next to it.
    {
      "model": "opus",
      "modelSettings": {
        "claude-opus-5-5": { "effortLevel": "high" }
      }
    }

opusplan and sub-agents: two models in one session

The opusplan alias uses Opus in plan mode and Sonnet when it executes, today Claude Opus 5.5 and Claude Sonnet 5.5. Sub-agents can run on their own model and effort through their frontmatter, or all of them at once through CLAUDE_CODE_SUBAGENT_MODEL:

# .claude/agents/searcher.md
---
name: searcher
description: Finds every call site of a function and summarizes how it is used
model: haiku
effort: low
---
Find every call site of the function you are given and summarize how it is used.
claude --model opusplan
export CLAUDE_CODE_SUBAGENT_MODEL=haiku

To change what an alias points at, for example on Bedrock or Google Cloud, set ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, ANTHROPIC_DEFAULT_HAIKU_MODEL or ANTHROPIC_DEFAULT_FABLE_MODEL. Admins can restrict the picker with availableModels in managed settings; Haiku models always stay available.

04

Effort: start at the default

Model choice is half the tuning. Effort is the other half: more effort buys more planning and checking per step, and costs time and tokens. Anthropic's advice is to start at the default and adjust from your own evals, and it notes that changing effort is often a better lever than changing models.

EffortWhat the Claude Code docs suggest it for
lowQuick exchanges, brainstorming, first sketches
mediumDay-to-day engineering with clear scope (default for Opus 5.5, Sonnet 5.5 and Haiku 5.5 in Claude Code)
highBug fixes and verification-critical work (default for Fable 5.1)
xhighDeeper reasoning at a higher token cost
maxHard problems and security analysis; it can overthink simple tasks
/effort high                       # this model, saved as your default
claude --effort xhigh               # one run
export CLAUDE_CODE_EFFORT_LEVEL=high

ultrathink, max and Ultracode are different tools

Writing ultrathink in a prompt asks for deeper reasoning on that one turn without changing your saved level. max raises the level for every turn until you change it. Ultracode is a separate toggle in /effort with which Claude orchestrates dynamic workflows for substantive tasks, at any effort level. Admins can cap effort with maxEffortLevel. Effort levels also don't map one-to-one across generations: Sonnet 5.5's were recalibrated, so re-run a familiar task before carrying an old setting across.

05

What a task costs on each model

Per-token prices only mean something once a task sits behind them. The calculator applies Anthropic's list prices to one agent task, including how Claude Code's prompt cache bills: the reused context as cache reads, the new context as cache writes. The presets are illustrative sizes for a multi-turn run, not measured averages, so put your own numbers in.

Preset
ModelPer taskPer monthVs Claude Opus 5.5
Claude Opus 5.5default$1.98$198.001.0×
Claude Sonnet 5.5$0.99$99.000.50×
Claude Haiku 5.5$0.056$5.590.03×
Claude Fable 5.1$4.63$463.122.3×
Claude Opus 5$2.79$279.381.4×

Anthropic list prices per million tokens. Assumes Claude Code's prompt caching: the cached share bills as cache reads, the rest as 5-minute cache writes (1.25× input). The presets are illustrative sizes for a multi-turn agent run, not measured averages. Not modeled: 1-hour cache writes (2× input), Batch (50% off) and Fast mode.

Two things the per-token view hides. First, cache pricing is not uniform: cache reads cost 2.5% of input on Fable 5.1, 5% on Opus 5.5 and Sonnet 5.5, and 10% on Haiku 5.5, so in long cached sessions Fable 5.1 costs less than its 2.5x list price suggests. Second, a long Claude Code session passes 100K tokens of context quickly, so Haiku 5.5 as the main model often pays its higher tier; as a sub-agent with a fresh context it usually stays under. And token price is not task price: a model that lands a change in one attempt beats a cheaper one that needs three.

06

Choose per task, not per project

Every rule on this page ends in the same place: the right model is a property of the task, not of the repository. A rename and a data-layer migration in the same codebase want different models and different effort, and a single default set once per project quietly overpays on one while underpowering the other.

There are three ways to act on that, from lightest to heaviest:

Switch by hand

/model per session or --model per run. Free, and fine for one agent at a time. Easy to forget when you jump between tasks.

opusplan and sub-agents

Opus plans, Sonnet executes, Haiku sub-agents fan out. Good inside one session, but nothing records which task ran on which model.

The model on the task

When several agents work in parallel, each on its own git worktree, the model belongs on the task itself. That is how AIDEN works: every feature carries its own agent, branch and model, across Claude Code and Codex.

The same logic crosses vendors. Some tasks suit a GPT-6 model better than any Claude tier; the Codex side of this decision is in the best Codex model, and mixing both on one codebase is covered in model routing for coding agents.

Pick the model per task, not per project.

AIDEN runs your Claude Code CLI next to Codex on one board. Each feature gets its own worktree, agent and model, so Haiku 5.5 can take the renames while Opus 5.5 takes the feature. Free for one project, no credit card.

Download AIDEN free

Free to start · macOS 12+ · No credit card required

07

Retirements: what to change before November 30

Claude Code's aliases follow the newest model automatically, but full model IDs pinned in settings, environment variables, sub-agent frontmatter or scripts stay exactly where you left them. These are the dates on Anthropic's deprecation page (Bedrock and Vertex set their own):

Model in your configStatus (Anthropic API)Replacement
claude-sonnet-4-5-20250929Deprecated September 30, 2026; retires November 30, 2026claude-sonnet-5-5
claude-haiku-4-5-20251001Active; retirement not sooner than October 15, 2026claude-haiku-5-5
claude-opus-4-5-20251101Active; retirement not sooner than November 24, 2026claude-opus-5-5
claude-opus-4-1-20250805Retired August 5, 2026claude-opus-5-5
claude-opus-4 / claude-sonnet-4 (20250514)Retired June 15, 2026claude-opus-5-5 / claude-sonnet-5-5

Anthropic's own replacement for Sonnet 4.5 is Sonnet 5.5. For the other rows we list the current model of the same tier, which is the natural move for coding work. A quick search finds the local pins:

# user and project Claude Code config, plus agents and scripts in this repo
grep -rnE 'claude-(sonnet-4-5|haiku-4-5|opus-4-[15])|claude-(opus|sonnet)-4-2025' ~/.claude .claude . --exclude-dir=node_modules --include='*.json' --include='*.md' --include='*.sh' 2>/dev/null
env | grep -E 'ANTHROPIC_(MODEL|DEFAULT_[A-Z]+_MODEL)|CLAUDE_CODE_SUBAGENT_MODEL'
08

What the benchmarks do and don't say

Anthropic published coding results with each 5.5 launch. These are vendor numbers from three different launch tables, so treat small gaps as noise; GPT-6 Astra's figures are as reported by OpenAI in Anthropic's Opus 5.5 table.

ModelTerminal-Bench 4.0FrontierCode v1.1CursorBench 4.0Input / output
Claude Opus 5.566.4% (xhigh effort)54.4%57.8%$4 / $20
Claude Sonnet 5.570.6%52.1% (xhigh effort)55.5%$2 / $10
Claude Fable 5.155.8%50.3%51.8%$10 / $50
Claude Haiku 5.539.2%46.4%—$0.10 / $0.50
GPT-6 Astra57.9% (reported by OpenAI)53.3%—$10 / $50

Two readings, both hedged. Inside Anthropic's lineup, Sonnet 5.5 is the surprise: it beats Opus 5.5 on Terminal-Bench 4.0 at half the price, while Opus 5.5 keeps the lead on FrontierCode and CursorBench, which is consistent with Anthropic keeping Opus as the default for complex work. Fable 5.1 does not top these coding tables; Anthropic positions it for long-horizon work where Opus runs out of road, which short benchmarks don't capture. Across vendors, Opus 5.5 posts higher scores than GPT-6 Astra at $4 / $20 against $10 / $50; the longer comparison is in Claude vs GPT for coding. Harnesses and effort settings differ between tables, so treat them as a prompt to test on your own repository.

Sources

QUESTIONS

FAQ

Which model does Claude Code use by default?
Claude Opus 5.5. Since Claude Code v2.1.280 it is the default on Pro, Max, Team, Enterprise and the Anthropic API (that release also moved Pro and Team Standard from Sonnet to Opus). Microsoft Foundry still defaults to Sonnet 4.5, and an organization admin can set its own default. Check yours with /model.
What is the best Claude model for coding right now?
Claude Opus 5.5 for most work. Anthropic says most workloads should start there, and it is the model Claude Code picks for you, at $4 / $20 per million input and output tokens. Use Claude Sonnet 5.5 ($2 / $10) for well-scoped everyday work, Claude Haiku 5.5 for sub-agents and high-volume tasks, and Claude Fable 5.1 ($10 / $50) only when Opus 5.5 at higher effort still falls short.
Opus 5.5 or Sonnet 5.5 for coding?
Closer than the price gap suggests. On Anthropic's launch tables Sonnet 5.5 scores higher on Terminal-Bench 4.0 (70.6% vs 66.4%) and sits two Elo points behind on GDPval-AA, while Opus 5.5 leads on FrontierCode v1.1 (54.4% vs 52.1% at xhigh) and CursorBench 4.0. Sonnet 5.5 costs 50% of Opus 5.5 per token. Keep Opus 5.5 for planning, ambiguous bugs and wide changes; hand Sonnet 5.5 the well-specified ones, or use opusplan to get both.
When is Claude Fable 5.1 worth it?
When Opus 5.5 at xhigh or max effort still falls short on demanding reasoning or long-horizon agentic work: that is Anthropic's own rule. Fable 5.1 costs 2.5x Opus 5.5 per input and output token, though its cache reads are only $0.25 per million. In Claude Code it is never the default: select it with /model fable, and depending on your plan it may bill to usage credits after a consent prompt.
Is Claude Haiku 5.5 good enough for coding?
For bounded work, yes. It scores 39.2% on Terminal-Bench 4.0, up from 0.0% for Haiku 4.5, at $0.10 / $0.50 per million tokens for prompts up to 100K tokens. That makes it a strong sub-agent for searches, summaries and mechanical edits, but it is well behind Sonnet 5.5 (70.6%) on the same benchmark, so don't hand it features. Prompts above 100K tokens bill at $0.50 / $2.50.
What effort level should I use in Claude Code?
Start at the default: medium for Opus 5.5, Sonnet 5.5 and Haiku 5.5, high for Fable 5.1. Raise it to high for bug fixes and verification-critical work, and to xhigh or max for hard problems, accepting more tokens and time. Set it with /effort, claude --effort, CLAUDE_CODE_EFFORT_LEVEL or effortLevel in settings, and write ultrathink in a prompt to ask for deeper reasoning on one turn only.
What is opusplan in Claude Code?
A model alias that uses Opus in plan mode and switches to Sonnet when it executes. With today's aliases that means Claude Opus 5.5 writes the plan and Claude Sonnet 5.5 carries it out, so the reasoning-heavy step gets the stronger model and the token-heavy step runs at half the price. Select it with /model opusplan or claude --model opusplan.
How much does a Claude Code task cost on each model?
With an API key you pay per token. Per million tokens: Claude Opus 5.5 $4 / $20 with $0.20 cache reads, Claude Sonnet 5.5 $2 / $10 with $0.10, Claude Haiku 5.5 $0.10 / $0.50 with $0.01 (higher above 100K-token prompts), Claude Fable 5.1 $10 / $50 with $0.25. New context written to the prompt cache costs 1.25x input. The calculator on this page turns those rates into a per-task figure. On a Pro, Max, Team or Enterprise plan, Claude Code draws on your plan's usage limits instead.
Why did Claude Code switch my model mid-session?
When a safety classifier flags a message, Claude Code can retry it on an older model instead of refusing. Per the model-config docs, Opus 5.5 and Fable 5.1 fall back to Opus 4.8 for cybersecurity topics and to Opus 5 for biology; Sonnet 5.5 falls back to Sonnet 5 for cybersecurity. Recent versions keep your effort level when that happens.
Claude or GPT-6.1 Sol for coding?
Both are strong defaults, and pricing lines up: Claude Sonnet 5.5 and GPT-6.1 Sol are both $2 / $10 per million tokens, while Claude Opus 5.5 costs twice that. On the cross-vendor numbers available, Opus 5.5 posts higher Terminal-Bench 4.0 and FrontierCode scores than GPT-6 Astra. The Codex side of the decision is in our best Codex model guide; AIDEN runs Claude Code and Codex on one board, so you can pick per task.
CONTINUE

Keep reading

START BUILDING

Route each task to the model it needs.

AIDEN runs your existing Claude Code and Codex CLIs on one local-first board, with the model chosen per feature. Free for one project, no credit card.

MACOS 12+ · BRING YOUR OWN CLAUDE CODE OR CODEX · YOUR CODE STAYS LOCAL