---
id: kilo-code
slug: kilo-code
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.
date: 2026-05-12
---

[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.

> **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.

## Prerequisites

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

## Setup

### Step 1: 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 2: 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](/images/guides/kilo-code/0-providers.png)

### Step 3: 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](/images/guides/kilo-code/1-search-llm.png)

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

### Step 4: 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](/images/guides/kilo-code/2-connect-api-key.png)

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

### Step 5: 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](/dashboard):

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

## 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](/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](/dashboard) to confirm the key is valid.

### Model not found

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