Kilo Code API key

Kilo Code is free; the model is not. Kilo Gateway bills provider rates plus a 5% top-up fee, or add one key as a custom provider and pay the prices below.

Checked 2026-10-19

·All guides·Models

Is Kilo Code free or paid?

Kilo Code the extension is free and open source (MIT), for VS Code, JetBrains and the terminal. What you pay for is inference, and Kilo splits it four ways on its pricing page (read 2026-10-19):

OptionPriceWhat you get
Free and local models$0Auto Free routes to free models; Ollama and LM Studio run locally
Bring your own key$0 to KiloAnthropic, OpenAI, Google, Bedrock, Azure or any OpenAI-compatible provider, billed by that provider
Kilo Gatewayprovider rates + 5% on credit purchases500+ models at "exact provider rates with no markup", pay as you go
Kilo Pass$19, $49 or $199 a monthmonthly credits with up to 50% bonus credits

kilo.ai/pricing, read 2026-10-19. Teams adds $15 a user a month for shared billing and analytics; Enterprise is custom.

This guide is the second row. A key from here is one custom provider in Kilo, and the model prices in the table further down are the whole bill: no 5% purchase fee, no monthly pass, credit from $10 that does not expire at month end. Kilo Gateway's "provider rate" for Claude Sonnet 5.5 is Anthropic's list, $2.00 in and $10.00 out per million tokens; here it is $1.20 and $3.00.

Kilo Code API key: Kilo’s credits or your own key

From Kilo

Sign in to Kilo, add credit for Kilo Gateway or subscribe to Kilo Pass, and the extension signs its own requests; there is no key to paste. Billing is at the provider's rate plus the 5% processing fee on each credit purchase.

One key for Kilo and every other tool

  1. Sign in to the console and add credit, from $10. No subscription.
  2. Create a key. The same key works in Kilo, Cline, OpenCode, Claude Code and your own code.
  3. Enter it as a custom provider, in VS Code or in kilo.json, as below.

Where the settings are

In VS Code: Kilo Code Settings (gear icon) → Providers tab → scroll to the bottom → Custom provider.

In the CLI: ~/.config/kilo/kilo.json for every project, or ./kilo.json in the project.

VS Code

  1. Provider ID: uplinkswitch. Display name: UplinkSwitch.
  2. Provider API: OpenAI Compatible. This is the chat completions format, and every model on the Models page answers in it, Claude included.
  3. Base URL: https://api.uplinkswitch.com/v1.
  4. API key: your UplinkSwitch key from the console. The dialog has no headers field; usage shows under the Kilo Code name automatically from its user agent.
  5. Models: once the URL and key are in, Kilo queries /v1/models and shows a searchable picker. Tick the ids you want. Fetch models retries the fetch.
  6. Click Submit. The ids appear in the model picker.

CLI

The provider key is your own identifier. npm defaults to @ai-sdk/openai-compatible when omitted. env names the variable that holds the key, so the key stays out of the file. model takes provider-id/model-id. The two headers name the app in our request log.

kilo.json
{
  "provider": {
    "uplinkswitch": {
      "npm": "@ai-sdk/openai-compatible",
      "env": ["UPLINKSWITCH_API_KEY"],
      "models": {
        "claude-sonnet-5-5": { "name": "Claude Sonnet 5.5" },
        "claude-opus-5-5": { "name": "Claude Opus 5.5" },
        "gpt-6.1-sol": { "name": "GPT-6.1 Sol" },
        "gemini-3.1-pro-preview": { "name": "Gemini 3.1 Pro" },
        "deepseek-v4-pro-0813": { "name": "DeepSeek V4 Pro" },
        "kimi-k3": { "name": "Kimi K3" }
      },
      "options": {
        "baseURL": "https://api.uplinkswitch.com/v1",
        "headers": {
          "HTTP-Referer": "https://uplinkswitch.ai",
          "X-Title": "Kilo Code"
        }
      }
    }
  },
  "model": "uplinkswitch/claude-sonnet-5-5"
}

Kilo recommends a limit per model, with context and output token counts, so the agent can manage context. Add it to any entry once you know the model's ceilings; the model pages list the context window and maximum output for each id.

