Kilo Code is a free, open source AI coding agent that works inside VS Code, JetBrains IDEs and your terminal. You describe a change in plain English, and it plans, edits files across your project, runs commands and checks its own work, using whichever model you pick from more than 500.
Kilo’s pitch is open pricing: you pay the model provider’s rate with no markup, you can bring your own API keys, and there is an Auto Free option plus free-labelled models for trying it without spending anything. It also runs fully local models through Ollama and LM Studio.
This guide shows how to install Kilo Code in VS Code, JetBrains and the CLI, use it for free, connect your own keys or local models, switch between its agents, set up AGENTS.md and MCP servers, run it in CI and fix common problems.
It follows the official Kilo README and docs as of November 2026 (CLI 7.8.32 on npm).
- What: an MIT-licensed coding agent for VS Code, JetBrains and the terminal.
- Install: “Kilo Code” in the VS Code Marketplace, or
npm install -g @kilocode/clithen runkilo. - Free: pick
kilo-auto/freeor any model labelled “(free)”; don’t send private code to free models. - Agents: Code (default), Ask, Plan and Debug; cycle with
Ctrl+.orCmd+.. - Local: Ollama at
http://127.0.0.1:11434or LM Studio athttp://127.0.0.1:1234/v1. - Config:
~/.config/kilo/kilo.jsoncglobally orkilo.jsoncin your project.
What Kilo Code Is
- Multi-file code generation from natural language.
- Inline autocomplete with ghost text you accept with Tab.
- Self-checking: the agent reviews and corrects its own work.
- Terminal and browser control to run commands and automate the web.
- Kilo Marketplace for agents, skills, MCP servers and plugins.
- 500+ models with switching mid-task.
- Cloud Agent and Code Reviews on app.kilo.ai for work without your own machine.
The Kilo CLI is a fork of OpenCode, so if you know OpenCode the terminal app will feel familiar. Our OpenCode vs Claude Code comparison covers that family of tools.
| Where | How you use it |
|---|---|
| VS Code | Sidebar chat, inline autocomplete, diffs in the editor |
| JetBrains | Native plugin for IntelliJ, PyCharm, WebStorm and others |
| CLI | Full-screen terminal app (TUI) started with kilo |
| Cloud Agent | Runs from the browser at app.kilo.ai/cloud |
| Code Reviews | Automatic AI reviews on your pull requests |
Install Kilo Code
VS Code
- Open Extensions with
Ctrl+Shift+X(Windows/Linux) orCmd+Shift+X(macOS). - Search “Kilo Code” and install it. The docs currently point to the dropdown next to Install and Install Pre-Release Version; they say this is a Marketplace channel and the extension is stable.
- Check your version. VS Code 1.84.0 or later is required.
- Sign in or create an account when the Kilo sidebar opens, then pick a model.
VSCodium and similar editors can install it from the Open VSX Registry, or from a .vsix file on GitHub Releases with “Install from VSIX…”.
JetBrains
Open Settings, Plugins in any JetBrains IDE, search “Kilo Code” and install the plugin from the Marketplace.
CLI
# npm
npm install -g @kilocode/cli
# or the install script
curl -fsSL https://kilo.ai/cli/install | bash
# or Homebrew (macOS / Linux)
brew install Kilo-Org/tap/kilo
kilo --version
kilo
pnpm (pnpm add -g @kilocode/cli), bun and the AUR package kilo-bin work too. Binaries on GitHub Releases include kilo-windows-x64.zip, kilo-darwin-arm64.zip and kilo-linux-x64.tar.gz. If your CPU is old and lacks AVX, use the -baseline build. Update with kilo upgrade.
Use Kilo Code for Free
Kilo doesn’t publish a fixed free-credit amount in its docs, but you can work at no cost with free models.
- Pick Auto Free: choose the model
kilo-auto/free, which routes each request to the best available free model. - Or pick a free model yourself: in the IDE, click the current model under the chat box and type
free; in the CLI, use/modelsand typefree. Choose one labelled “(free)”. - Change the small model: session titles and summaries use “Auto Small” by default, which spends credits. In VS Code go to Settings, Models and pick a free small model.
- Watch autocomplete: it uses Kilo credits by default and stops when credits run out, unless you add a Mistral key.
Privacy warning: the docs say Auto Free may route to providers that log prompts and outputs. Never send secrets, client code or personal data to free models.
Bring Your Own API Key
BYOK lets you use your own provider keys through the Kilo Gateway while keeping Kilo features such as Code Reviews and Cloud Agents.
- Sign in at app.kilo.ai and open BYOK under Account in the sidebar.
- Click Add Your First Key, choose the provider, paste the key and save.
- Look for the BYOK badge in the model picker on models that will use your key.
Supported key providers include Anthropic, OpenAI, Google AI Studio, DeepSeek, Mistral, Moonshot (Kimi), MiniMax, Z.ai, Fireworks, AWS Bedrock and more. There are also coding-plan options such as Z.ai Coding Plan, Kimi Code, Ollama Cloud and OpenCode Go, and you can connect an “OpenAI (ChatGPT subscription)” without an API key.
Two rules worth knowing: if your key is invalid the request fails and does not fall back to Kilo’s keys, and the “Claude (linked billing)” option uses API pricing, not a Claude Pro or Max subscription. Our Claude linked billing guide explains that setup.
In the CLI, run /connect the first time to add provider credentials.
Run Local Models (Ollama, LM Studio)
Kilo supports Ollama, LM Studio and Atomic Chat for fully local coding. Your code never leaves your PC.
| Local server | Default base URL |
|---|---|
| Ollama | http://127.0.0.1:11434 |
| LM Studio | http://127.0.0.1:1234/v1 |
| Atomic Chat | http://127.0.0.1:1337/v1 |
- Start your local server and load a coding model, for example
ollama run qwen3-coder. - Add the provider in Kilo’s model settings (or with
/connectin the CLI) and enter the base URL. - Type the model name exactly as you used it in
ollama run. - Raise the context length in Ollama if the agent loses track of files; agent prompts are long.
The docs list limited prompt caching and computer use as the trade-offs with local models. Pick a model that fits your VRAM; our Ollama commands cheat sheet shows how to set context and check memory use.
Agents: Code, Ask, Plan and Debug
| Agent | What it can do | Use it for |
|---|---|---|
| Code (default) | Full tool access | Writing and editing code |
| Ask | Read-only; blocks file writes | Questions about your codebase |
| Plan | Read-only, except plans in .kilo/plans/ |
Architecture and step-by-step plans before coding |
| Debug | Full tool access | Tracing and fixing bugs |
| Orchestrator | Deprecated | Being removed; don’t build on it |
Switch agents from the sidebar dropdown, type /agents, or press Cmd+. (macOS) or Ctrl+. (Windows/Linux) to cycle; add Shift to go backwards. You can also build custom agents (custom modes) for your own workflows.
CLI Commands and Slash Commands
| Command | What it does |
|---|---|
kilo |
Start the terminal app in the current folder |
kilo -c |
Continue the last session |
kilo run "..." |
Run one task non-interactively |
kilo models |
List models for a provider |
kilo mcp |
Manage MCP servers |
kilo session / kilo stats |
Manage sessions and see usage |
kilo upgrade |
Update the CLI |
Inside a session, the most useful slash commands are /connect (add a provider), /models, /agents, /mcps (toggle MCP servers), /init (create or update AGENTS.md), /review, /diff, /sessions, /new and /auto-approve.
AGENTS.md, Config and Permissions
AGENTS.md in your project root tells Kilo your build commands, code style and rules. Run /init to generate one. The file name must be uppercase (AGENTS.md, or AGENT.md as a fallback), and changes apply to new tasks.
Kilo also loads AGENTS.md files in subfolders when it reads files there, and it treats AGENTS.md as write-protected, so the agent needs your approval to change it. See our AGENTS.md guide for a template that works across tools.
Config files live at ~/.config/kilo/kilo.jsonc (global) and kilo.jsonc or .kilo/kilo.jsonc in the project. Project settings win. Older opencode.json files are still read.
{
"model": "anthropic/claude-sonnet-4-20250514",
"instructions": ["CONTRIBUTING.md"],
"permission": {
"*": "ask",
"bash": "allow",
"edit": "ask"
}
}
Permission values are allow, ask and deny. For safety, {env:VAR} references only work in trusted config (global or managed), not in a project file. To turn off telemetry, set KILO_TELEMETRY_LEVEL=off.
Add MCP Servers
In VS Code, open Settings, MCP, Add Server. Or add servers under the mcp key in kilo.jsonc:
{
"mcp": {
"everything": {
"type": "local",
"command": ["npx", "-y", "@modelcontextprotocol/server-everything"],
"enabled": true
},
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"enabled": true
}
}
}
- Remote servers try streamable HTTP first and fall back to SSE; OAuth starts automatically (set
"oauth": falseto turn it off). - Timeouts default to 10 seconds for local and 15 seconds for remote, set in milliseconds with
timeout. - Windows local servers use
["cmd", "/c", "npx", "-y", "package-name"]. - Auto-approve a tool with a permission key such as
"context7_*": "allow".
Need ideas? Our best MCP servers list has 20 picks.
Autonomous Mode for CI/CD
Run Kilo without prompts in a pipeline:
kilo run --auto "run tests and fix any failures"
--auto approves permission prompts unless a rule denies the action, so use it only in trusted, sandboxed environments. Exit codes are 0 for success, 1 for an error and 124 for a timeout, which makes it easy to fail a CI step.
Troubleshooting
| Problem | Fix |
|---|---|
| Extension won’t install | Update VS Code to 1.84.0 or later |
kilo crashes on an old CPU |
Use the -baseline build (no AVX) |
| Commands fail on Windows | Add C:\Windows\System32\WindowsPowerShell\v1.0\ to PATH |
| Autocomplete stopped | You ran out of credits; add credits or a Mistral BYOK key |
| BYOK request errors | Your key is invalid; Kilo doesn’t fall back to its own keys |
| Ollama model not found | Use the exact name from ollama run; check the base URL |
| Local model forgets files | Increase the model’s context length |
MCP shows needs_auth |
Finish the OAuth sign-in or add a header |
| Copilot suggestions clash | Turn off GitHub Copilot inline suggestions |
FAQ
Is Kilo Code free?
The extension and CLI are free and MIT licensed. You pay only for paid models at provider rates, and you can use free models or local models at no cost.
Does Kilo Code mark up model prices?
No. Kilo says you pay the provider’s rate with zero markup.
Can Kilo Code run fully offline?
The coding agent can use local models through Ollama, LM Studio or Atomic Chat, so your prompts stay on your machine.
What is the difference between Kilo Code and OpenCode?
The Kilo CLI is a fork of OpenCode, extended with the Kilo platform: the gateway, BYOK, Cloud Agents, Code Reviews and IDE extensions.
Does Kilo Code work in JetBrains?
Yes, through the Kilo Code plugin on the JetBrains Marketplace.
Where is the Kilo config file?
~/.config/kilo/kilo.jsonc for global settings and kilo.jsonc or .kilo/ in a project.
Is it safe to use free models?
They may log prompts and outputs, so keep private code and secrets away from them.
Can I use my Claude Pro subscription?
No. Claude linked billing uses API pricing, not a Pro or Max plan.




