Skip to content
BENIBIX Learn

ANTHROPIC_DEFAULT_OPUS_MODEL

AI⌨️ Claude CodeConfiguration

Also known as ANTHROPIC_DEFAULT_SONNET_MODEL, ANTHROPIC_DEFAULT_HAIKU_MODEL, ANTHROPIC_DEFAULT_FABLE_MODEL, ANTHROPIC_SMALL_FAST_MODEL

It sets which full model the alias opus stands for.

Think of it like

It is like you tell the shop that small means your own cup size.

Example

Emma's team uses Claude on Bedrock, where model names look different. She pins each alias once. Then opus and sonnet work as usual for all of them.

Why it matters

On a cloud or a gateway, it keeps the short names tied to the IDs your account has.

Definition

ANTHROPIC_DEFAULT_OPUS_MODEL sets which full model the alias opus stands for. Its siblings do the same for sonnet, haiku and fable. In plan mode, opusplan uses the Opus pin. Out of it, it uses the Sonnet pin. The Haiku pin also runs jobs in the back. Each value must be a full model name, or the ID your provider uses.

Example code

bash
export ANTHROPIC_DEFAULT_OPUS_MODEL=us.anthropic.claude-opus-5-5-v1:0
claude --model opus
Make opus mean your Bedrock model.
Each alias row reads its own pin variable.

Common mistake

Thinking it sets the model. It only says what opus means. Something still has to pick opus.

Key takeaways

  1. 1
    One per alias. opus, sonnet, haiku, fable.
  2. 2
    Full name or ID. Not an alias.
  3. 3
    opusplan uses two. Opus to plan, Sonnet to work.

Compare