Opus
Opus is Anthropic's family of most capable Claude models. In Claude Code, the opus alias selects the latest Opus model, which the documentation recommends for complex reasoning tasks. You choose it with the /model command, with claude --model opus at startup, or with "model": "opus" in your settings file. It runs slower than Sonnet and uses more of your plan's limits.
The most powerful Claude model, but also the most expensive. Good for planning, architecture and hard problems.
How it shows up in Claude Code
Claude Code isn't tied to one model. You can swap the “brain” at any time, and opus is an alias: a short name that always points to the newest Opus version. There are four places to set it, in order of priority: the /model command inside a conversation, the --model flag at startup, the ANTHROPIC_MODEL environment variable, and the model field in settings.json.
There is also a special mode, opusplan: Claude uses Opus while it's in plan mode, then switches to Sonnet when it actually writes the code. You get the strongest model for thinking through the plan without paying the same price for every small edit.
Example
You have a bug that only shows up sometimes and you can't tell where it comes from. Switch to Opus just for that:
/model opus
The app sometimes freezes when saving an order. Find the cause, explain it to me and suggest two fixes. Don't change anything yet.
Once you have the plan, go back to your everyday model with /model sonnet.
Common mistakes
- Leaving Opus on for everything. For a typo or a moved button, Sonnet or Haiku do the job faster and use less.
- Assuming Opus can't be wrong. It still needs a way to check its work: tests, a page you open, a command that passes.
- Writing a full version name into your settings and forgetting about it. The
opusalias moves to new versions by itself; a fixed name stays on the old one.
Related terms and where you learn it
The other models are Sonnet and Haiku. You can pin the model in settings.json, and Opus is most useful in plan mode and for work that burns through a lot of tokens.
In the course: the lesson “How do you choose the model?” in module 03, Permissions: what Claude may do.
How it appears in the course
That means: “a group of settings, containing a single setting: the model is opus”.
What is a settings file? · Module 03, Permissions: what Claude may do
Flags are options you write after a command, for example claude --model opus.
Where do the settings files live, and which one matters most? · Module 03, Permissions: what Claude may do
↪ Should I always just take Opus?
How do you choose the model? · Module 03, Permissions: what Claude may do
Learn Claude Code from zero, in plain English
12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.