Client support · Anthropic Claude Code

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.

What you get after takeover

01

Five role slots

Sonnet, Opus, Haiku, Fable and the subagent each get their own ANTHROPIC_DEFAULT_*_MODEL.

02

No suffix on direct

The [1M] marker is never appended on official endpoints, so model names resolve correctly.

03

Scoped variables

Only the variables Claude Code reads are touched; the rest of your environment is left alone.

Three steps

Pick Claude Code

The row with the orange icon.

Add endpoint and key

Third-party gateways usually need /v1 in the base URL.

Click "Use it"

Open a new terminal and it takes effect.

FAQ

Terminal says the model does not exist?

Only the main model was written. Switch once more so all role variables are set.

Do I have to edit variables to go back?

No. "Switch to official" removes what it wrote.

Point this client at your own API today

One installer for Windows and macOS, 7.5 MB, no account needed.