# Claude Code Model Alias

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** opusplan, sonnet[1m], claude --model opus

## 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.

## 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

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

## Example code

```bash
claude --model opus
```

Start a session on the newest Opus model.

## Why it matters

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

## 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.

## Three principles

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

## Related terms

- [Claude](https://learn.benibix.com/term/ai/claude)
- [Claude Code](https://learn.benibix.com/term/ai/claude-code)
- [Context Window](https://learn.benibix.com/term/ai/context-window)
- [Claude Code Effort Level](https://learn.benibix.com/term/ai/claude-code-effort-level)

## Taught in

- [Claude Code Models and Effort](https://learn.benibix.com/learn/ai-claude-code/claude-code-models-and-effort): Claude Code, 8/16

![Short names point at real models: opus, sonnet and haiku each lead to the newest model of that size.](https://learn.benibix.com/diagrams/cc-model-alias.svg)

---

Source: https://learn.benibix.com/term/ai/claude-code-model-alias
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
