In short.
Claude Code's model configuration guide is a practical reference for developers and administrators, but its controls require matching to the provider, account and installed version. It explains how to select models, adjust reasoning effort, manage conversation capacity and restrict organizational access. Important distinctions include that interactive /model choices normally become saved defaults, aliases can change after upgrades, availability fallback lasts one turn, and safety-classifier fallback can change the continuing session. Administrators also need more than an initial model setting to enforce restrictions. The page supplies detailed configuration examples and compatibility notices, but exact prices, independent performance measurements and observed behavior are unavailable; nothing was executed.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is the complete selected documentation page at [https://code.claude.com/docs/en/model-config.md], including its examples, tables, version history and embedded notices about compatibility, credits, fallback, thinking, context limits and organizational controls. All linked pages, including the documentation index, are excluded. Product binaries, SDK implementations and provider services were not assessed directly. All operational descriptions come from the documentation; nothing was executed or tested.
The overview
Identity
The resource is the Model configuration reference in Claude Code's documentation at [https://code.claude.com/docs/en/model-config.md]. It covers the model answering requests, reasoning effort, extended thinking, conversation capacity, automatic conversation summarization, fallback routing and organizational controls.
Its provider-specific guidance includes the Anthropic API, Amazon Bedrock, Microsoft Foundry, Google's Agent Platform, Claude Platform on AWS, Anthropic-managed Google Cloud models and gateways.
Assessment
The guide's strongest practical value is explaining side effects that are easy to miss: model changes can become persistent defaults, an alias can resolve differently across providers, and fallback can change which model handles work. Its commands, configuration examples and version notes make these distinctions actionable.
It supports decisions about configuration and deployment consistency. It does not establish which model will produce the best code, lowest bill or fastest completion for a particular project.
Users
Individual developers can use the interactive model and effort controls to adjust everyday coding sessions. Beginners get concrete commands, while experienced users get detailed precedence rules, environment variables, resumed-session behavior and deployment mappings.
Administrators managing shared installations, provider deployments or model budgets benefit from the sections on allowed models, release restrictions, role-specific defaults, effort caps and settings delivery. Gateway operators also get guidance on custom model identifiers and mismatched context limits.
Capabilities
The page documents model selection through /model, launch flags, environment variables and settings. It covers the fable, opus, sonnet and haiku aliases, explicit model identifiers, and opusplan, which uses Opus for planning and Sonnet for execution.
It also explains reasoning effort, the one-turn ultrathink keyword, Ultracode workflow orchestration, one-million-token context windows, auto-compaction, fallback chains and prompt-cache controls. Deployment features include custom picker entries, capability declarations and modelOverrides mappings from Anthropic model IDs to provider-specific identifiers.
Using it
Requirements
Applying the instructions requires an installed Claude Code version and account or provider access to the intended model. Custom deployments may require provider-specific identifiers, such as Bedrock inference profile ARNs, Foundry deployment names or Google's Agent Platform version names. Installation and authentication procedures are not fully covered.
The page specifies Claude Code v2.1.280 or later for Opus 5.5, v2.1.284 for Sonnet 5.5, v2.1.293 for Haiku 5.5 and v2.1.321 for Fable 5.2. The deniedModels and availableModelsMatch release controls require v2.1.283 or later; earlier clients ignore them. Model access can also depend on organizational restrictions and account eligibility.
Mechanism
The documented model-selection priority is an in-session choice, --model, ANTHROPIC_MODEL, the model setting, then ANTHROPIC_DEFAULT_MODEL, with additional organization and host rules. Interactive /model choices normally save to user settings; pressing s in the picker applies a choice only to that session. Aliases resolve to provider-dependent versions and can change over time. The default value clears an override and resolves through the applicable account and configuration rules.
Effort controls how much adaptive reasoning a supported model uses. CLAUDE_CODE_EFFORT_LEVEL outranks session choices, launch flags and saved settings, while applicable caps still limit the result. Effort scales are calibrated separately for each model. Ultracode is a workflow setting; passing --effort ultracode also selects xhigh effort.
Availability fallback tries configured alternatives in order, keeps up to three after removing duplicates, and lasts for the current turn. Authentication, billing, rate-limit, request-size, transport and organization-policy errors do not trigger it. Separately, safety classifiers can cause requests to run again on another model, after which the main session continues on that fallback model.
Setup
For a launch-specific model choice, use claude --model followed by an accessible alias or model ID. Within an interactive session, /model opens the picker; Enter switches and saves a default, while s switches for the session. Use /effort to choose a supported reasoning level and /status to inspect the active model. Environment-variable changes require starting a new session.
For a restricted deployment, the guide recommends combining a non-empty availableModels list with enforceAvailableModels: true. The model setting supplies the initial choice, and alias variables can pin particular versions. Release restrictions can additionally use deniedModels or availableModelsMatch set to exact, with requiredMinimumVersion preventing older clients from ignoring those controls. Settings must be delivered to the environment where the session actually runs.
Example
The page illustrates starting a session with claude --model opus, then switching within it using /model sonnet. The launch flag applies to that launch, but the interactive /model command normally saves Sonnet as the default for later sessions. To switch without saving, open /model and press s on the desired row.
For conversation management, /autocompact 500k saves a 500,000-token auto-compact window for the current model, subject to higher-priority settings and the model's context limit. /autocompact auto returns to the tuned window. These are documented behaviors; the commands were not run.
Assessment & evidence
Limitations
Model selection is not a guarantee that the named model will handle every request. Availability rules, organizational restrictions and safety classifiers can cause substitution or refusal. Security or biology material in repository context can trigger classifier fallback on the first request. With Ask each time enabled, a flagged subagent fails instead of pausing for consent.
Claude Code cannot detect a lower context limit enforced by a gateway. Unknown model IDs can receive an assumed context window that needs correction. Configuration syntax also matters: /autocompact 200 means 200,000 tokens, while CLAUDE_CODE_AUTO_COMPACT_WINDOW=200 is read as 200 tokens and treated as the minimum window. Explicit capability declarations enable listed capabilities and disable unlisted ones.
Administrative coverage depends on delivery. Device-managed files do not reach Anthropic-hosted cloud sessions, and server-managed settings have documented exceptions, including Claude Tag and local Cowork sessions. availableModels alone does not fully restrict the Default option. Even with enforcement enabled, a non-empty list containing no usable model causes enforcement to be skipped with a debug-only warning.
Reasoning
The guide makes reproducibility, billing and governance central to configuration decisions. An alias offers convenient updates; an explicit model ID makes the intended version clearer. Fallback can still change the model used, so the effective model matters as well as the requested setting. Larger context windows retain more conversation, while earlier compaction can help keep requests within a gateway limit.
Anthropic reports qualitative benefits from higher effort and describes Fable as suitable for longer autonomous work. The page does not supply numerical results or sufficient evaluation detail to establish a performance ranking for a particular workload. Its detailed configuration rules provide a stronger basis for operational decisions than those capability claims provide for predicting coding outcomes.
Alternatives
Within Claude Code, interactive /model and /effort controls provide a simpler starting point than environment variables and JSON settings. Explicit IDs and modelOverrides serve deployments needing version control or custom routing. opusplan offers a documented planning-and-execution split between model families.
The page links to Choosing a Claude model and effort level in Claude Code [https://claude.com/blog/claude-model-and-effort-level-in-claude-code] and the models overview [https://platform.claude.com/docs/en/about-claude/models/overview]. These are possible follow-up resources for model choice and identifiers, but their contents are outside the selected evidence. Competing coding assistants are not compared.
Evidence
The evidence is the complete Model configuration page at [https://code.claude.com/docs/en/model-config.md], including its commands, configuration examples, tables, notices and version history. These are first-party descriptions of intended behavior.
No installation, command, model request, billing flow, gateway configuration or administrative restriction was executed or tested. Independent measurements are absent, and linked pages do not supply additional evidence here.
Access & freshness
Costs
Exact subscription fees, token rates and likely task costs are unknown from this page. It states that higher effort generally increases token spending and that generated thinking tokens are charged even when their display is collapsed or redacted. Provider or gateway billing determines the actual charge; a picker price is only a display label.
Fable can draw on usage credits depending on the plan and seat tier. Interactive sessions can request consent, but non-interactive -p runs and SDK applications without that prompt bill eligible Fable requests to usage credits without asking.
The page states that Anthropic API context above 200K uses standard model pricing, except Haiku 5.5 prompts above 100K tokens have higher per-token rates. Legacy Opus 4.6 with 1M context is included on Max, Ultra, Team and Enterprise subscriptions; Pro requires usage credits. Sonnet 4.6 with 1M context requires usage credits on every subscription plan. No numerical rates or measured savings are supplied.
Rights
The selected page states no documentation licence or redistribution grant, so permission to redistribute its contents is unknown. It also does not establish Claude Code's software licence, model-use terms or data-retention commitments. References to zero-data-retention documentation do not establish eligibility or contractual terms within this page.
Freshness
The page was captured on 25 November 2026 at 21:35:37 UTC. Its alias history includes changes through v2.1.321, and its behavior notes reference v2.1.324. Publication and last-edit dates are not supplied; the capture time does not establish when the documentation changed.
The page records that best changed at v2.1.321 to resolve like opus, after previously resolving like fable where available. It also records provider-specific alias mappings and evolving defaults. These details are particularly sensitive to the installed version and subsequent documentation changes.
Actions
Identify the provider, account type, installed Claude Code version and accessible model IDs before applying examples. Use session-only controls while exploring choices, and inspect /status and /effort status to understand the active configuration. Establish exact prices and usage-credit behavior before choosing a costly model for unattended work.
For shared deployments, pin required versions, enforce compatible client versions and deliver restrictions to every relevant session environment. For gateways, establish the actual context limit and supported capabilities rather than relying on assumptions from a custom ID. Compare effort settings on representative tasks before adopting higher levels broadly; this report provides no measured outcomes.
