⌨️ANTHROPIC_MODEL
Also known as ANTHROPIC_MODEL environment variable
It sets the model each new session starts on.
Think of it like
It is like you tell the driver which bus to take. You say it each time you leave.
Example
Jack's CI image sets this to haiku. So each job runs on the cheap model, whatever anyone saved on a laptop.
Why it matters
A script or a machine can set its model in one place. No flag is needed on each command.
Definition
Example code
bash
export ANTHROPIC_MODEL=sonnet
claudeCommon mistake
Key takeaways
- 1Alias or full name. opus or an ID.
- 2Below --model. Above settings.
- 3Wins each launch. Over /model saves.