Kilo Code Setup
Connect the Kilo Code extension for VS Code / JetBrains to UnioAPI — OpenAI Compatible for GPT models, Anthropic with a custom base URL for Claude models.
Kilo Code is an open-source coding agent extension with modes such as Code, Architect, Ask and Debug. Its API Provider settings are similar to Cline's and connect directly to UnioAPI.
Settings depend on your version
Kilo Code's own sign-in is unrelated to this page; choose the API Provider below to use UnioAPI.
Prerequisites
- The Kilo Code extension installed in VS Code (or a JetBrains IDE).
- A topped-up UnioAPI account and an API key.
Steps
Open the provider settings
Open the settings in the Kilo Code panel, go to Providers and create a configuration profile named UnioAPI.
Choose the protocol and fill in
GPT models:
| Field | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://api.unioapi.com/v1 |
| API Key | Your UnioAPI key |
| Model | e.g. gpt-5.6-sol |
Claude models:
| Field | Value |
|---|---|
| API Provider | Anthropic |
| API Key | Your UnioAPI key |
| Use custom base URL | Tick it and enter https://api.unioapi.com (no /v1) |
| Model | e.g. claude-sonnet-5 |
public/docs/screenshots/kilo-code-provider.png · 1600×1000Assign models per mode (optional)
Kilo Code can use a different profile per mode — for example a stronger reasoning model for Architect and a faster one for Code — to balance usage against quality.
Verify
Switch to the new profile and ask a simple question. If it replies and the call appears in the console's Request logs, you are connected.
FAQ
| Symptom | Check |
|---|---|
| 404 | The /v1 in the base URL doesn't match the protocol; see FAQ & Troubleshooting |
| 401 / 402 | Invalid key, or the balance is too low |
| A parameter isn't supported by the model | Use the Anthropic protocol for Claude, or turn off unsupported options in the OpenAI Compatible settings |