Claude Code
The Zuplo AI Gateway supports the Anthropic
/v1/messages API endpoint. This means that you can configure
Claude Code to work seamlessly via
the AI Gateway.
Claude Code Setup
-
Create a new provider in the AI Gateway for Anthropic
-
Create a new app to use with Claude Code and assign it to the team you created
-
Copy the API URL and API Key shown at the top of the app page
-
Add the API key and gateway URL to your environment, or Claude Code settings, using either approach below
Environment
Code
Using settings.json
Code
Claude Code appends /v1/messages to the base URL itself, so
ANTHROPIC_BASE_URL is the app's URL without the /v1 suffix.
Restart Claude and it will switch to using your new AI Gateway configuration and all your Claude Code LLM requests will route through the AI Gateway.
Choosing a model
The gateway routes models named as providerName/model, where providerName is
the provider name configured in your gateway. Claude Code's default model names
don't carry that prefix, so set the model explicitly:
Code
The app's Model Filtering policy controls which models the app may use.