Learning resourcesReviewed · Anthropic

Claude Code model configuration

Claude Code model configuration is a guide for Claude Code users who want to change models, but it does not compare model quality, pricing or account availability. It explains interactive switching with /model, session selection with --model and terminal defaults through ANTHROPIC_MODEL.

Researched 15 Nov 2026

In short.

Claude Code model configuration is a guide for Claude Code users who want to change models, but it does not establish which model best fits their task or budget. It describes immediate switching in Desktop and terminal sessions, a terminal flag for individual sessions, and shell configuration for future terminal defaults. The page provides explicit model identifiers and Bash and zsh instructions; account access, configuration precedence and runtime behavior remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied documentation page at [https://support.claude.com/en/articles/11940350-claude-code-model-configuration.md]: interactive switching, the supported-model list, session flags, and Bash and zsh default-setting instructions. Linked pages are excluded. No licensing, pricing or deprecation notice appears in the supplied text. No commands were executed; runtime behavior, account access and compatibility remain untested.

The overview

Resource identity

Claude Code model configuration is a support guide at [https://support.claude.com/en/articles/11940350-claude-code-model-configuration.md]. Its subject is choosing the model used by Claude Code through an interactive command, a terminal launch flag or an environment variable.

Practical assessment

The guide is useful when the question is how to change a model and how long that choice should persist. Its strongest feature is separating immediate changes, individual terminal sessions and future terminal defaults. It supplies no comparison of model capabilities, response speed or cost, so it cannot determine which model a reader should choose.

Who it helps

Beginners with Claude Code already available can follow the interactive /model instructions. Developers who launch Claude Code from a terminal can use the session flag or configure a shell default. Readers seeking installation, authentication or model-selection advice will need information beyond this page.

What it covers

The page explains /model for immediate switching, /status for checking the current model, --model for selecting a model when starting a terminal session, and ANTHROPIC_MODEL for setting future terminal defaults.

Its model list includes Fable 5.2, Haiku 5.5, Sonnet 5.5 and Opus 5.5, alongside other entries, with explicit identifiers. Some entries use dated identifiers, such as claude-haiku-4-5-20251001. These are options documented in the supplied copy; access for a particular account is unknown.

Using it

Requirements

The interactive method assumes access to a working Claude Code session through the Code tab in Claude Desktop or the claude terminal command. The flag and environment-variable instructions apply to terminal sessions.

The persistent-default examples require editing the relevant shell startup file: ~/.zshrc for zsh or ~/.bashrc for Bash. Installation steps, authentication requirements, subscription eligibility and minimum application versions are not specified.

How model selection works

The guide presents three scopes for model selection. /model changes the active choice immediately through an interactive menu. The --model flag supplies a choice when launching one terminal session. An exported ANTHROPIC_MODEL assignment in a shell startup file establishes the documented default for future terminal sessions.

The page does not explain precedence when these methods are combined, interaction with other configuration settings, or behavior when an identifier is unavailable.

Configuration steps

For an immediate change, open Claude Code, enter /model and choose an entry. The page says the change takes effect immediately and identifies /status as the command for checking the current model.

For a persistent terminal default, the guide first uses echo $SHELL to identify the shell. It then appends an export ANTHROPIC_MODEL assignment containing the chosen identifier to ~/.zshrc or ~/.bashrc, sources that file, closes and reopens Terminal, and starts claude. These are documented instructions; their execution and results are untested.

Example use

To request Sonnet 4.6 for one terminal session, the page provides claude --model claude-sonnet-4-6. After launch, /status is the documented way to inspect the active model. This illustrates session configuration without editing a shell startup file; no command output or successful execution is established.

Assessment & evidence

Limits and gaps

The guide does not explain unavailable-model errors, organization restrictions, configuration conflicts or how to remove a persistent default. Its shell examples cover Bash and zsh; instructions for other shells are absent.

It also provides no model benchmarks, context-window specifications or task-specific recommendations. The documented model list does not establish availability in every account or environment.

Choosing a method

The useful decision is how broadly the choice should apply. The documented immediate switch suits an active session, the launch flag suits an individual terminal session, and the shell setting suits a recurring terminal preference. This distinction supports choosing a configuration method, while model suitability still requires information the guide does not provide.

Available alternatives

Within this guide, /model is the option documented for both Claude Desktop and terminal use. The --model flag and ANTHROPIC_MODEL provide terminal alternatives with different persistence. The page does not compare other coding assistants, model providers or configuration guides, so those comparisons are not assessed.

Evidence

The available source is the complete supplied text of the support article at [https://support.claude.com/en/articles/11940350-claude-code-model-configuration.md]. It supports the described commands, model identifiers and shell instructions.

The article supplies procedural claims rather than measured results. No commands were executed, and successful switching, persistence and account-specific access remain unverified.

Access & freshness

Costs

The page provides no subscription prices, usage rates, model-specific charges or spending limits. The cost of using any listed model is unknown from this source, as is whether changing models affects the reader's billing or usage allowance.

Rights and reuse

The supplied page contains configuration instructions and command examples but no stated documentation license or redistribution permission. Permission to redistribute the complete document is unknown. Model and service usage terms are not included.

Freshness

The supplied copy was captured on 15 November 2026 at 01:04:17 UTC. Its text provides no publication date, update date or applicable Claude Code version. The model identifiers describe that captured copy; their continued availability and compatibility are unknown.

Suggested next steps

Choose the method that matches the intended duration: /model for an immediate change, --model for an individual terminal launch, or the appropriate shell configuration for a recurring terminal default. Use /status to inspect the active model.

Before settling on a model, confirm its availability for the relevant account and check its pricing and task suitability. This page does not establish those details.

Evidence for this report

selected-page.txtselected · checked 2026-11-15