Short answer
Install Kilo Code CLI with omarchy pkg add kilocode-cli, then run kilo and use /connect inside the TUI to add your provider credentials. The agent is free and MIT licensed; you pay for model usage through the Kilo Gateway, your own provider API keys, or a local model through Ollama or LM Studio.
Kilo Code CLI on Omarchy
Kilo Code CLI is the open source (MIT) terminal coding agent from Kilo Code: a fork of OpenCode with 500+ models, switchable agents for coding, planning, asking, and debugging, and the same engine as its VS Code and JetBrains plugins.
TL;DR
omarchy pkg add kilocode-cli
cd ~/my-project
kilo
That installs Kilo Code CLI v7.8.32-1 (82.9 MB download, 332.6 MB installed, depends on glibc). On first run, use /connect inside the TUI to add your provider credentials. Then describe the change you want in plain language.
Getting started (5 minutes)
1. Launch and connect a provider.
Run kilo in a project directory. The first time, type /connect inside the TUI: this is the guided entry point for adding provider credentials. You can use a Kilo account (the Kilo Gateway gives you 500+ models billed at provider rates), your own provider API key, or a local model through Ollama or LM Studio. No API key is required just to start if you use the Kilo Gateway path.
2. Pick an agent for the job.
Kilo ships with four built-in agents you switch between: code (the default, implements and edits code), plan (designs architecture and writes implementation plans before any code gets written), ask (answers questions about your codebase without touching any files), and debug (troubleshoots and traces issues). Start a session with a specific agent from the shell with kilo --agent plan, or switch inside the TUI.
3. The 3 things you need to know:
- Learn
kilo runfor one-shot work.kilo run "run tests and fix any failures"runs a task without opening the TUI, which makes it scriptable and CI-friendly. Add--autofor fully autonomous operation with no prompts, but only in trusted environments, since it auto-approves permission prompts unless a rule explicitly denies the action. - Know where config lives. Global config is
~/.config/kilo/kilo.jsoncand applies to all projects; project config is./kilo.jsoncor under./.kilo/. That is where the default model, provider credentials, permission rules, and MCP servers live. Runkilo config checkto validate it. - Check your usage.
kilo statsshows token usage and cost, andkilo session listshows past sessions you can resume or export (kilo export <sessionID>).
Practical notes: Kilo Code was acquired by Anaconda on July 15, 2026. The project is still open source under MIT, with about 28,000 GitHub stars, and the README notes that new feature pull requests now target a v2 branch while bug fixes still go to main.
Common issues & fixes
Kilo crashes immediately with Illegal instruction on an older CPU
This hits CPUs without AVX support (Intel Xeon Nehalem, AMD Bulldozer, or older). The Omarchy package ships the standard build, so on an affected machine this is a real blocker, not a config problem.
Fix: Download the baseline variant from GitHub Releases instead of the default build: for Linux x64 that is kilo-linux-x64-baseline.tar.gz. Extract it and run the kilo binary directly. (Kilo CLI docs)
Kilo sends usage telemetry by default and you did not agree to that
Product telemetry (to PostHog) is enabled by default.
Fix: Turn it off with KILO_TELEMETRY_LEVEL=off in your shell environment, or set experimental.openTelemetry to false in your global Kilo config and restart the CLI. The environment variable takes precedence over config, and project config alone does not control telemetry initialization. (Kilo CLI docs)
The agent stalls mid-task, showing tool calls as if they were thinking tokens, and never runs them
This is a real reported bug with Kimi K2.5 models through OpenRouter (Kilo issue #5748): the model emits tool calls while thinking, and Kilo fails to interpret them, so the task stops instead of executing.
Fix: Switch to a different model or provider for that task (for example a Kilo Gateway model or an Anthropic model) and report the trace on the issue if it reproduces for you. (Kilo-Org/kilocode issue #5748)
The /connect login link will not open, or it opens on the wrong machine
Links open on the machine running Kilo. If Kilo runs over SSH and the browser is on your local machine, the link opens somewhere you cannot see it.
Fix: Select and copy the visible URL from the terminal and paste it into your local browser. KILO_DISABLE_MOUSE=1 can help diagnose terminal link behavior, but it also disables TUI mouse controls and is not required for normal use. (Kilo CLI docs)
The agent runs shell commands with your full permissions, and a recent update changed permission or MCP behavior without warning
Two things to know. First, the sandbox is off by default: on Linux it uses Bubblewrap to limit writes outside the workspace and outbound network, but you have to enable it in config. Second, October 2026 releases changed permission and MCP behavior without a breaking-change label.
Fix: Enable the sandbox in config (sandbox settings, including sandbox.network deny with sandbox.allowed_hosts). Pin a version for unattended kilo run --auto use instead of tracking latest blindly. And never use --auto outside a trusted environment. (Kilo CLI docs; Anchor Terminal review)
Pairs well with / If you hate this, try
Pairs well with
- The Kilo Code VS Code extension (same engine, same account, no separate install needed for the CLI binary),
git(review diffs before committing), and Ollama or LM Studio for local models with no per-token bill.
If you hate this, try
- If you hate managing provider keys: Freebuff needs no key at all (ads pay instead), and Kimi Code CLI gives you a single-vendor login with a membership. If you want the same terminal agent without Kilo’s gateway and cloud features, upstream OpenCode is the project Kilo’s CLI is forked from.
Comparison: Kilo Code CLI vs OpenCode vs Freebuff vs Claude Code
| Kilo Code CLI | OpenCode (upstream) | Freebuff | Claude Code | |
|---|---|---|---|---|
| Price | Free agent; models at provider rates, zero markup. Kilo Pass from $19/mo | Free agent; bring your own key | Free; ads pay the bill | Requires Claude Pro $20/mo+ |
| Best for | One agent across terminal, VS Code, and JetBrains with any model | The terminal agent without Kilo’s gateway, IDE plugins, or cloud features | Zero setup, zero spend, no API key | The strongest single-vendor models, no key juggling |
| Omarchy install | omarchy pkg add kilocode-cli | npm install -g opencode-ai | omarchy pkg add freebuff | npm install -g @anthropic-ai/claude-code |
Verdict: Pick Kilo Code CLI if you want to choose your model per task (including local ones) and use the same agent in the terminal and your editor. Pick OpenCode if you want the same terminal experience with no vendor account at all. Pick Freebuff if you want to pay nothing and never touch an API key.
How to switch from Claude Code (~15–30 minutes)
- Export from Claude Code: your project instructions live in
CLAUDE.md. Kilo does not document readingCLAUDE.mddirectly, so copy its contents into your Kilo project config or an agent instruction file rather than assuming it carries over. - Import into Kilo: run
kilo, then/connectto add your provider, and set the default model in./kilo.jsonc. Add MCP servers withkilo mcp add. Recreate any custom slash commands as custom agents (Markdown files under.kilo/agents/). - Install Kilo Code CLI on Omarchy:
omarchy pkg add kilocode-cli. - What doesn’t transfer: chat history, Claude-specific features, and Claude Code’s headless GitHub Actions integration (Kilo has its own
kilo run --autofor CI instead).
Open the Kilo Code CLI package
See the live version, upstream screenshot, requirements, source and exact Omarchy install command.
Frequently asked questions
Is Kilo Code CLI free?
The agent is free and MIT licensed. You pay for model usage: either through the Kilo Gateway at provider rates, with your own provider API keys, or with a local model through Ollama or LM Studio, which costs nothing per token. Kilo Pass starts at $19/mo for extra platform features.
Do I need an API key to start?
No key is required to start if you use a Kilo account and the Kilo Gateway. If you want your own provider or a specific vendor’s models, add the key with /connect or kilo auth login.
Does it work with local models?
Yes. Kilo works with local Ollama and LM Studio servers as providers, alongside 500+ hosted models. That is the cheapest way to run it and the only way to keep prompts fully on your machine.
Is Kilo Code CLI the same as OpenCode?
No, but it is closely related. The Kilo CLI is a fork of OpenCode, enhanced to work within the Kilo platform: it adds the Kilo Gateway, the shared engine with the VS Code and JetBrains plugins, and commands like kilo cloud. Upstream OpenCode is the same terminal experience without those additions.
Who owns Kilo Code?
Anaconda acquired Kilo Code on July 15, 2026. The project is still open source under MIT, with about 28,000 GitHub stars, and the README notes that new feature pull requests now target a v2 branch while bug fixes still go to main.
Where does Kilo Code CLI store its config?
Global config at ~/.config/kilo/kilo.jsonc, project config at ./kilo.jsonc or under ./.kilo/. Sessions, usage stats, and the local database are managed through kilo session, kilo stats, and kilo db commands.
Official sources
- omarchyapps.com app page — kilocode-cli v7.8.32-1, 82.9 MB download, 332.6 MB installed, MIT, updated 2026-11-23
- Kilo Code README (install methods, agents, 500+ models, zero markup, fork of OpenCode, baseline builds)
- Kilo CLI docs (Illegal instruction baseline fix, /connect, SSH link fallback, telemetry opt-out, sandbox)
- Kilo CLI cheatsheet (commands, kilo.jsonc paths, agents, auth commands)
- Kimi K2.5 tool-call bug, Kilo issue #5748
- Pricing (free agent, provider rates plus 5% fee, Kilo Pass from $19/mo, Teams $15/user, Anaconda acquisition July 15, 2026)
- Telemetry, sandbox, and permission-change review
- Kilo Code skill reference (config paths, agents, local models)
Commands and fixes verified against official sources November 2026; on-machine verification pending.