01
Five role slots
Sonnet, Opus, Haiku, Fable and the subagent each get their own ANTHROPIC_DEFAULT_*_MODEL.
Client support · Anthropic Claude Code
Claude Code reads models from environment variables — one per role. AiSwitch writes all of them, so background tasks never send Anthropic model names to a third-party gateway.
01
Sonnet, Opus, Haiku, Fable and the subagent each get their own ANTHROPIC_DEFAULT_*_MODEL.
02
The [1M] marker is never appended on official endpoints, so model names resolve correctly.
03
Only the variables Claude Code reads are touched; the rest of your environment is left alone.
The row with the orange icon.
Third-party gateways usually need /v1 in the base URL.
Open a new terminal and it takes effect.
Only the main model was written. Switch once more so all role variables are set.
No. "Switch to official" removes what it wrote.
One installer for Windows and macOS, 7.5 MB, no account needed.