---
title: Kilo Code Integration
description: Use LLM Gateway with Kilo Code in VS Code. Built-in provider — just search, connect your API key, and start coding.
icon: KiloCode
---

import { Step, Steps } from "fumadocs-ui/components/steps";
import { Callout } from "fumadocs-ui/components/callout";

[Kilo Code](https://kilo.ai/) is an AI coding assistant that runs as a VS Code extension. It supports autonomous coding, file editing, terminal commands, and browser automation. LLM Gateway is a built-in provider in Kilo Code, so setup takes under a minute — no manual base URL configuration required.

<Callout type="info">
	**Using DevPass?** This integration also works with a
	[DevPass](https://devpass.llmgateway.io) plan key. Use root model IDs without
	a provider prefix (`claude-sonnet-4-5`, not `anthropic/claude-sonnet-4-5`) —
	provider-pinned routing is not available on coding plans; the gateway picks
	the provider for you.
</Callout>

## Prerequisites

- VS Code or a VS Code-based editor (Cursor, Windsurf, etc.)
- An LLM Gateway API key — [sign up free](https://llmgateway.io/signup) (no credit card required)

## Setup

<Steps>
<Step>
### Install Kilo Code

Open VS Code, go to the Extensions view (Ctrl+Shift+X / Cmd+Shift+X), search for **Kilo Code**, and click **Install**.

Alternatively, install from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=kilocode.kilo-code).

</Step>

<Step>
### Open Providers Settings

Click the Kilo Code icon in the VS Code sidebar, then open **Settings > Providers**. You'll see the list of popular providers:

![Kilo Code Providers screen](/guides/kilo-code/0-providers.png)

</Step>

<Step>
### Find LLM Gateway

Click **Show more providers** at the bottom of the list. In the "Connect provider" dialog, type `llm` in the search box — **LLM Gateway** will appear:

![Searching for LLM Gateway](/guides/kilo-code/1-search-llm.png)

Click the **+** button next to LLM Gateway.

</Step>

<Step>
### Enter Your API Key

Kilo Code will show the **Connect LLM Gateway** dialog. Paste your LLM Gateway API key (starts with `llmgtwy_`) and click **Submit**:

![Connect LLM Gateway — enter API key](/guides/kilo-code/2-connect-api-key.png)

[Sign up](https://llmgateway.io/signup) or log in to your LLM Gateway dashboard and navigate to **API Keys** to get your key.

</Step>

<Step>
### Start Coding

Once connected, select an LLM Gateway model from the model picker at the bottom of the chat panel. All requests now route through LLM Gateway — you'll see usage, costs, and logs in your [dashboard](https://llmgateway.io/dashboard):

![Kilo Code chat active with LLM Gateway](/guides/kilo-code/3-chat-active.png)

</Step>
</Steps>

## Why Use LLM Gateway with Kilo Code

- **200+ models** — Claude, GPT, Gemini, Llama, DeepSeek, and more from 40+ providers
- **One API key** — Stop managing separate keys for each provider
- **Cost tracking** — See exactly what each session costs in your dashboard
- **Response caching** — Repeated requests hit cache automatically
- **Automatic fallback** — If a provider is down, requests route to an alternative
- **Volume discounts** — Check [discounted models](https://llmgateway.io/models?discounted=true) for savings up to 90%

## Features

Once configured, you can use all of Kilo Code's features with LLM Gateway:

- **Autonomous coding** — Create and edit files, build features from natural language
- **Terminal commands** — Run builds, tests, and scripts directly from the chat
- **Browser automation** — Preview and interact with web apps
- **Checkpoints** — Save and restore session states
- **Multiple modes** — Switch between Code, Architect, Ask, and Debug modes

## Switching Models

Click the model name at the bottom of the Kilo Code chat panel to open the model picker. Select any LLM Gateway model — the switch takes effect immediately for the next message.

## Troubleshooting

### LLM Gateway not in provider list

Click **Show more providers** at the bottom of the Providers page. In the search dialog, type "llm" or "gateway" to find it.

### Authentication errors

Make sure your API key starts with `llmgtwy_` and is active. Check your [dashboard](https://llmgateway.io/dashboard) to confirm the key is valid.

### Model not found

Verify the model ID matches exactly what's listed on the [models page](https://llmgateway.io/models). Model IDs are case-sensitive.

<Callout type="info">
	View all available models on the [models page](https://llmgateway.io/models).
</Callout>

<Callout type="info">
	Need help? Join our [Discord community](https://llmgateway.io/discord) for
	support and troubleshooting assistance.
</Callout>
