TL;DR The million-token context window is no longer one model's feature, and not every model carries it the same way: Sonnet 5, Fable 5, Haiku 5.5 and Opus 4.7 onwards always run at 1M with no suffix and no credits, while Opus 4.6 and Sonnet 4.6 switch it on with
[1m]and it depends on your plan. No per-token surcharge, except on Haiku 5.5 once the prompt passes 100K. And the old advice still holds: room to fill is not a reason to fill it.
Correction (August 2026): this tip was written when 1M was an Opus 4.6 novelty and it said Claude Code launched on that model by default. Not anymore. Today it is supported by Fable 5, Sonnet 5, Haiku 5.5, Sonnet 4.6 and every Opus from 4.6 onwards (natively from 4.7), the default model depends on your plan, and the distinction that matters is not who has it but how each one turns it on.
The context window goes from 200K to 1M: five times more room before Claude needs to compact. Longer sessions, fewer interruptions, and the ability to work across whole monorepos without fragmenting context.
But there's a catch: model performance degrades with distant tokens. This is known as context drift, and the further information sits from the current point in the conversation, the less accurately the model retrieves it. Just because you can fill 1M tokens doesn't mean you should.
Native or suffixed, which is not the same thing
Here is the distinction almost nobody has straight, and it is the one that decides whether you have to do anything at all:
| Model | How 1M turns on | What it costs |
|---|---|---|
| Sonnet 5 | Native. There is no 200K variant and no [1m] suffix to pick |
Nothing extra, on any plan |
| Fable 5 | Native, same as Sonnet 5 | Nothing extra |
| Haiku 5.5 | Native, same as Sonnet 5 | Nothing extra (per token, pricier on prompts over 100K) |
| Opus (4.7 onwards) | Native, same as Sonnet 5 | Nothing extra |
| Opus 4.6 | With the suffix: claude-opus-4-6[1m] |
Included on Max, Team and Enterprise. Pro needs usage credits |
| Sonnet 4.6 | With the suffix: claude-sonnet-4-6[1m] |
Needs usage credits on every plan |
| API and pay-as-you-go | Depends on the model | Full access |
There is no per-token surcharge, except on Haiku 5.5, which goes from $0.10/$0.50 to $0.50/$2.50 per MTok once the prompt passes 100K. The official docs put it this way:
"On the Anthropic API, the 1M context window uses standard model pricing with no premium for tokens beyond 200K, except on Haiku 5.5, which costs more on prompts longer than 100K tokens."
If you are on Sonnet 5, Fable 5 or Opus 4.7 onwards, you already have the million without touching anything. On Opus 4.6 or Sonnet 4.6 you don't: there the suffix is on you.
Sonnet 5.5, the sonnet since v2.1.284, carries it natively too: sonnet[1m] does nothing on it.
And if you're wondering whether Claude Code is usable without a monthly subscription, API pay-as-you-go is the short answer, and the full picture, including the free-plan trap and the Open Source program, is here.
How to use it without wasting context
1. Monitor with /context
Use the /context command to see how much context you're consuming in real time. Don't wait for Claude to auto-compact, get ahead of it.
2. Compact before Claude does
Auto-compaction fires as the context approaches its limit, and that limit is the smaller of two things: your auto-compact window and the model's maximum context. On models with native 1M (Fable, Sonnet 5 onwards, Haiku 5.5 and Opus 4.7 onwards), with the window on auto, that lands around 967K tokens. By the time it fires on its own you have already lost precision on older tokens, so compact yourself:
/compact focus on the authentication module
The optional instructions tell Claude what to prioritize when summarizing.
3. Don't load context you don't need
Having 1M doesn't mean you should load the whole codebase. Load selectively: specific directories, relevant files. Claude reads on demand; you don't need to pre-load everything.
On top of the accuracy reason there's a spending one: whatever you load in there isn't paid for once, it gets re-sent on every turn the session has left. A window five times larger doesn't lower that cost, it gives it five times more room.
4. Select the 1M variant when your model needs it
Only Opus 4.6 and Sonnet 4.6 need this. The suffix goes on the full model name:
/model claude-opus-4-6[1m]
/model claude-sonnet-4-6[1m]
Or when launching Claude Code:
claude --model claude-opus-4-6[1m]
It works on an alias too, but it applies to whatever model the alias points to: on the Anthropic API, opus and sonnet are already Opus 5.5 and Sonnet 5.5, with native 1M, and there opus[1m] or sonnet[1m] does nothing.
5. Control when compaction triggers
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE lowers the threshold percentage at which compaction fires (it can only bring it forward, never push it back, and it only applies in sessions that compact before the model's context limit):
export CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=70
That is the threshold as a percentage. The size of the window that percentage is measured against is a separate thing, and four different places can set it: who decides your auto-compact window. That tip also carries Claude Code's own warning, which cuts against intuition: lowering the window doesn't save you anything, it just makes you compact more often.
6. Turn it off entirely
export CLAUDE_CODE_DISABLE_1M_CONTEXT=1
It removes the 1M variants from the model picker. And on the models that ship with it (Fable, Sonnet 5 onwards, Haiku 5.5 and Opus 4.7 onwards) it goes further: it treats them as having a 200K window, and they compact at that boundary.
Reference
| Aspect | Detail |
|---|---|
| Classic window | 200K tokens |
| Extended window | 1M tokens |
| Native 1M, no suffix | Fable, Sonnet 5 onwards, Haiku 5.5, Opus 4.7 onwards |
1M via [1m] suffix |
Opus 4.6, Sonnet 4.6 |
| Syntax | claude-opus-4-6[1m], claude-sonnet-4-6[1m] |
| Auto-compaction threshold | The smaller of your auto-compact window and the model's maximum (~967K on native 1M models with auto) |
| Lower the percentage | CLAUDE_AUTOCOMPACT_PCT_OVERRIDE (1 to 100, only brings it forward) |
| Disable 1M | CLAUDE_CODE_DISABLE_1M_CONTEXT=1 |
| Per-token price | No surcharge: the same rate across the whole window, except on Haiku 5.5, which charges more per token once the prompt passes 100K |
Official docs: Model configuration, extended context
Part of the 10 habits to save tokens in Claude Code. And which of the three models to reach for is in Sonnet 5, Opus 5 and Fable 5.
Checked on Claude Code v2.1.293.