⌨️ANTHROPIC_DEFAULT_MODEL
Also known as ANTHROPIC_DEFAULT_MODEL environment variable
It sets the model to use when nothing else picks one.
Think of it like
It is like the meal you get when you do not order.
Example
Lucy sets this to opus on a new laptop. Later she saves Sonnet with /model. From then on, she gets Sonnet.
Why it matters
You can set a fallback that never fights a choice someone made on purpose.
Definition
Example code
bash
export ANTHROPIC_DEFAULT_MODEL=opus
claudeCommon mistake
Key takeaways
- 1Last in line. Used only if nothing else.
- 2Gives way to /model. And to settings.
- 32.1.236 or later. Older versions ignore it.