Claude Code is Anthropic's terminal coding agent. AIgateway now serves the Anthropic Messages API natively, so Claude Code points straight at it — set two environment variables, no router or proxy. The same session can run on any of our 1000+ models — Opus, GPT-5.4, Gemini, Kimi, Llama — by setting one more variable.
Point ANTHROPIC_BASE_URL at AIgateway and use your sk-aig- key as ANTHROPIC_API_KEY, then run claude. Claude Code sends the key as x-api-key and the gateway accepts it — bare Claude model names map to the catalog automatically.
Set ANTHROPIC_MODEL to any AIgateway slug to route the same Claude Code session through any model — not just Claude. Leave it unset and the bare Claude defaults map automatically.
Already running? Use /model inside Claude Code to switch the active model for the session without restarting.