ASK KNOX
beta
LESSON 804

Choosing Your Model in Claude Code

Anthropic ships new models every few weeks. If your workflow is built on version numbers, it breaks every few weeks. Build it on aliases and tiers instead — type the role you want, let Claude Code resolve the build, and pick your rung by the job in front of you.

9 min read

You have installed Claude Code, run sessions, managed context, and learned the commands — including /model. Every one of those skills is stable; the workflow you are building in this track will still be the workflow a year from now.

Model names will not be. Anthropic ships new models every few weeks, and each release quietly invalidates any instruction that names a specific one. That is not a problem to solve once; it is a property of the ground you are standing on.

So this lesson does not hand you a list of current model names to memorize. It hands you the two things that survive releases: the alias, which is how you ask for a model by role instead of by build, and the tier, which is how you decide which role the job in front of you deserves. Learn those and you never have to track a version number again.

Aliases: Ask for a Role, Not a Build

When you tell Claude Code which model to use, you can say it two ways.

You can name a specific build — claude-sonnet-4-6 — and get exactly that, indefinitely. Or you can name an alias — sonnet — and Claude Code looks up whichever model currently holds that role and runs it.

The difference is one lookup step, and it decides whether your setup ages well.

Anthropic's own documentation is direct about why aliases exist: they let you select a model "without remembering exact version numbers," and they "point to the recommended version for your provider and update over time."

That is the whole mechanism. An alias is a promise that someone else maintains the mapping. A version string is a promise that you will.

The Ladder: Which Rung Does This Job Deserve?

Aliases tell you how to ask. Tiers tell you what to ask for.

Claude Code's durable model-family rungs include haiku, sonnet, and opus. The current picker also exposes fable where the provider and account support it. These are a trade-off rather than a prestige ranking: Haiku is the fast rung, Sonnet the balanced daily driver, and Opus/Fable are frontier choices for deeper work. Availability and exact resolution are runtime facts; climbing buys depth and costs time or allowance.

The failure mode is not picking "the wrong model" — it is picking one model and never moving. Someone permanently on the fast tier hits walls on work that needed real reasoning. Someone permanently on the deepest tier waits and pays for renaming a variable.

Two composite choices handle common intent. best means "the most capable model I have access to"; in the 2026-08-02 documentation snapshot it resolves to Fable 5 where available and otherwise Opus 5. opusplan uses the current Opus while planning and current Sonnet while executing. Treat both mappings as dated, provider/account-specific snapshots and verify them in /model.

What the Aliases Point At Today

Here is the part that goes stale — which is exactly why it lives in one place instead of scattered through the lesson text.

Read the first three columns as durable guidance and the fourth as a dated snapshot. Provider, account, organization policy, and rollout state can make your picker differ. When the fourth column changes, the decision skill remains intact.

Two aliases carry a [1m] suffix — sonnet[1m] and opus[1m] — which asks for that model's 1-million-token context window. These are aliases, not version pins. Availability depends on model, provider, and plan, so /model is the check for what your account can reach now.

What Climbing Actually Costs You

"Costs money" means different things depending on how you logged in, and the difference matters:

  • On an API key, higher rungs cost more per token. The bill is literal.
  • On a Pro or Max subscription, you are not billed per token at all — you are spending your plan's usage allowance, and the deeper rungs spend it several times faster. Raising /effort does the same. There is no per-token bill to warn you; you simply hit your limit earlier in the day. If you have turned on optional usage credits, work past that limit is billed separately at API rates — so on a subscription, the deeper rungs can cost real money too.

Either way the meter is /usage (also available as /cost). If you find yourself running out of room before the day is done, the first question is not "do I need a bigger plan" — it is "was I sitting on a rung the work did not need?"

Effort: The Second Dial

Model choice is not the only lever. Effort controls how much reasoning the model spends on each step, independent of which model you picked, and it runs low → medium → high → xhigh → max.

Defaults are model-specific and can move. In the first-party 2026-08-02 snapshot, Opus 5 and Sonnet 5 default to high in Claude Code and the Claude API. Run /effort to observe the active setting rather than treating that snapshot as a universal promise. Reach for the dial when the default is mismatched:

  • Lower it for work that is mechanical rather than hard — bulk edits, formatting passes, anything where you already know the answer and just want it typed. You get speed and spend less.
  • Raise it when correctness matters more than turnaround, or when a task has more moving parts than the model seems to be accounting for.

Switch it with /effort in a session, or --effort at launch. Which levels are available depends on the model — and if you ask for one it does not support, Claude Code runs the highest level at or below what you asked for rather than failing. Ask for xhigh on a model that tops out at high, and you get high. It never quietly gives you more than you asked for. /effort auto resets to the model's own default, and max applies to the current session only rather than persisting.

Switching, and Where the Choice Lives

This is the same settings precedence you met in the commands lesson, narrowed to the model setting and with mid-session switching added on top. Four places set your model, and they resolve in this order — the earlier one wins:

  1. /model <alias> mid-session — switches immediately. With no argument it opens a picker. In Claude Code 2.1.153+, Enter persists the highlighted choice as the default; press s for a session-only selection. The picker labels are the source of truth if a later version changes this interaction.
  2. claude --model <alias> at launch — applies to that session alone. This is how you run different models in different terminals at once, which /model cannot do.
  3. The ANTHROPIC_MODEL environment variable — also session-scoped.
  4. Your settings file — the model field, your standing default.

One behavior worth knowing before it surprises you. You can pick up an earlier session instead of starting fresh — claude --continue resumes the most recent one in this directory, and claude --resume gives you a picker of recent sessions. A resumed session keeps the model it was using when you left it, regardless of your current default. That is deliberate — it stops another session's choice from silently changing this one's — but it means "I switched my default and this session did not change" is expected, not a bug.

Keeping Yourself Current Without Chasing Releases

The habit that replaces version-tracking is small: ask the tool, not your memory.

  • /model with no argument lists what your provider, account, and organization policy can actually reach right now — including models that did not exist when you read this. Record the picker output; do not grade yourself against this lesson's dated snapshot.
  • /status shows the active model for the session you are in.
  • claude --help and the model-configuration docs are the authority when something has changed shape rather than just version.

That is the entire maintenance burden. You are not tracking a lineup; you are asking a live system what it currently offers, at the moment you need to know.

Build It

Model selection is configuration, and configuration needs observed evidence. Build a one-page routing worksheet from your own /model, /status, and /effort output. The deliverable is the dated observation plus your decision rule—not a frozen answer key copied from this page.

Bottom Line

Ask for models by alias, not by version: start with the aliases your live picker exposes, including haiku / sonnet / opus, fable where available, best for the account's ceiling, and opusplan when planning and execution deserve different rungs. Aliases carry a lookup step; a full model name freezes a build. Pick from the job, use /effort as the second dial, press s for a session-only picker choice, and use Enter when you deliberately want the 2.1.153+ picker to persist a default. When you need the current contract, ask /model and check the first-party docs. Next: the skill that turns a broken build into a five-minute fix — debugging with Claude Code.