Prerequisites
Before you can configure Claude Code to use the Connect AI LLM Gateway, you must register a provider, create a routing rule, create a project, and issue a virtual key in Connect AI. See LLM Gateway for details.A Connect AI Personal Access Token (PAT) is not accepted by the LLM Gateway. Only a virtual key authenticates requests.
Configure Claude Code
Set the following environment variables to point Claude Code at the Connect AI LLM Gateway. The gateway selects the provider and model based on your project’s routing rule.- macOS / Linux
- Windows (PowerShell)