Sonnet

Sonnet is Anthropic's family of Claude models for everyday work. In Claude Code, the sonnet alias selects the latest Sonnet model, which the documentation recommends for daily coding tasks. You choose it with /model sonnet, with claude --model sonnet, or with "model": "sonnet" in your settings file. It balances speed and quality, which makes it a sensible default for most sessions.

The “everyday” Claude model: a good balance of speed, cost and quality.

How it shows up in Claude Code

Most of your time in Claude Code is ordinary work: a new page, a fixed form, a changed heading, an added test. That's what Sonnet is for. The sonnet alias always points to the newest version, so you don't have to remember version numbers.

You pick it like any other model: /model in the conversation (on its own it opens a picker), --model sonnet at startup, the ANTHROPIC_MODEL variable, or the model field in your settings. There's also sonnet[1m], a variant with a one-million-token context window for very long sessions. In opusplan mode, Claude plans with Opus and then does the work with Sonnet.

Example

You've finished planning a contact page and you're ready to build it:

/model sonnet
Build the contact page from the plan above. When you're done, run the tests and tell me whether they pass.

If you want every new conversation to start on Sonnet, put this in .claude/settings.json:

{ "model": "sonnet" }

Common mistakes

  • Jumping to Opus at the first obstacle. Often the problem isn't the model but a vague prompt: say clearly what you want and how to check the result.
  • Thinking a smaller model “forgets” what you told it. What Claude knows depends on the context and on CLAUDE.md, not on the model.
  • Switching models halfway through a task and losing track of which one did what. Check the current model with /model.

Related terms and where you learn it

The other models are Opus and Haiku. You can save your choice in settings.json, and what the model sees comes down to its context and your prompt.

In the course: the lesson “How do you choose the model?” in module 03, Permissions: what Claude may do.

Source: Claude Code documentation: Model configuration

How it appears in the course

Not necessarily: it’s the most powerful, not the fastest. For everyday work, Sonnet is enough.

How do you choose the model? · Module 03, Permissions: what Claude may do

There’s also extended thinking: Claude thinks things through before it answers. On the 5.5 models (Opus, Sonnet, Haiku) it’s always on, so there’s nothing for you to do.

What tricks will help you? · Module 01, How to talk to Claude · free

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.