Claude Opus 5 in Claude Code: Setup, Effort Levels & Real Workflows (2026)

A hands-on guide to running Claude Opus 5 in Claude Code: how to select claude-opus-5, when to use fast mode, how effort levels work, self-verification in agent loops, and the 1M context for large repos.

Quick answer. Select Claude Opus 5 in Claude Code with the /model command or --model claude-opus-5. Keep effort on medium for most work, raise it to high for hard debugging, and turn on fast mode ($10/$50 per million tokens, ~2.5x faster) for tight interactive loops. Its 1M context handles large repos, and built-in self-verification means fewer "no, try again" rounds.

Claude Opus 5 (API id claude-opus-5) landed on July 24, 2026 as Anthropic's everyday workhorse for coding and agentic tasks. Anthropic positions it as coming "close to the frontier intelligence of Claude Fable 5 at half the price" — which makes it the default you'll reach for inside Claude Code most days. This is a hands-on guide to running it well: how to select it, when fast mode earns its 2x price, how the effort toggle changes behavior, and how self-verification cuts the back-and-forth in agent loops.

If you want the full launch rundown — benchmarks across every category, pricing, and model-family context — read the Claude Opus 5 launch guide. This piece stays inside the editor.

How do you select Claude Opus 5 in Claude Code?

There are three ways to point Claude Code at claude-opus-5, from most to least persistent:

  • Per-session: run /model in an active session and pick Opus 5 from the list. This is the quickest way to switch mid-task.
  • Per-launch: start with claude --model claude-opus-5 so the whole session runs on it.
  • Persistent default: set the model in your Claude Code settings so every new session opens on Opus 5 without a flag.

Extended thinking is on by default on Opus 5, so you don't toggle a separate "reasoning" mode — the model spends thinking budget automatically and you shape how much through the effort level (below). Two other defaults matter for coding: the context window is a flat 1M tokens (there's no smaller variant to accidentally land on), and standard max output is 128K tokens, which is plenty for multi-file diffs.

When should you use fast mode versus standard?

Opus 5 ships in two speeds. Standard mode is the same price as its predecessor, Opus 4.8. Fast mode costs 2x but runs roughly 2.5x faster — a rare case where you pay less per second of wall-clock time.

ModeInput / MOutput / MRelative speedReach for it when…
Opus 5 — standard$5$251xRoutine coding, background agent runs, anything where latency isn't the bottleneck
Opus 5 — fast mode$10$50~2.5xInteractive pair-programming, tight edit-run-fix loops, live debugging where you're watching the cursor
Fable 5 (for context)$10Only for the longest-horizon autonomous agents running for days

Practical rule: use standard for anything running unattended (a long refactor, a test-writing sweep, an overnight agent) where you're not sitting there waiting. Flip to fast mode when you are in the loop — the 2.5x speedup meaningfully shortens the think-time between your prompt and the model's first edit, and at that point the extra dollars buy back your attention. Fast mode is exposed directly in Claude Code, so you can switch without leaving the terminal.

How do effort levels work — and when should you raise them?

The effort toggle (low / medium / high) is Anthropic's lever to balance cost and capability per request. It controls how much reasoning compute Opus 5 spends before it acts:

  • Low — faster and cheaper. Good for mechanical edits: rename a symbol, add a prop, write a boilerplate test, tidy imports.
  • Medium — the sensible default for feature work, code review, and most agentic tasks.
  • High — longer reasoning for genuinely hard problems: a race condition you can't reproduce, a tricky migration, architecture decisions, or a bug that's survived two "try again" rounds already.

The workflow that works well: start at medium, escalate deliberately. If Opus 5 stalls or its first attempt misreads the problem, bump to high and let it think longer rather than re-prompting five times on medium — the extra reasoning is usually cheaper than the round-trips. Drop to low when you know the task is mechanical and you want throughput. On CursorBench 3.2 at max effort, Opus 5 lands within half a point of Fable 5's peak at roughly half the cost per task, so "high effort Opus 5" is often the value play versus reaching for a pricier model.

What does self-verification change in agent loops?

The most useful practical change in Opus 5 isn't a benchmark — it's behavior. Anthropic describes it as "verifying its work and iterating carefully until it succeeds," and in day-to-day Claude Code use that shows up as fewer "no, that's wrong, try again" rounds. The model tends to run the test, read the failure, and fix it before handing control back, rather than declaring victory on code that doesn't compile.

A concrete example from Anthropic's own testing: given an incomplete prompt, Opus 5 wrote its own computer-vision pipeline — filling gaps and checking its output instead of stopping to ask. In an agent loop, that means you can hand it a slightly under-specified task and expect it to close the gap and self-correct instead of returning a half-answer.

Two things make this safer to lean on. Opus 5 scored as Anthropic's most aligned model to date in their automated behavioral audit (lowest misaligned-behavior and deceptive-behavior scores of any recent Claude), and its safety classifiers are expected to trip about 85% less often than Fable 5's — meaning far fewer spurious refusals interrupting a coding session. For teams building on the API, the new "Automatic Fallbacks" beta routes to a smaller model and returns a usable response if a classifier does trip, instead of erroring out mid-run. If you're comparing agent harnesses, our AI coding agents guide covers how this self-verification behavior stacks up across tools.

