← Claude Code Hub
Mar 2, 2026 · 4 min read ✦ Tip #021

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.

Update, October 31, 2026: since v2.1.198 Claude Code's Explore agent no longer runs on Haiku: it inherits your session's model. If you want exploration on Haiku, set it up yourself with a subagent of your own.

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 used to apply this logic internally: its Explore agent ran on Haiku for fast codebase searches. Since v2.1.198 it inherits your session's model (and, if you're on Fable, usually Opus), so the split is up to you. 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.5 (before it, Sonnet 5), which on well-scoped tasks does the same work as Opus 5.5 at half the cost.

/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. It's the split Claude Code used to make with its Explore agent: each task gets the right model for the job. If you want exploration back on Haiku, create a subagent of your own named Explore with model: haiku, which overrides the built-in one.

Reference

Model Alias Relative cost Best for
Opus 5 opus $$$ Architecture, complex debugging, design decisions
Sonnet 5.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.

Found this useful? See more of wmedia.es in your Google results.

Add wmedia.es as a preferred source on Google
FREE GUIDE

From the terminal to Desktop, as a guide.

Moving from the terminal to Claude Code Desktop is easy to start and easy to leave half done. 8 pages to keep beside you: day one, the map of the window, the shortcuts and your first cloud routine.

  • 1. Day one import your sessions
  • 2. The window map and shortcuts
  • 3. Conversations which to open and two prompts
  • 4. Panels which to use for what
  • 5. Routines your first in the cloud
Are you a professional Web developer?

You'll receive the guide by email · Unsubscribe anytime

of 8
#

Wmedia · 8 pages
FREE GUIDE · 8 pages · 2 prompts

From the terminal to Desktop, as a guide.

Moving from the terminal to Claude Code Desktop is easy to start and easy to leave half done. 8 pages to keep beside you: day one, the map of the window, the shortcuts and your first cloud routine.

Are you a professional Web developer? · Unsubscribe anytime

Moving from the terminal to Claude Code Desktop?