Model guide

Claude Opus 4.8 for Coding: The Default for Serious Agentic Work

Fable 5 gets the headlines, but Opus 4.8 is the model Anthropic tells you to start with for complex agentic coding, at half the price. Here is what it costs, what it scores, and when to move a tier in either direction.

By Kylian Migot · Updated July 2026 · 7 min read

Quick answer

Claude Opus 4.8 is Anthropic's recommended starting point for complex agentic coding: the flagship tier at $5 in / $25 out per MTok, half Fable 5's price, with a 1M tokens context window and a 88.6% SWE-bench Verified score. In Claude Code you select it with /model opus.
What it is
Anthropic's flagship tier, the recommended default for complex agentic coding
Price
$5 in / $25 out per MTok (Fast mode $10/$50)
Context
1M tokens
SWE-bench Verified
88.6%
01

What Is Claude Opus 4.8?

Claude Opus 4.8 was released on May 28, 2026, and since Fable 5 arrived above it, its role has actually gotten clearer, not smaller. Per Anthropic's own guidance, Opus is the recommended starting point for complex agentic coding: effort defaults to high, it is thorough on multi-file changes, and it carries a 1M tokens context window. The API identifier is claude-opus-4-8.

The economics are the story. Opus 4.8 delivers most of Fable 5's capability at exactly half the price, which makes it the value flagship of the lineup, the model you default to and only move away from with a reason. This guide covers the verified numbers, then the two reasons to move: escalating up to Fable 5 or dropping down to Sonnet 5. For the full lineup, see the best Claude model for coding.

02

Specs and Pricing

SpecClaude Opus 4.8
VendorAnthropic
API identifierclaude-opus-4-8
ReleasedMay 28, 2026
Price$5 in / $25 out per MTok
Fast mode$10 in / $50 out per MTok
Context window1M tokens
TierFlagship (below Fable 5, above Sonnet 5)
Claude Code/model opus (recommended starting point for complex agentic coding)

Data verified July 18, 2026 against Anthropic's published pricing and docs. Note the symmetry: Opus 4.8's fast mode costs $10 in / $50 out per MTok, exactly Fable 5's standard rate. At that price point you are choosing between a faster Opus and a smarter Fable, and for latency-sensitive interactive sessions, faster Opus is often the right call.

03

Benchmarks: Strong Where It Counts

Opus 4.8 posts the second-best Claude scores on the board, behind only Fable 5. The verified numbers:

BenchmarkClaude Opus 4.8Claude Fable 5Source
SWE-bench Verified88.6%95.0%swebench.com leaderboard
SWE-bench Pro69.2%80.3%Scale leaderboard

Data verified July 18, 2026. Read the gap honestly: Fable 5 is measurably ahead, 95.0% vs 88.6% on Verified and 80.3% vs 69.2% on Pro, but Opus earns those scores at half the cost per token. For most sprints that trade is the whole argument. How it stacks against OpenAI's flagship is covered in Claude Opus 4.8 vs GPT-5.6 Sol.

Ship your first agent today

Download AIDEN free and point it at your existing Claude Code or Codex setup. No credit card, running in minutes.

Download AIDEN free

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

04

When to Escalate to Fable 5

Fable 5 costs $10 in / $50 out per MTok, double Opus, and there are three task shapes where it earns that. First, hard cross-cutting work: architecture-level refactors that touch a codebase everywhere, where the benchmark gap shows up in the diff. Second, long autonomous runs, where a wrong turn at hour two costs more than the token premium ever will. Third, spec drafting and review on large repos, where sustained reasoning over a full 1M window matters.

05

When to Drop to Sonnet 5

In the other direction, Sonnet 5 costs $3 in / $15 out per MTok, and intro pricing runs $2 in / $10 out per MTok through August 31, 2026, a fraction of Opus. Drop down for routine, well-specified work: standard feature stories, test suites, mechanical refactors with a clear plan, and high-volume parallel fleets where cost dominates. Sonnet is noticeably behind Opus on hard multi-step reasoning, so the rule is simple: if the story needs judgment, keep Opus; if it needs throughput, Sonnet is the rational pick.

The full three-tier decision, including where Haiku 4.5 fits below Sonnet, is mapped in Opus vs Sonnet vs Haiku.

06

The opusplan Alias: Plan Expensive, Implement Cheap

Claude Code ships an alias that encodes the routing logic above into a single setting:

/model opusplan

With opusplan, Claude Code uses Opus for plan mode and Sonnet for implementation. The reasoning-heavy step, understanding the codebase and deciding what to change, gets the flagship; executing the approved plan runs on Sonnet's pricing. For teams doing spec-driven development, where the plan is reviewed before implementation starts, it is the cheapest way to keep Opus-quality judgment in the loop without paying Opus rates for every generated line.

FAQ

What is Claude Opus 4.8?
Claude Opus 4.8 is Anthropic's flagship coding model, released on May 28, 2026, and the company's own recommended starting point for complex agentic coding. It has a 1M tokens context window, costs $5 in / $25 out per MTok, and scores 88.6% on SWE-bench Verified. The API identifier is claude-opus-4-8.
How much does Claude Opus 4.8 cost?
Opus 4.8 costs $5 in / $25 out per MTok on the Anthropic API, exactly half of Claude Fable 5's $10 in / $50 out per MTok. A separate fast mode is priced at $10 in / $50 out per MTok, the same rate as Fable 5, trading money for latency on the same model.
Claude Opus 4.8 vs Fable 5: which should I use?
Start with Opus 4.8. It scores 88.6% on SWE-bench Verified versus 95.0% for Fable 5, at half the price, and it is Anthropic's recommended default for complex agentic coding. Escalate to Fable 5 for genuinely hard cross-cutting refactors, long autonomous runs, and spec work on large codebases where the gap justifies paying double.
When should I use Sonnet 5 instead of Opus 4.8?
Drop to Sonnet 5 for routine, well-specified stories: standard feature work, test writing, and refactors with a clear plan. Sonnet 5 costs $3 in / $15 out per MTok (intro pricing $2 in / $10 out per MTok through August 31, 2026), so on high-volume parallel fleets the savings compound fast. Keep Opus for multi-file changes that need real reasoning.
What is the opusplan alias in Claude Code?
opusplan is a Claude Code model alias that uses Opus for plan mode and Sonnet for implementation. You get flagship-grade planning where reasoning matters most, then cheaper execution of the approved plan. Select it with /model opusplan.

Keep reading

Route the right model to the right story.

AIDEN runs your Claude Code and Codex CLIs on one kanban board, BYOK and local-first, so Opus carries the sprint while Fable 5 and Sonnet take the stories that fit them. Free for one project.

macOS 12+ · Bring your own Claude Code or Codex · Your code stays local