⌨️ANTHROPIC_DEFAULT_OPUS_MODEL
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
Example code
bash
export ANTHROPIC_DEFAULT_OPUS_MODEL=us.anthropic.claude-opus-5-5-v1:0
claude --model opusCommon mistake
Key takeaways
- 1One per alias. opus, sonnet, haiku, fable.
- 2Full name or ID. Not an alias.
- 3opusplan uses two. Opus to plan, Sonnet to work.