← Claude Code Hub
✦ Tip #021 Mar 2, 2026

Stop Wasting Tokens: Pick the Right Claude Code Model (and When to Use opusplan)

Use opusplan in Claude Code: Opus for planning, Sonnet for execution, Haiku for exploring. Stop using the frontier model for everything.

Note (July 2026): this tip was written when the split was three models: Opus, Sonnet, and Haiku. It still holds for its own axis, which model for which phase via opusplan, but the picker now has a tier above it, Fable 5, which isn't covered here. If what you want is which of the three frontier models to reach for and what it costs to switch between them mid-session, that's in Sonnet 5, Opus 5 and Fable 5.

Not every task needs the frontier model. A frontier model is the most advanced, capable model available at any given time (right now, Opus 5 and, for the hardest and longest work, Fable 5). It's tempting to use it for everything: if you have access to the best, why settle for less?. But doing so wastes tokens, wait time, and resources. Most daily development tasks don't require deep reasoning.

Claude Code already applies this logic internally. Its Explore agent runs on Haiku for fast codebase searches. The opusplan alias automates the full strategy: Opus reasons through planning, Sonnet handles execution.

TL;DR Use opusplan to plan with Opus and execute with Sonnet. Switch to Haiku for quick exploration. Don't use the frontier model for everything: allocate power where it actually matters.

Result:

> /model

    default
  ● opusplan   ← Plan: Opus 5 · Execution: Sonnet 5
    opus
    sonnet
    haiku

The strategy: plan, execute, explore

1. Plan with the frontier model

Deep reasoning is only justified when designing architecture, evaluating trade-offs, or making decisions that affect the entire project. This is where Opus makes the difference.

claude --model opus
# Or switch mid-session:
/model opus

2. Execute with Sonnet

Writing functions, tests, refactoring: none of it needs the same level of reasoning. Today's sonnet is Sonnet 5, with intelligence close to Opus at lower cost and higher speed.

/model sonnet

3. Explore with Haiku

Codebase searches, file reads, structure analysis. Read-only tasks where speed matters more than depth.

/model haiku

4. The shortcut: opusplan

If you don't want to switch manually, opusplan automates the strategy:

claude --model opusplan
# Or during a session:
/model opusplan

Opus activates during plan mode. When Claude transitions to execution, it switches to Sonnet automatically. This is exactly what Claude Code's native agents do: each task gets the right model for the job.

Reference

Model Alias Relative cost Best for
Opus 5 opus $$$ Architecture, complex debugging, design decisions
Sonnet 5 sonnet $$ Daily development, implementation, tests
Haiku 4.5 haiku $ Exploration, searches, simple tasks
Opus → Sonnet opusplan Mixed Full workflow: plan + execute

Permanent configuration

Add the model to your settings.json so you don't have to choose every session:

{
  "model": "opusplan"
}

Or via environment variable:

export ANTHROPIC_MODEL=opusplan

You can also set it from the picker: since v2.1.153, Enter in /model saves it as your default and s keeps it to that session only. If your model sticks or resets when you didn't mean to, that's why.

If you want to further fine-tune Opus's reasoning during the planning phase, combine this strategy with Claude Code effort level adjustment: lower the effort for quick decisions and reserve high for architectural ones.

And there's a third option besides opusplan: the /advisor toggle. Unlike opusplan (Opus only in plan, Sonnet in execution), /advisor keeps Opus available during execution for on-demand consultations when Sonnet stalls. Anthropic measured −11.9% cost and +2.7% accuracy with that pattern.

Official docs: Model configuration

Part of the 10 habits to save tokens in Claude Code.

And if the model you picked is overloaded (529) or down? Give it a plan B: a fallbackModel chain degrades to the next one instead of killing your session.

Workshop for teams

Multiply your team's output without sacrificing quality: a 6 to 8 hour AI First workshop, online, on the Claude platform.

See the workshop
Free guide

The 51 essentials, as a PDF.

One page per tip. Five chapters. What I actually use daily in production — no theory, no fluff.

  • I. Getting started 10 tips
  • II. Awareness 3 tips
  • III. Mastery 22 tips
  • IV. Autonomy 10 tips
  • V. Comparison 6 tips
Are you a professional Web developer?

You'll receive the guide by email · You join the Gravitas newsletter · Unsubscribe anytime

of 51
#

Wmedia · 51 Tips
Free guide · 51 tips · 5 chapters

The 51 essentials, as a PDF.

Are you a professional Web developer? · Unsubscribe anytime