Claude Code models: Fable, Opus, Sonnet, Haiku and /model
Which models Claude Code runs as of November 2026, the default on each plan, /model, --model and settings, pinning, effort, 1M context, and Fable on a plan.
As of November 2026 (Claude Code 2.1.330), Claude Code runs four current Claude models, each with a 1M-token context window: Fable 5.2 (alias fable, the most capable of the four and the priciest), Opus 5.5 (opus), Sonnet 5.5 (sonnet) and Haiku 5.5 (haiku). Pro, Max, Ultra, Team and Enterprise plans and Anthropic API keys all start new sessions on Opus 5.5, and no account starts on Fable. Older models such as Opus 5, Sonnet 5 and Opus 4.8 stay available by their full IDs.
Switch with /model in a session (Enter also saves it as your default, s switches for this session only), claude --model sonnet for one launch, ANTHROPIC_MODEL, or "model" in ~/.claude/settings.json. Aliases move to newer models when Claude Code updates, so pin with a full ID such as claude-opus-5-5. On Amazon Bedrock, Google Cloud’s Agent Platform (formerly Vertex AI) and Microsoft Foundry some aliases point at older models, so pin those with ANTHROPIC_DEFAULT_OPUS_MODEL and its siblings. On a Claude plan every model draws on the same allowance, except Fable: Pro and Team Standard seats pay for it in usage credits, and Max, Ultra and Team Premium seats can spend up to half the weekly limit on it.
The models and aliases, as of Claude Code 2.1.330
From Anthropic’s model configuration page and models overview, read November 23, 2026. Prices are per million input and output tokens on an API key; on a Claude plan the model draws on your allowance instead.
| Model | Alias | Full ID | API price, in / out | Needs Claude Code |
|---|---|---|---|---|
Fable 5.2 | fable | claude-fable-5-2 | $8 / $40 | 2.1.321 or later |
Opus 5.5 | opus, best | claude-opus-5-5 | $4 / $20 | 2.1.280 or later |
Sonnet 5.5 | sonnet | claude-sonnet-5-5 | $2 / $10 | 2.1.284 or later |
Haiku 5.5 | haiku | claude-haiku-5-5 | $0.10 / $0.50; $0.50 / $2.50 for a prompt over 100,000 tokens | 2.1.293 or later |
Anthropic’s one-line descriptions, in the same order: fable is for “your hardest and longest-running tasks”, opus for “complex reasoning tasks”, sonnet for “daily coding tasks” and haiku for “simple tasks”. The model setting takes a few other values:
defaultis a reset rather than a model: it “clears any model override and reverts to the runtime default for your account.”bestis the same model asopussince 2.1.321. Earlier versions sent it to Fable where Fable was available.opus[1m]andsonnet[1m]ask for the 1M window. On the Anthropic API both aliases already land on models that have it, so the suffix changes nothing there; it matters for Opus 4.6 and Sonnet 4.6 (below).opusplanplans on Opus and builds on Sonnet. How it behaves around plan mode is in Claude Code plan mode.- A full ID reaches anything older that your account can call: Fable 5.1 (
claude-fable-5-1), Opus 5 (claude-opus-5), Sonnet 5 (claude-sonnet-5), Opus 4.8 (claude-opus-4-8) and the rest of the overview’s list. On the Anthropic API a retired Opus 4 or Opus 4.1 ID such asclaude-opus-4-1is not refused: the session runs on whateveropusresolves to.
The /model picker shows the current lineup, and /model claude-opus-4-8 selects an older model by name. To keep older models in the picker itself, list them under modelPicker in ~/.claude/settings.json (Claude Code 2.1.242 or later; the key is ignored in project and local settings, so a repository you clone cannot relabel your picker):
{
"modelPicker": {
"options": [
{ "model": "claude-opus-4-8", "label": "Opus 4.8" },
{ "model": "claude-sonnet-5", "label": "Sonnet 5" }
]
}
}CopiedThe rows go after the built-in ones unless you add "replaceBuiltInOptions": true. For a single extra row, the ANTHROPIC_CUSTOM_MODEL_OPTION environment variable does the same.
Which one to use
Anthropic’s own pages lean two ways. The models overview says “start with Claude Opus 5.5 for most workloads” and to use Fable 5.2 “for demanding reasoning and long-horizon agentic work, or when your evals on Claude Opus 5.5 at higher effort still fall short.” Claude Code’s cost guide says “Sonnet handles most coding tasks well and costs less than Opus. Reserve Opus for complex architectural decisions or multi-step reasoning.” Claude Code’s defaults match the first: every kind of account except Foundry starts on Opus 5.5.
For the choice task by task, Anthropic’s post on model and effort in Claude Code (July 2026) reduces it to two questions: “If Claude has all the pertinent context, clearly tried, and still got it wrong, that’s a signal to pick a more capable model. If Claude got it wrong by skipping a file, not running the tests, or bailing on a refactor partway through, pick a higher effort level.” Its point on cost cuts both ways: on routine work a larger model reaches the same result with more tokens at a higher price, while on work that stretches the smaller model, the larger one can come out cheaper per task.
- Fable 5.2 for root-cause investigations, outage debugging and architecture decisions, and for work you would normally break into pieces. Anthropic’s advice is to “describe the outcome, not the steps.” It costs twice Opus 5.5 per token, and on Pro and Team Standard seats it runs on usage credits only.
- Opus 5.5 is where every plan starts, at
mediumeffort. When it falls short, the overview’s order is higher effort first, then Fable. - Sonnet 5.5 at half Opus 5.5’s per-token price, for what the post lists as smaller-model work: “edits you can describe precisely, mechanical changes, or questions about code that’s already in context.”
- Haiku 5.5 for simple tasks, subagents included: the cost guide suggests
model: haikuin a subagent’s definition (Claude Code subagents covers where that goes). On an API key mind the price step at 100,000 prompt tokens: Claude Code sends the system prompt, tools, CLAUDE.md and conversation with every request, so a long session crosses it.
Which model a new session starts on
With nothing set, the default setting decides, and it depends on how you sign in:
- Pro, Max, Ultra, Team, Enterprise, or an Anthropic API key: Opus 5.5.
- Amazon Bedrock, Google Cloud’s Agent Platform, Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed): Opus 5.5.
- Microsoft Foundry: Sonnet 4.5.
Before 2.1.280, Claude Code started Pro and Team Standard seats on Sonnet 5, and other plans and API keys on Opus 5 or older, so a machine that has not updated in a while starts somewhere else. No account starts on Fable, but once you pick it with /model it is saved, and later sessions start on it.
Two settings move the starting point. On Enterprise, an admin can set an organization default for everyone or per role (Claude Code 2.1.196 or later); the picker’s Default row then reads Org default, and if the admin also lets it override your own pick, /model tells you Your organization's default (<model>) applies on restart. And ANTHROPIC_DEFAULT_MODEL (2.1.236 or later) sets your own starting model, used only when no flag, ANTHROPIC_MODEL, settings file or organization default chooses one; it is ignored when set to default, inherit, opusplan or haiku.
To see which model you are on, run /status, or put the model in your status line. Since 2.1.326 the picker’s Default row names your plan’s default model, not one you saved.
Switching models, and which setting wins
Five places set the model. When more than one does, the higher one in this list wins:
/model <alias or ID>in a session, or/modelalone for the pickerclaude --model <alias or ID>at launch- The
ANTHROPIC_MODELenvironment variable "model"in a settings fileANTHROPIC_DEFAULT_MODEL
claude --model sonnet # this session only
claude --model claude-opus-5-5 # a pinned version
ANTHROPIC_MODEL=haiku claude -p "list the TODOs in src/"CopiedIn the picker, Enter switches and saves the model as your default, by writing model to ~/.claude/settings.json; s on a row switches for this session only, and the left and right arrows set the effort level on models that have one. Typing /model sonnet behaves like Enter. --model and ANTHROPIC_MODEL cover only the session they launch, which is how to run different models in two terminals at once: Anthropic’s advice is a separate --model for each, not /model. In a claude -p run, /model applies to that run only (2.1.205 or later).
For a fixed default, use a settings file. ~/.claude/settings.json covers you in every project, a project’s .claude/settings.json covers everyone who uses the repository, and your own .claude/settings.local.json in that project overrides the shared one for you alone:
{
"model": "sonnet"
}CopiedTwo things catch people out. A mistyped name in --model, ANTHROPIC_MODEL or model is not rejected at startup (at most a warning suggests the closest name); the session opens and its first request fails with:
There's an issue with the selected model (claude-...). It may not exist or you may not have access to it. Run /model to pick a different model.CopiedAnd a switch mid-conversation has a cost: each model keeps its own prompt cache, so the next request re-reads the whole conversation with no cache hits, which is why Claude Code asks you to confirm a switch while the cache is still warm. A switch also reaches the subagents that inherit your session’s model.
When a new session starts on another model
- You chose it for one session:
sin the picker,--model, or/modelinside-p. - Something higher sets it every launch:
ANTHROPIC_MODELexported in your shell profile, amodelin the project’s settings or your organization’s managed settings (the startup header names the file), or an Enterprise default set to override. - Claude Code could not save it:
~/.claude/settings.jsonis not writable, for example because another tool generates it or links it to a read-only copy. - You resumed a session:
claude --resumeand--continueusually keep the model the session was saved on (not on Bedrock, Agent Platform or Foundry, or when an alias variable is set). Pass--modelto resume on another.
Pinning a version
An alias is a pointer that Claude Code moves when a new model ships. The model configuration page’s version history lists the moves on the Anthropic API: opus to Opus 5.5 at 2.1.280, sonnet to Sonnet 5.5 at 2.1.284, haiku to Haiku 5.5 at 2.1.293 and fable to Fable 5.2 at 2.1.321. A setup that names an alias therefore changes model on an ordinary update. To hold a version, use the full ID wherever you set the model, or point the alias itself at an ID:
| Variable | What it sets |
|---|---|
ANTHROPIC_DEFAULT_FABLE_MODEL | fable |
ANTHROPIC_DEFAULT_OPUS_MODEL | opus, and opusplan while planning |
ANTHROPIC_DEFAULT_SONNET_MODEL | sonnet, and opusplan once you build |
ANTHROPIC_DEFAULT_HAIKU_MODEL | haiku and background work; replaces the deprecated ANTHROPIC_SMALL_FAST_MODEL |
CLAUDE_CODE_SUBAGENT_MODEL | Subagents, agent-team teammates and workflow agents that have no model of their own |
export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5-5
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5CopiedEach value must be a full model ID, or your provider’s form of one, and the alias variables also decide which version your account’s default runs on.
The other direction fails loudly: a model newer than your Claude Code is refused by the API with a 400 naming the version it needs, and the table above lists today’s minimums. As of November 23, 2026 npm’s stable tag is 2.1.323 and latest is 2.1.330, so both run every current model, but a model launched later can need a version the stable channel has not reached. The fix, channel switch included, is in “Claude Code does not support this model”, and the update commands for each install method in how to update Claude Code.
Two moves happen on their own. On Pro, Max and Ultra, a claude-fable-5-1 saved in your user settings becomes the fable alias, and so Fable 5.2, the first time you run 2.1.321 or later, and the startup line can show (auto-updated) once; on Team and Enterprise the move waits on your organization’s settings, and Console accounts, cloud providers and a claude-fable-5-1 in project, local or managed settings keep 5.1. And when a model you name is scheduled for retirement or remapped, Claude Code warns at startup. In claude -p that warning goes to stderr with text output; with --output-format json it is suppressed, and the model that answered is in the result’s modelUsage field.
Effort, thinking and fast mode
Effort controls how much work Claude does per turn, and both its range and its starting point depend on the model:
| Model | Effort levels | Claude Code’s default |
|---|---|---|
Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5 | low, medium, high, xhigh, max | medium |
Fable 5.1 and 5, Opus 5, Sonnet 5, Opus 4.8 | low to max | high |
Opus 4.7 | low to max | xhigh |
Opus 4.6, Sonnet 4.6 | low, medium, high, max | high |
Any other model, such as Haiku 4.5 | No effort setting | None |
Set it with /effort (a slider, or /effort high), the arrows in /model, claude --effort high for one session, the CLAUDE_CODE_EFFORT_LEVEL environment variable, or per model in your settings. Claude Code takes the first of these that applies: the environment variable, then a level picked in the session, then --effort, then settings, then the model’s default. A level you save is stored per model:
{
"modelSettings": {
"claude-opus-5-5": {
"effortLevel": "high"
}
}
}Copied- The old
effortLevelkey does not reach Opus 5.5. A top-leveleffortLevelin~/.claude/settings.jsonstill applies to Opus 5, Fable 5.1 and older models, but Opus 5.5 and the models after it start at their own default until you pick a level for them. In project, local or managed settings the same key applies to every model. maxlasts one session unless it comes fromCLAUDE_CODE_EFFORT_LEVEL, and neither settings key accepts it. Anthropic warns that it “may show diminishing returns and is prone to overthinking.”- A level the model lacks steps down to the highest level it has below the one you set:
xhighruns ashighon Opus 4.6. ultrathinkanywhere in a prompt asks for deeper reasoning on that turn alone, and in the terminal (2.1.311 or later) can also raise the turn toxhighon Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2 or 5.1, though not on Bedrock or Agent Platform.- Claude Code’s default is not the API’s. With
CLAUDE_CODE_EFFORT_LEVEL=autoClaude Code sends no level and the API’s own default applies, which the models overview gives ashighfor Fable 5.2 and Sonnet 5.5 andmediumfor Opus 5.5 and Haiku 5.5.
Thinking cannot be switched off on Fable, Opus 5.5, Sonnet 5.5 or Haiku 5.5. The Option+T (macOS) or Alt+T toggle and the /config row show Thinking can't be turned off there, and MAX_THINKING_TOKENS=0 has no effect; lower the effort instead. On the Anthropic API, to run without thinking, pick an older model by ID, such as claude-opus-5, claude-sonnet-5 or claude-haiku-4-5, since the aliases all land on models where thinking stays on. On Bedrock and Foundry, adaptive models may still think with it off.
Fast mode (/fast) runs the same model up to 2.5 times faster at a higher price per token. On the Anthropic API it works on Fable 5.2, Opus 5.5, Opus 5 and Opus 4.8, not on Sonnet or Haiku, and turning it on from an unsupported model switches you to Opus. Per the fast mode page it costs $8 / $40 per million tokens on Opus 5.5 (against $4 / $20) and $16 / $80 on Fable 5.2, and on a Claude plan it runs on usage credits only. Fast mode for Opus 4.8 will be removed on November 30, 2026, after which the API rejects those requests: switch to Opus 5.5, or run /fast off to stay on Opus 4.8 at normal speed.
Context window: 1M tokens by default
Fable, Sonnet 5 and later, Haiku 5.5 and Opus 4.7 and later run with the 1M-token window with no suffix, on Bedrock, Agent Platform and Foundry too. The [1m] suffix matters only for Opus 4.6 and Sonnet 4.6, which reach 1M through it alone, and whether that costs extra depends on the plan:
| Plan | claude-opus-4-6[1m] | claude-sonnet-4-6[1m] |
|---|---|---|
Max, Ultra, Team, Enterprise | Included | Usage credits |
Pro | Usage credits | Usage credits |
API key | Full access | Full access |
Picked without credits on a plan that needs them, the variant fails with:
API Error: Usage credits required for 1M context · run /usage-credits to turn them on (they take effect after you restart Claude Code), or /model to switch to standard contextCopiedOn an API key the 1M window is billed at the standard rate all the way, with one exception: Haiku 5.5 charges $0.50 / $2.50 per million tokens instead of $0.10 / $0.50 for any request whose prompt is over 100,000 tokens, cached tokens included, per Anthropic’s pricing page. Sessions on a 1M model compact at about 967,000 tokens by default. To compact sooner, set a smaller window for the current model with /autocompact 200k (the smallest it takes is 100K), or hold every model at 200K with CLAUDE_CODE_DISABLE_1M_CONTEXT=1.
How the model you pick draws on a Claude plan
Within a plan’s limits you pay no per-token price, but the model still sets how fast you use them up: Anthropic’s limits article names “which Claude model you’re chatting with, and the effort level you’ve selected” among what drives usage.
- The five-hour and weekly limits are shared by every model, so switching does not get you past them. Claude Code can also report a limit for one family,
You've hit your Opus limitorYou've hit your Sonnet limit, and there/modelto a model outside that family keeps you working. - Fable, per Anthropic’s article on Fable models: on Max, Ultra and Team Premium seats you “can use up to 50% of your weekly usage limits on Fable models at no extra cost,” and Fable uses them “faster than other Claude models”; past that, it is usage credits or another model. On Pro and Team Standard seats, “Fable models aren’t included in your plan’s usage limits” and run on usage credits from the first request. The limits article adds that “some plans also have a separate weekly limit for Fable.” The plans themselves are in which Claude plans include Claude Code.
- Fable’s usage credits are flagged before they are spent, except in scripts. The picker marks a Fable row Requires usage credits, and an interactive session can ask for your consent; once you agree, it stops asking. A
claude -prun never asks: “When a Fable request there would bill to usage credits, Claude Code bills it without asking.” - Fast mode and Sonnet 4.6’s 1M variant bill usage credits on every plan; Opus 4.6’s 1M variant is included on every plan but Pro.
- A plan change needs a fresh sign-in. After upgrading, run
/logoutthen/login: the stored token “reflects your plan at the time you signed in.”
How much of each limit is left, and when it resets, is in checking your Claude Code usage.
On Bedrock, Agent Platform (Vertex AI) and Foundry
On a cloud provider each alias resolves to that provider’s built-in default, which can lag Anthropic’s newest release:
| Provider | opus | sonnet | haiku | New sessions start on |
|---|---|---|---|---|
Anthropic API | Opus 5.5 | Sonnet 5.5 | Haiku 5.5 | Opus 5.5 |
Claude Platform on AWS | Opus 5.5 | Sonnet 4.6 | Haiku 4.5 | Opus 5.5 |
Claude Models on Google Cloud (Anthropic managed) | Opus 5.5 | Sonnet 5.5 | Haiku 4.5 | Opus 5.5 |
Amazon Bedrock, Google Cloud’s Agent Platform | Opus 5.5 | Sonnet 4.5 | Haiku 4.5 | Opus 5.5 |
Microsoft Foundry | Opus 4.6 | Sonnet 4.5 | Haiku 4.5 | Sonnet 4.5 |
So on Bedrock or Agent Platform, /model sonnet gives you Sonnet 4.5 where the Anthropic API gives Sonnet 5.5. Anthropic’s instruction for these providers is to “set the model environment variables to specific version IDs as part of your initial setup,” in your provider’s form: an inference profile ID or ARN on Bedrock (the default there reads like us.anthropic.claude-opus-5-5 in a us-* region), a version name on Agent Platform, a deployment name on Foundry. On Agent Platform, with the IDs the models overview lists for it:
export CLAUDE_CODE_USE_VERTEX=1
export CLOUD_ML_REGION=global
export ANTHROPIC_VERTEX_PROJECT_ID=YOUR-PROJECT-ID
export ANTHROPIC_DEFAULT_OPUS_MODEL='claude-opus-5-5'
export ANTHROPIC_DEFAULT_SONNET_MODEL='claude-sonnet-5-5'CopiedThe switch for Bedrock is CLAUDE_CODE_USE_BEDROCK=1 and for Foundry CLAUDE_CODE_USE_FOUNDRY=1. What else differs there:
- An unpinned default your account lacks. On Bedrock and Agent Platform a startup check falls back to an earlier version for that session, and from Opus to Sonnet if no Opus is enabled. On Foundry the session switches to an older model with a message starting
Switched to <fallback> because <model> is not available, or the request fails. - The bill. On Bedrock and Agent Platform, “Opus models have a higher per-token price than Sonnet models, so if you don’t pin a primary model, you’re billed at the Opus rate.” The picker shows no prices on any of these providers.
- Background work such as naming sessions usually runs on a Haiku-class model, but on Bedrock and Agent Platform Claude Code uses the default Sonnet for it, and on Foundry your primary model, because Haiku may not be enabled. Set
ANTHROPIC_DEFAULT_HAIKU_MODELto a Haiku your account has to change that. - Features on IDs Claude Code does not recognise. Effort and thinking are turned on by matching the model ID, which an ARN or a custom deployment name may not match.
ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIESand its siblings declare them, as a list such aseffort,xhigh_effort,max_effort,thinking,adaptive_thinking,interleaved_thinking. - Several versions of one family go in a
modelOverridesmap from Anthropic model IDs to your provider’s IDs, so each picker row calls the right inference profile or deployment.
Pointing ANTHROPIC_BASE_URL at a gateway “changes where requests are sent, not which model answers them.” Running Claude Code on models that are not Claude is a separate, unsupported setup, covered in Claude Code Router.
When the model changes without you
- A safety classifier flagged the request. Fable, Opus 5.5, Sonnet 5.5 and Opus 5 run with classifiers that “most often flag cybersecurity and biology content.” A flagged request re-runs on another model (from Fable or Opus 5.5, Opus 4.8 for cybersecurity and Opus 5 for biology; from Sonnet 5.5, Sonnet 5 for cybersecurity), and the session stays there until you run
/model. To be asked first, choose Ask each time under Switch models when a message is flagged in/config, or set"switchModelsOnFlag": false. The first request carries your CLAUDE.md and git status, so a repository with security or biology material can trip it before you type anything unusual;claude --safe-modestarts without your customisations, to test whether they are the trigger. - A fallback chain took over. With
--fallback-model sonnet,haikuor afallbackModelarray in settings, an overloaded or unavailable model hands the turn to the next entry, for that turn only and up to three models. Nothing at startup or in/statusshows the chain; the notice at the switch is the first sign of it. - Your organization restricts the model.
Model "<name>" is restricted by your organization's settings. Using <model> instead.means an admin disabled it or managed settings exclude it. On the Anthropic API an alias then lands on the newest version of its family that is allowed. - A resumed session, a saved Fable 5.1 pick, or a retired Opus 4 ID, each covered above.