Files
coder/docs/ai-coder/ai-gateway/clients/kilo-code.md
T
Susana Ferreira a1921b6bc0 docs: update AI Gateway URLs from /aibridge to /ai-gateway (#26664)
## Description

Updates documentation to use the new `/api/v2/ai-gateway/` URLs and
`/ai-gateway/` UI paths, following the backend rename in #26475 and
frontend route rename in #26569.

## Changes

- Update URL references across documentation files from
`/api/v2/aibridge/` to `/api/v2/ai-gateway/`
- Update UI path reference from `/aibridge/sessions` to
`/ai-gateway/sessions`
- Update route path references in client setup guides
- Covers client setup guides, authentication, monitoring, proxy setup,
and provider configuration

Addresses
https://github.com/coder/coder/pull/26475#issuecomment-4768351217

Refs https://linear.app/codercom/issue/AIGOV-226

> Generated with the assistance of Coder Agents (@ssncferreira)
2026-06-25 19:02:39 +01:00

1.4 KiB

Kilo Code

Note

AI Gateway requires the AI Governance Add-On. 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.
  2. Go to Settings.
  3. Provider: Select OpenAI.
  4. Base URL: Enter https://coder.example.com/api/v2/ai-gateway/openai/v1.
  5. API Key: Enter your Coder API token.
  6. Model ID: Enter the model you wish to use (e.g., gpt-5.2-codex).

Kilo Code OpenAI Settings

Anthropic

  1. Open Kilo Code in VS Code.
  2. Go to Settings.
  3. Provider: Select Anthropic.
  4. Base URL: Enter https://coder.example.com/api/v2/ai-gateway/anthropic.
  5. API Key: Enter your Coder API token.
  6. Model ID: Select your desired Claude model.

Kilo Code Anthropic Settings

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