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.
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):
| Option | Price | What you get |
|---|---|---|
| Free and local models | $0 | Auto Free routes to free models; Ollama and LM Studio run locally |
| Bring your own key | $0 to Kilo | Anthropic, OpenAI, Google, Bedrock, Azure or any OpenAI-compatible provider, billed by that provider |
| Kilo Gateway | provider rates + 5% on credit purchases | 500+ models at "exact provider rates with no markup", pay as you go |
| Kilo Pass | $19, $49 or $199 a month | monthly 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
- Sign in to the console and add credit, from $10. No subscription.
- Create a key. The same key works in Kilo, Cline, OpenCode, Claude Code and your own code.
- 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
- Provider ID:
uplinkswitch. Display name: UplinkSwitch. - Provider API: OpenAI Compatible. This is the chat completions format, and every model on the Models page answers in it, Claude included.
- Base URL:
https://api.uplinkswitch.com/v1. - 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.
- Models: once the URL and key are in, Kilo queries
/v1/modelsand shows a searchable picker. Tick the ids you want. Fetch models retries the fetch. - 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.
{
"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:
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.
{
"$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"
}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.
| Model | Priced at | 20-turn session |
|---|---|---|
| GLM-5.3 Abliterated | this API | $0.7023 |
| DeepSeek V4.1 Flash 1017 Abliterated | this API | $0.1505 |
| Claude Sonnet 5.5 | developer list | $0.2028 |
| Claude Opus 5.5 | developer 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
| Model | Input / 1M | Cached input / 1M | Output / 1M | Developer list, out / 1M | Under list |
|---|---|---|---|---|---|
| Claude Sonnet 5.5 | $1.20 | $0.075 | $3.00 | $10.00 | 70% |
| Claude Opus 5.5 | $2.80 | $0.15 | $10.00 | $20.00 | 50% |
| GPT-6.1 Sol | $0.60 | $0.06 | $3.00 | $10.00 | 70% |
| Gemini 3.1 Pro Preview | $1.20 | $0.12 | $7.20 | $12.00 | 40% |
| DeepSeek V4 Pro 0813 | $0.792 | $0.0625 | $1.188 | $3.96 | 70% |
| Kimi K3 | $0.90 | $0.12 | $4.50 | $15.00 | 70% |
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
/v1root 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.