Check it

In VS Code the model list filling in is the check. From a shell, the same call Kilo makes:

shell
curl https://api.uplinkswitch.com/v1/models \
  -H "Authorization: Bearer $UPLINKSWITCH_API_KEY" \
  -H "HTTP-Referer: https://uplinkswitch.ai" \
  -H "X-Title: Kilo Code"

Then send a message. The request shows in the console within seconds, with its token counts and price.

Run on 2026-11-27: Kilo CLI with GLM and DeepSeek abliterated

Kilo CLI 7.8.32 ran this kilo.jsonc in a scratch project, with the key in UPLINKSWITCH_API_KEY. Each model got three turns: find the bug in a three-line file, fix it, print the result. Kilo found the file, read it and edited it on both ids. The context limits are the catalog's windows; GLM 5.3 Abliterated has no published maximum output, so its 32000 is our own setting, and 128000 is DeepSeek's catalog figure.

kilo.jsonc
{
  "$schema": "https://app.kilo.ai/config.json",
  "provider": {
    "uplinkswitch": {
      "npm": "@ai-sdk/openai-compatible",
      "env": ["UPLINKSWITCH_API_KEY"],
      "options": { "baseURL": "https://api.uplinkswitch.com/v1" },
      "models": {
        "glm-5.3-abliterated": {
          "name": "GLM 5.3 Abliterated",
          "tool_call": true,
          "limit": { "context": 131072, "output": 32000 }
        },
        "deepseek-v4.1-flash-1017-abliterated": {
          "name": "DeepSeek V4.1 Flash Abliterated",
          "tool_call": true,
          "limit": { "context": 1000000, "output": 128000 }
        }
      }
    }
  },
  "model": "uplinkswitch/deepseek-v4.1-flash-1017-abliterated"
}
shell
kilo run -m uplinkswitch/deepseek-v4.1-flash-1017-abliterated "Read math.ts and say in one sentence what is wrong. Do not edit."
kilo run -c -m uplinkswitch/deepseek-v4.1-flash-1017-abliterated "Fix the bug in math.ts."

Every one of the six model calls after the first read the prompt back from the cache, on both ids: about 20,900 to 21,600 cached tokens a call on GLM 5.3 Abliterated and 18,200 to 18,900 on DeepSeek V4.1 Flash Abliterated, roughly 99% of each prompt. Nothing in the config turns this on; the models cache the repeated prefix themselves. We read these counts with kilo export and the session id, which lists the input and cache-read tokens per message.

The tool-calling side was tested on its own the same day: 840 requests across the routes behind the two ids. Six cases (auto tool choice, two calls in one turn, a strict nested schema, the reply to a tool result, streamed calls and the Anthropic format) passed on every route, with one dropped connection as the only miss. A forced choice that some GLM routes ignore is now sent again to another route. Streaming several calls at once was not tested.

ModelPriced at20-turn session
GLM-5.3 Abliteratedthis API$0.7023
DeepSeek V4.1 Flash 1017 Abliteratedthis API$0.1505
Claude Sonnet 5.5developer list$0.2028
Claude Opus 5.5developer list$0.4056

What a longer agent session costs at today's rates: the token counts of a 20-turn Claude Code session we ran on GLM 5.3 Abliterated the same day, 96% of its prompt tokens cache reads.

What Kilo Code costs with this key

ModelInput / 1MCached input / 1MOutput / 1MDeveloper list, out / 1MUnder list
Claude Sonnet 5.5$1.20$0.075$3.00$10.0070%
Claude Opus 5.5$2.80$0.15$10.00$20.0050%
GPT-6.1 Sol$0.60$0.06$3.00$10.0070%
Gemini 3.1 Pro Preview$1.20$0.12$7.20$12.0040%
DeepSeek V4 Pro 0813$0.792$0.0625$1.188$3.9670%
Kimi K3$0.90$0.12$4.50$15.0070%

USD per million tokens, live from GET /v1/catalog. Developer list: the price on the developer’s own page, which is what a gateway billing "provider rates" charges before its fees.

