Skip to content
BENIBIX Learn

Claude Code Model Alias

AI⌨️ Claude CodeClaude Code Concepts

Also known as opusplan, sonnet[1m], claude --model opus

A short name like opus or sonnet that picks a model.

Think of it like

It is like asking for the big pot, not one pot by name. You get the big pot on the shelf.

Example

Lucy writes --model sonnet in her scripts. When a newer Sonnet comes out, her scripts use it without any change.

Why it matters

When a new model comes out, an alias moves to it. You do not have to change your setup.

Definition

A model alias is a short name you use in Claude Code in place of a full model name. The alias opus picks the newest Opus model, and sonnet picks the newest Sonnet. Haiku is the small, fast one. Adding [1m], as in sonnet[1m], asks for a context window of one million tokens. The alias opusplan uses Opus to plan and Sonnet to do the work. You set one with /model or with the --model flag.

Example code

bash
claude --model opus
Start a session on the newest Opus model.
Short names that lead to the newest model of each size.

Common mistake

Using an alias where you need the exact same model every time. Pin the full model name for tests that must not change.

Key takeaways

  1. 1
    A short name. opus, sonnet, haiku.
  2. 2
    Moves forward. To the newest model.
  3. 3
    Set it. With /model or --model.

Learn it properly