Claude Code now compacts near 400K tokens by default, not 967K Claude Code now compacts context at roughly 400K tokens by default rather than 967K, according to Anthropic's Claude Code documentation. The same documentation details model selection via aliases such as opus, sonnet, haiku and fable, and states that Sonnet 5.5 requires Claude Code v2.1.284 or later, Opus 5.5 requires v2.1.280 or later, and Haiku 5.5 requires v2.1.293 or later. Users on Pro, Max or Ultra plans running v2.1.321 or later have a saved claude-fable-5-1 model setting moved to the fable alias, while Team and Enterprise plans wait on organization settings. For the model setting in Claude Code, you can configure either: - A model alias - A model name - Anthropic API: a full model name https://platform.claude.com/docs/en/about-claude/models/overview - Amazon Bedrock: an inference profile ARN - Microsoft Foundry: a deployment name - Google Cloud’s Agent Platform: a version name - Anthropic API: a full Choosing a Claude model and effort level in Claude Code https://claude.com/blog/claude-model-and-effort-level-in-claude-code on the blog. ANTHROPIC BASE URL changes where requests are sent, not which model answers them. To route Claude through an LLM gateway, see LLM gateways https://code.claude.com/docs/en/llm-gateway . Use a model alias to select model settings without remembering exact version numbers: The opus , sonnet , and haiku aliases resolve to the newest version on the Anthropic API and to an earlier version on some other providers: Unless you set ANTHROPIC DEFAULT FABLE MODEL , the fable alias resolves to Fable 5 in Claude apps gateway https://code.claude.com/docs/en/claude-apps-gateway sessions and to Fable 5.2 everywhere else. A gateway that isn’t configured to serve claude-fable-5-2 rejects requests for that model. To use Fable 5.2 through a gateway that serves it, select it with /model claude-fable-5-2 . Where opus or sonnet resolves to an older model, newer models are available by selecting the full model name explicitly or setting ANTHROPIC DEFAULT OPUS MODEL or ANTHROPIC DEFAULT SONNET MODEL . Earlier versions resolve these aliases to older models. For the version at which each alias changed, see Version history version-history . Aliases point to the recommended version for your provider and update over time. To pin to a specific version, use the full model name, for example claude-opus-5-5 , or set the corresponding environment variable like ANTHROPIC DEFAULT OPUS MODEL . Sonnet 5.5 requires Claude Code v2.1.284 or later, and Opus 5.5 requires v2.1.280 or later. If a request for one of them from an older version fails, see Claude Code does not support this model https://code.claude.com/docs/en/errors claude-code-does-not-support-this-model . Use v2.1.293 or later with Haiku 5.5. Run claude update to upgrade. Claude Fable models https://platform.claude.com/docs/en/about-claude/models/overview are the most capable models in Claude Code, suited to tasks larger than a single sitting. They sustain long autonomous sessions, investigate before acting, and verify their work more often than smaller models. No Fable model is the account-type default on any plan or provider. Select one explicitly: - Fable 5.2 : run /model fable , or launch with claude --model fable . In Claude apps gateway https://code.claude.com/docs/en/claude-apps-gateway sessions, run /model claude-fable-5-2 instead. - Fable 5.1 or Fable 5 : select it by model ID. On the Anthropic API, run /model claude-fable-5-1 or /model claude-fable-5 , or launch with claude --model claude-fable-5-1 . On other providers, use your provider’s model ID or pin it pin-models-for-third-party-deployments with ANTHROPIC DEFAULT FABLE MODEL . claude-fable-5-1 model saved in your user settings moves to the fable alias: - Pro, Max, or Ultra plan : the move happens the first time you run v2.1.321 or later. In the terminal, the startup model line can show auto-updated once. - Team or Enterprise plan : the move waits for your organization’s settings, so it can come at a later startup, or not at all. It applies from the next session, with no auto-updated line. To check your model, run /model . set a level adjust-effort-level for it. Console accounts, third-party providers, and project, local, or managed settings keep claude-fable-5-1 . Requests that a Fable model’s safety classifiers flag, most often in cybersecurity and biology domains, trigger automatic model fallback automatic-model-fallback . To get the most from Fable: - Describe the outcome, not the steps : hand it the result you want and let it plan the path. To keep it working toward that outcome, set a goal https://code.claude.com/docs/en/goal . - Hand it ambiguous problems : root-cause investigations, outage debugging, and architecture decisions are where the extra investigation and verification pay off. - Skip the verification reminders : it verifies its own work with less prompting, so reminders to test or check are usually unnecessary. - Size up larger tasks : give it work you would normally break into pieces. It holds long sessions without losing the thread. Fable 5.2 requires Claude Code v2.1.321 or later, and Fable 5.1 requires v2.1.257 or later. If a request for one of them from an older version fails, see Claude Code does not support this model https://code.claude.com/docs/en/errors claude-code-does-not-support-this-model . Run claude update to upgrade. For availability under zero data retention, see Model availability under ZDR https://code.claude.com/docs/en/zero-data-retention model-availability-under-zdr . /model picker unless or restrict-model-selection availableModels organization model restrictions organization-model-restrictions exclude it. When your organization can’t use Fable at all, for example under zero data retention https://code.claude.com/docs/en/zero-data-retention model-availability-under-zdr , the row stays in the picker grayed out, with a note on why. Depending on your plan and seat tier, Fable usage can bill to usage credits https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans instead of drawing on your plan’s included limits. When it does, the /model picker shows “Requires usage credits” on the Fable row. To manage usage credits, see Add usage credits to your subscription https://code.claude.com/docs/en/costs add-usage-credits-to-your-subscription . In interactive sessions, Claude Code can show a Fable usage-credits consent prompt. You can continue on Fable using usage credits or switch to your default model. You can also dismiss the prompt: - When you select a Fable model with /model , you keep your current model. - Mid-session, Claude Code either ends the turn https://code.claude.com/docs/en/errors the-prompt-to-confirm-went-unanswered or continues it on your default model. /login and continue on Fable at the terminal or in VS Code, Claude Code saves that choice for later sessions. With Remote Control https://code.claude.com/docs/en/remote-control connected in an interactive terminal session, you can also answer the mid-session prompt on your device, and that answer lasts for that session. Answering on your device requires Claude Code v2.1.323 or later. The mid-session prompt waits until you answer. It can instead close at the deadline, five minutes by default, in these sessions: https://code.claude.com/docs/en/settings-reference dialogexpiry dialogExpiry - A session with Remote Control connected - A split-pane teammate https://code.claude.com/docs/en/agent-teams choose-a-display-mode session - A background session https://code.claude.com/docs/en/agent-view - A session in an Agent SDK https://code.claude.com/docs/en/agent-sdk/overview application such as VS Code non-interactive mode https://code.claude.com/docs/en/headless with the -p flag, and in an Agent SDK application that doesn’t show the prompt, Claude Code never asks for consent. When a Fable request there would bill to usage credits, Claude Code bills it without asking. You can configure your model in several ways, listed in order of priority: 1. During session : use /model