Kilo re-sends the conversation on every tool call, so most of a session is cached input; the cache-read column is the one to watch. Kilo's own cost display uses the prices you give it in the model config, so enter these figures there and the task header matches your statement. The Claude Code pricing post works a day and a month of agent use at these rates.

Good to know

  • If the fetch fails you can still type ids by hand. Copy them from the Models page.
  • Kilo also offers Anthropic Messages as a Provider API. The Claude ids answer in that format too, but OpenAI Compatible covers the whole list from one provider entry.
  • Kilo accepts a full endpoint URL in the Base URL field. The /v1 root above is enough.
  • Token limits, tool calling and variants per model are set in the config file, not the dialog.
  • A custom provider and Kilo Gateway can sit side by side; pick per task in the model picker.
  • On a Kilo Teams or Enterprise plan the same custom provider can be shared across the team as BYOK, with one key from the console carrying a monthly spend limit, so the team's model bill is one statement here and the seat fee is the only thing Kilo bills.
  • The Kilo CLI, the JetBrains plugin and the desktop app read the same kilo.json, so one provider block covers every Kilo surface on the machine.

Kilo Code next to Roo Code, Cline and OpenCode

Kilo is a fork of Roo Code, which shut down on 2026-05-15. Kilo advertises a Roo migration page, and Zoo Code is the community fork that keeps Roo's panel. Cline is the project both forked from. OpenCode is the terminal agent, with its own paid gateway, OpenCode Zen, compared against this key on its page. All four take the same base URL and key.

Questions

An open-source, MIT-licensed AI coding agent for VS Code, JetBrains and the terminal, forked from Roo Code and Cline, with Architect, Code, Ask and Debug modes, a code reviewer and cloud agents. Kilo was acquired by Anaconda in July 2026 (anaconda.com, Jul 15 2026) and reports more than three million developers. It is model-agnostic: you pay for inference through Kilo's gateway, or bring your own key.

The extension and CLI are free for individuals; Teams is $15 a user a month and Enterprise is custom (kilo.ai/pricing, read 2026-10-19). Inference is separate: free and local models cost nothing, Kilo Gateway bills "exact provider rates with no markup" plus a 5% processing fee on credit purchases, Kilo Pass is a $19 to $199 monthly credit subscription with bonus credits, and bring-your-own-key costs whatever your provider charges. With this key as the provider, the model prices in the table above are the whole bill.

It is open source on GitHub (Kilo-Org/kilocode), listed on the VS Code Marketplace, owned by Anaconda since July 2026, and billed at provider rates by its own account. With your own key the code never leaves your chosen provider; with this key, requests go to our base URL and the daily real-model check at /proof shows each model answering.

They are different shapes. Cursor is an editor with its own models and a subscription; Kilo is an extension and CLI that runs in the editor you have and bills per token, or lets you bring a key. For heavy agent use the per-token bill is the comparison that matters, and the table above is what it costs here; the Cursor guide covers Cursor with your own key.

Either from Kilo, by adding credit in your Kilo account for Kilo Gateway or Kilo Pass, or from any provider Kilo supports as a custom provider. For this key: sign in to the console, add credit from $10, create a key, and enter it in the Custom provider dialog with our base URL, or in kilo.json through an environment variable.

Both are open-source agents that take a custom provider; Kilo lives in VS Code and JetBrains with a CLI, OpenCode is a terminal agent with a desktop app. Kilo fetches the model list from /v1/models and shows a picker; OpenCode lists the ids you put in opencode.json. The OpenCode guide has that file and compares OpenCode Zen, its paid gateway.

Roo Code shut down on May 15, 2026 and its listing points users to Zoo Code and Cline; Kilo, a fork of Roo, is maintained and advertises a Roo Code migration page. The Roo Code guide on this site covers the shutdown and the Zoo Code setup with the same key.

Every chat model on the list: Kilo reads /v1/models from the base URL and offers them in the picker, Claude, GPT, Gemini, Grok, DeepSeek, Kimi, GLM, Qwen, MiniMax and the uncensored builds included. Tool calling works on all of them, which Kilo needs for agent tasks.
Join on Telegram
Help