integrations/coding agent/Claude Code
CC

Claude Code + AIgateway

Point Anthropic's CLI at AIgateway and pick any model in 30 seconds.

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.

Claude Code homepage →
Setup

Three steps or fewer.

STEP 01

Set the env vars

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
STEP 02

Route to a non-Anthropic model

Use the OpenAI-compatible Chat shape under /v1/chat/completions and any model slug. Inside Claude Code, /model lets you swap any time.

STEP 03

Let the agent self-configure

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.

Notes
  • We publish llms.txt, openapi.json, and agents.md so any capable agent can autoconfigure end-to-end.
More integrations

Same key. Every other tool.