Claude Code can use AI Gateway through the Anthropic-compatible API endpoint. Configure the base URL and API key before starting Claude Code.
Create or copy your API key from the console before configuring Claude Code.
If you do not specify a model, Claude Code uses the default model configured by the gateway. You can also route Claude Code model aliases to a specific model.
Start Claude Code
After the environment variables are set, start Claude Code from your project directory.