* refactor(docs-sync): declare the headless agent scope in the committed policy Each headless pass now states its tool and path scope in configuration the CLI enforces. agent-permissions.json holds two modes; agent-policy.mjs turns a mode into KILO_CONFIG_CONTENT and lib.mjs applies it to every spawned run. The gateway credentials now sit on the four steps that call the CLI, and the checkout keeps no git credential: the fetch and push steps authenticate from their own environment. * fix(docs-sync): narrow the agent scope and keep attachment delivery - `read` is allowed in both modes, because the CLI reads a `-f` attachment through the read tool. - `docs-write` names every permission it needs, with a catch-all deny first. - Edits cover the docs pages and navigation directories. - The allowlist drops `sed`, `uniq` and `diff`, which each have a form that writes a file or runs a command. - The rebuild step's comment describes the rebuild only. * test(docs-sync): guard the command allowlist The policy test records the allowlist the docs passes rely on, so a later edit that changes it has to update this expectation too. * fix(docs-sync): restrict docs edits to markdown and pin the mode tests - The pages allow names the `.md` extension, so the Next.js app modules and API routes beside the docs stay out of reach. - The mode tests compare against literal expectations instead of the map they read, so a new allow fails the test. - The triage comment matches the mode it describes. * test(docs-sync): cover sort in the allowlist guard sort can write a file with -o and run a program with --compress-program, so the guard that keeps such commands out of the allowlist names it too. * test(docs-sync): drop an assertion the exact list already covers The edit-scope test pins the exact allow list, so a second shape check could not fail; the label and a comment now state what the list enforces. * docs(docs-sync): describe the repair step's scope accurately The comment on the repair step now names the paths and commands the mode declares, so it matches agent-permissions.json. * fix(docs-sync): require a valid agent policy before each run Every mode is now checked as it becomes KILO_CONFIG_CONTENT: the first rule must be the catch-all deny, and each rule and pattern must state a known action. A mode that does not meet that requirement stops the run, so every run carries the scope its mode declares. The repair step builds the policy into a variable and checks it before `kilo run`, so the pass starts only when its policy is present. * test(docs-sync): pin the docs typecheck grant in the policy guard * fix(docs-sync): let the mode own the emitted permission map Each mode now supplies `permission` outright, so a run always evaluates the rule map the mode declares, with the catch-all deny first. Provider and model settings from the calling environment still pass through. * fix(docs-sync): give each agent run its own step environment - agent-policy.env() passes each pass the gateway credentials and its inputs, and leaves the variables a step sets for its own gh and git calls on the step. - The edit pass prints through the same line filter as the repair step, and the re-verify step carries the same 10-minute build ceiling. - The no-base config check passes an explicit empty base, so it no longer depends on the environment it runs in. * fix(docs-sync): filter the agent environment by credential name - The child environment of a kilo run keeps the caller's provider and model settings and drops credential-shaped names, instead of naming a fixed list. - The gateway credentials stay, and the policy test pins a credential-shaped key from a step that does not exist yet. * docs(docs-sync): state the name rule at the scope the filter applies * fix(docs-sync): complete the read-only bash scope of the docs agent The docs-write permission map now denies every form of an allowed inspection command that leaves the read-only scope. A guard check pins each such deny entry after the allow rule it qualifies, because permission evaluation takes the last matching rule. * fix(docs-sync): refuse an ask in a mode's rule map A headless pass cannot answer a permission prompt, so a mode that leaves one open fails at that tool call instead of before the model starts. Restrict the accepted actions to allow and deny, name them in both validation messages, and pin the rejection at a whole rule and at one pattern. * test(docs-sync): wrap the new assertion to the file's width
Important: main is not accepting new features
All new feature pull requests must target the v2 branch. Bug fixes for the current release may still go to main.
English | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | Bosanski | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська | বাংলা | Ελληνικά | Tiếng Việt
The open source coding agent for building with AI in VS Code, JetBrains, or the CLI.
Kilo Code is an AI coding agent that meets you everywhere you work: VS Code, JetBrains, and the CLI. It's open source with open pricing. You pick from 500+ models, switch between them mid-task, and pay the model provider's rate with zero markup. No API keys required to start.
Installation
Pick where you want to run Kilo.
VS Code
Install the Kilo Code extension directly, or grab it from the VS Code Marketplace. Create an account and you'll have access to 500+ models including GPT-6 Astra, Claude Fable 5.1, Gemini 3.8 Flash, Grok 4.6, and DeepSeek V4.1 Flash, all at provider pricing.
CLI
# npm
npm install -g @kilocode/cli
# curl
curl -fsSL https://kilo.ai/cli/install | bash
# pnpm
pnpm add -g @kilocode/cli
# bun
bun add -g @kilocode/cli
# Homebrew (macOS / Linux)
brew install Kilo-Org/tap/kilo
# Arch Linux (AUR)
paru -S kilo-bin
Then run kilo in any project directory to start.
JetBrains
Install the Kilo Code plugin from the JetBrains Marketplace, or search "Kilo Code" in Settings → Plugins inside any JetBrains IDE.
Install the CLI from GitHub Releases (binaries)
Download the latest binary from the Releases page.
| Platform | Asset |
|---|---|
| Windows (most PCs) | kilo-windows-x64.zip |
| macOS (Apple Silicon) | kilo-darwin-arm64.zip |
| macOS (Intel) | kilo-darwin-x64.zip |
| Linux x64 | kilo-linux-x64.tar.gz |
| Linux ARM | kilo-linux-arm64.tar.gz |
Notes: x64-baseline is a compatibility build for older CPUs without AVX. musl is the statically linked build for Alpine or minimal Docker images without glibc. kilo-vscode-*.vsix is the VS Code extension package, not the CLI. Source code archives are for building from source.
Agents
Kilo ships with specialized agents you switch between depending on the task. You can also build your own custom agents.
- Code - The default. Implements and edits code from natural language.
- Plan - Designs architecture and writes implementation plans before any code gets written.
- Ask - Answers questions about your codebase without touching any files.
- Debug - Troubleshoots and traces issues.
Learn more about agents and custom agents.
What it does
- Code generation from natural language, across multiple files.
- Inline autocomplete with ghost-text suggestions and tab to accept.
- Self-checking so the agent reviews and corrects its own work.
- Terminal and browser control to run commands and automate the web.
- Kilo Marketplace to install agents, skills, MCP servers, and plugins that extend what the agent can do.
- 500+ models with mid-task switching, so you can match latency, cost, and reasoning to the job.
Autonomous Mode (CI/CD)
Run kilo run with --auto for fully autonomous operation with no prompts, built for CI/CD pipelines:
kilo run --auto "run tests and fix any failures"
--auto auto-approves permission prompts unless a rule explicitly denies the action. Only use it in trusted environments.
Documentation
For configuration and everything else, head over to the docs.
Contributing
Contributions are welcome from developers, writers, and everyone in between. Start with the Contributing Guide for environment setup, coding standards, and how to open a pull request. See RELEASING.md for the VS Code extension and CLI release process, and packages/kilo-jetbrains/RELEASING.md for the JetBrains plugin.
Please review our Code of Conduct before getting involved.
License
MIT. You're free to use, modify, and distribute this code, including commercially, as long as you keep the attribution and license notices. See License.
FAQ
Where did Kilo CLI come from?
Kilo CLI is a fork of OpenCode, enhanced to work within the Kilo agentic engineering platform.