Claude Code is Anthropic's terminal coding agent. With AIgateway in front, you can route the same Claude Code session through any of our 100+ models — Opus, GPT-5.4, Gemini, Kimi, Llama — without changing the agent itself.
Tell Claude Code to use the AIgateway-hosted Anthropic-shape endpoint with your AIgateway key.
export ANTHROPIC_BASE_URL="https://api.aigateway.sh" export ANTHROPIC_API_KEY="sk-aig-..." claude
Use the OpenAI-compatible Chat shape under /v1/chat/completions and any model slug. Inside Claude Code, /model lets you swap any time.
Open Claude Code in any project and tell it: "read https://aigateway.sh/llms.txt and configure yourself for AIgateway." It will read the capability map and wire the env vars itself.