How to change the model in Claude Code?

To change the model in Claude Code, type /model in a session to open the model picker, or run /model with an alias or model name, such as /model opus, to switch immediately.

As of December 4, 2026, Anthropic’s Claude Code documentation lists these options, in order of priority:

  • During a session: /model <alias|name>. In the picker, Enter switches and saves the model as your default; press s to switch for this session only.
  • At startup: claude --model <alias|name>.
  • Environment variable: ANTHROPIC_MODEL.
  • Settings: the model field in your settings file.
  • Default for new sessions: ANTHROPIC_DEFAULT_MODEL.

Aliases include default, opus, sonnet, haiku, fable and opusplan, which uses Opus in plan mode and Sonnet for execution. On the Anthropic API, opus, sonnet and haiku currently resolve to Opus 5.5, Sonnet 5.5 and Haiku 5.5, while Amazon Bedrock and some other providers map them to earlier versions. To pin a version, use the full model name, such as claude-opus-5-5.

Related: Claude Code 2.1.334 power-user guide (/model search), How to update Claude Code? and How to resume a Claude Code session?

Source: Claude Code docs, Model configuration; Claude Code docs, CLI reference

Image: Claude logo by Anthropic, public domain (trademarked), via Wikimedia Commons. Placed on a white background and resized. Claude is a trademark of Anthropic. FreeAnswers is not affiliated with or endorsed by Anthropic.



Related answers

Leave a Comment