# Kilo Code > [!NOTE] > AI Gateway requires the [AI Governance Add-On](../../ai-governance.md). > As of Coder v2.32, deployments without the add-on will not be able to > access AI Gateway. Kilo Code allows you to configure providers via the UI and can be set up to use AI Gateway. ## Centralized API Key
### OpenAI Compatible 1. Open Kilo Code in VS Code. 1. Go to **Settings**. 1. **Provider**: Select **OpenAI**. 1. **Base URL**: Enter `https://coder.example.com/api/v2/aibridge/openai/v1`. 1. **API Key**: Enter your **[Coder API token](../../../admin/users/sessions-tokens.md#generate-a-long-lived-api-token-on-behalf-of-yourself)**. 1. **Model ID**: Enter the model you wish to use (e.g., `gpt-5.2-codex`). ![Kilo Code OpenAI Settings](../../../images/aibridge/clients/kilo-code-openai.png) ### Anthropic 1. Open Kilo Code in VS Code. 1. Go to **Settings**. 1. **Provider**: Select **Anthropic**. 1. **Base URL**: Enter `https://coder.example.com/api/v2/aibridge/anthropic`. 1. **API Key**: Enter your **Coder API token**. 1. **Model ID**: Select your desired Claude model. ![Kilo Code Anthropic Settings](../../../images/aibridge/clients/kilo-code-anthropic.png)
## BYOK (Personal API Key) > [!NOTE] > Kilo Code supports sending custom headers, but the integration does not currently work reliably with AI Gateway. **References:** [Kilo Code Configuration](https://kilocode.ai/docs/ai-providers/openai-compatible)