How does Opus 5 compare on coding benchmarks?

You don't need a wall of numbers to make model decisions, but the coding-relevant ones are worth knowing. Opus 5 wins the agentic-coding benchmark outright and sits a hair behind the leaders on classic SWE-bench.

BenchmarkOpus 5Fable 5GPT-5.6 SolOpus 4.8
Frontier-Bench v0.1 (agentic coding)43.3%33.7%34.4%
SWE-bench Pro79.2%80.0%69.2%
ARC-AGI-3 (novel problem-solving)30.2%7.8%
GDPval-AA v2 (knowledge work, Elo)1,8611,7471,736

The two coding takeaways: on Frontier-Bench agentic coding, Opus 5 more than doubles Opus 4.8 at a lower cost per task, which is exactly the workload Claude Code runs. On SWE-bench Pro it's under a point behind the leaders (Mythos 5 at 80.3%, Fable 5 at 80.0%) while jumping ten points over 4.8's 69.2%. On ARC-AGI-3 — a proxy for reasoning through genuinely novel problems — it posts roughly 3x the next-best model, which is the effort-toggle payoff when you push a hard bug to high. If you're weighing it against the frontier tier, the GPT-5.6 vs Fable 5 comparison and the Fable 5 launch guide give the fuller picture.

How do you use the 1M context on a large repo?

A flat 1M-token window changes how you feed Claude Code a big codebase. Instead of hand-picking three files and hoping you included the caller, you can let it load whole modules — schema, service layer, and their tests — in one pass, which kills the "you're missing the file where this is defined" failure mode that forces re-prompts.

A few habits keep it effective rather than expensive:

  • Give it the map, let it read the territory. Point Opus 5 at the directories and entry points; its self-verification loop will pull the specific files it needs rather than you pasting everything.
  • Keep a CLAUDE.md / AGENTS.md at the root. Conventions, build commands, and gotchas up front save the model from re-deriving them every session.
  • Batch the big jobs on standard mode. A 1M-context refactor is exactly the unattended workload where standard pricing wins — reserve fast mode for the interactive follow-ups.
  • Mind output limits. 128K output covers almost any diff; if you're generating something enormous (a full migration set), the Message Batches API lifts output to 300K with a beta header.

Practical workflow tips for agentic coding

  • Default profile: Opus 5, medium effort, standard speed. Change one variable at a time from there.
  • Debugging a hard bug: high effort first, fast mode if you're watching. Let it read the failing test output rather than describing the bug yourself.
  • Bulk mechanical edits: low effort, standard speed, wide context. Throughput over depth.
  • Long autonomous runs (hours): standard speed to control cost. If a job genuinely needs to run for days with no supervision, that's the one case Anthropic still points at Fable 5.
  • Migrating from Opus 4.8: the model id and effort param are drop-in; expect the biggest jump on agentic and multi-step coding tasks. See the Opus 4.8 launch guide for the baseline you're upgrading from.
  • Cursor users: the same effort-and-speed trade-offs apply through any harness; our Cursor IDE guide covers model selection inside that editor.

One privacy note worth knowing for regulated work: unlike Fable 5, Opus 5 is not subject to the 30-day data-retention policy, which matters if you're running it against a private repo under a strict data-handling agreement.

Where Codersera fits

Model access is the easy part. The harder part is engineers who can drive an agentic workflow — writing effort-level prompts, structuring a repo so a 1M-context model actually helps, and reviewing agent output before it ships. If you're scaling that capability, hire vetted remote developers through Codersera to extend your team with people who already work this way — faster hiring, lower risk, real technical fit.

FAQ

What is the API model id for Claude Opus 5?

It's claude-opus-5. In Claude Code you select it with the /model command, the --model claude-opus-5 launch flag, or by setting it as your default in settings. Fast mode and the effort parameter are exposed on top of the same model id.

Is fast mode worth double the price?

For interactive work, usually yes. Fast mode is $10 input / $50 output versus standard's $5 / $25, but it runs about 2.5x faster — so it's cheaper per second of wall-clock time. Use it when you're actively watching the loop; use standard for unattended runs where latency doesn't matter.

When should I raise the effort level to high?

Raise it for hard problems: unreproducible bugs, tricky migrations, architecture decisions, or anything that's already failed a "try again" round on medium. Letting Opus 5 think longer once is typically cheaper and more reliable than re-prompting repeatedly on lower effort.

How much better is Opus 5 than Opus 4.8 for coding?

Substantially on agentic tasks. It more than doubles Opus 4.8 on the Frontier-Bench agentic-coding benchmark (43.3%) and jumps from 69.2% to 79.2% on SWE-bench Pro — all at the same standard price as 4.8.

Does the 1M context window cost extra?

The 1M-token window is the default and the maximum on Opus 5 — there's no smaller variant. You pay standard input rates ($5/M) for the tokens you actually send, so large-repo context is priced per token, not as a premium tier.