OpenCode vs Kilo Code (2026): 209k vs 27k Stars, Both MIT, Both $0, Kilo CLI Is an OpenCode Fork

OpenCode (209k stars, v1.18.32) vs Kilo Code (27k stars, v7.7.7). Kilo CLI is a fork of OpenCode and the Kilo VS Code extension runs on the OpenCode server. Pricing (Zen, Go, Kilo Gateway, Kilo Pass), features, install commands, and which to pick.

June 9, 2026 ยท 1 min read
OpenCode vs Kilo Code (2026): 209k vs 27k Stars, Both MIT, Both $0, Kilo CLI Is an OpenCode Fork

OpenCode vs Kilo Code is no longer two unrelated agents. Kilo CLI is a fork of OpenCode, and the Kilo Code VS Code extension runs on the OpenCode server. Both are MIT licensed, free, and bring-your-own-model. OpenCode is the upstream engine and gets fixes first, and OpenCode V2 shipped on September 11, 2026. Anaconda acquired Kilo Code in July 2026. Kilo Code puts that engine in VS Code, JetBrains, a CLI, and a cloud agent, with a 500+ model gateway at provider rates.

209,405
OpenCode GitHub stars (Sep 22, 2026)
27,390
Kilo Code GitHub stars (Sep 22, 2026)
v1.18.32
OpenCode latest (Sep 21); Kilo v7.7.7 adopts up to v1.18.18
$0
Both free and MIT; pay only for the model

OpenCode vs Kilo Code at a Glance

Head-to-head (September 2026)
DimensionOpenCodeKilo Code
GitHub stars209,40527,390
Latest releasev1.18.32 (Sep 21, 2026)v7.7.7 (Sep 22, 2026)
LicenseMITMIT
Repoanomalyco/opencodeKilo-Org/kilocode
EngineOpenCode server (upstream)OpenCode server (fork, synced in batches)
SurfacesTerminal TUI, desktop app, IDE extensionVS Code, JetBrains, Kilo CLI, Cloud Agent, Code Reviews
Built-in agentsbuild, plan (Tab to switch)Code, Plan, Ask, Debug, plus custom agents
Providers75+ via AI SDK + Models.dev, plus local500+ models across 60+ providers via Kilo Gateway, BYOK, local
Remote / SSHNativeKilo CLI native; extension needs VS Code Remote
Hosted modelsOpenCode Zen (pay as you go), OpenCode Go ($10/mo)Kilo Gateway ($0 + provider rates), Kilo Pass ($19 / $49 / $199)
Best forTerminal work, newest engine firstIn-IDE work, teams, one account across surfaces

Both are open source and model-agnostic, so neither locks you in. OpenCode has the largest star count of any open-source coding agent, ahead of OpenAI Codex (125,963) and Gemini CLI (107,130). Star counts were read from the GitHub API on September 22, 2026.

What Changed Since July 2026

  • Sep 22: Kilo v7.7.7 adopts OpenCode v1.18.14 through v1.18.18. OpenCode V2 reaches 2.0.14.
  • Sep 21: OpenCode v1.18.32 adds Grok 4.7 to Zen and Go, and DeepSeek V4.1 Flash to Zen.
  • Sep 17: Kilo v7.7.3 removes KiloClaw: the VS Code chat panel, the /kiloclaw TUI command, and the Kilo Chat client. The /local-review aliases are gone too. Use /review.
  • Sep 11: OpenCode V2 2.0.0 ships on npm as @opencode/cli. New plugin API, so V1 plugins break.
  • Sep 10: Kilo v7.6.0 removes the interactive_terminal tool. Commands that need keyboard input now run in your own terminal. Adds /goal, /caffeinate, and a one-time import of Claude Code instructions, skills, and MCP definitions.
  • Aug 24: OpenCode v1.18.22 drops the OpenCode Go first-month discount.
  • Jul 15: Anaconda acquires Kilo Code. Anaconda says Kilo routes almost 10 trillion tokens per month. The repo is still MIT licensed.
  • Jul 14: OpenCode v1.18.0 completes the desktop v2 migration, with a setting to switch back to the old layout.

OpenCode Go now asks third-party clients to send their own user agent and a stable x-opencode-session header. Kilo Code CLI is on the validated list after Kilo PR #13752. The Kilo VS Code extension is not.

Kilo CLI vs OpenCode: Same Engine, Different Platform

The Kilo-Org/kilocode README answers the most common question directly: "Kilo CLI is a fork of OpenCode, enhanced to work within the Kilo agentic engineering platform." Kilo CLI 1.0 shipped on February 3, 2026, built on the OpenCode server. On April 2, 2026 the rebuilt Kilo Code for VS Code went GA on the same core, replacing the Roo/Cline-lineage internals that had served over 2.2 million developers.

So the real difference is what sits around the engine. Kilo adds the Kilo Gateway, session sync between CLI and editor, Agent Manager with git worktree isolation, inline autocomplete, an MCP marketplace, JetBrains, and a cloud agent. OpenCode adds nothing on top. It is the engine, and it ships first.

The upstream lag, measured

Kilo merges OpenCode in batches and says so in its changelog. The v7.7.7 release (September 22, 2026) reads "Adopt OpenCode v1.18.16 through v1.18.18 improvements, including conversation-aware compaction." OpenCode v1.18.18 shipped August 13, 2026, and OpenCode is on v1.18.32 (September 21). That is 14 patch releases and about five weeks behind. If a fix you need landed upstream last week, OpenCode has it and Kilo probably does not yet.

A bigger gap is open now. OpenCode V2 shipped as 2.0.0 on npm (@opencode/cli) on September 11, 2026, and was on 2.0.14 by September 22. V2 has a new plugin API, so V1 plugins do not run. It also has new server and client contracts, and one global cli.json for TUI config in place of layered tui.json. V2 reads V1 opencode.json as-is. The GitHub Releases page still shows the 1.18.x line, because V2 ships as git tags only. Kilo CLI has none of V2. Kilo's port onto OpenCode V2 is an open tracking issue on a separate kilo-v2 branch, and its status note says end-to-end acceptance is incomplete. Expect the gap to widen during that migration.

Install Commands (OpenCode, Kilo CLI, Kilo Code)

OpenCode ships as a single binary from a one-liner, npm, Homebrew, and most OS package managers:

# OpenCode (stable v1)
curl -fsSL https://opencode.ai/install | bash
npm i -g opencode-ai@latest          # or bun/pnpm/yarn
brew install anomalyco/tap/opencode  # recommended tap, always current
# Also: scoop, choco, pacman, paru, mise, nix
# Desktop app: brew install --cask opencode-desktop

# OpenCode V2 (2.0.x, replaces the V1 binary; both run as "opencode")
curl -fsSL https://opencode.ai/v2/install | bash
npm i -g @opencode/cli
brew install anomalyco/tap/opencode-v2

Kilo CLI installs the same way and runs as kilo:

# Kilo CLI
npm install -g @kilocode/cli
curl -fsSL https://kilo.ai/cli/install | bash
brew install Kilo-Org/tap/kilo
paru -S kilo-bin
kilo                                   # start in a project
kilo run --auto "run tests and fix any failures"   # CI mode, auto-approves

Kilo Code for VS Code installs from the VS Code Marketplace (also on Open VSX). The JetBrains plugin is in the JetBrains Marketplace. The old kilocode.ai domain redirects to kilo.ai.

Config gotcha when moving from OpenCode to Kilo

Kilo reads kilo.jsonc from ~/.config/kilo/ and .kilo/, and also deep-merges legacy opencode.json files it finds there. It no longer falls back to ~/.config/opencode or ./.opencode, so move your config. Kilo issue #8858 reported that with both files present, model changes saved in the v7 extension silently reverted. The workaround was to keep one file. OpenCode moved from sst/opencode to anomalyco/opencode; the old repo URL redirects.

Pricing and Billing: OpenCode Zen and Go vs Kilo Gateway and Kilo Pass

The agents cost nothing. Spend goes to the model. Both teams now sell optional hosted model access, and both let you skip it with your own key.

Pricing (September 2026)
PlanOpenCodeKilo Code
Open-source agentFree (MIT)Free (MIT)
BYO key / localAny of 75+ providers, Ollama, LM Studio, llama.cppBYOK, free models, or local via Ollama at $0/mo
Pay-as-you-go gatewayOpenCode Zen: at cost + 4.4% + $0.30 per transactionKilo Gateway: $0/mo + exact provider rates, 5% fee on credit purchases
SubscriptionOpenCode Go: $10/mo, 30+ open coding modelsKilo Pass: $19 / $49 / $199 per mo (up to $26.60 / $68.60 / $278.60 in credits)
Annual discountNot listed50% bonus credits on annual Kilo Pass
Free modelsSeveral Zen models free for a limited timeAuto Free tier
TeamsEnterprise (listed, no public price)$15 per user / mo; Enterprise custom
Cloud computeNoneCloud Agent $0.60-$1.20/hr, Code Review $0.33/hr, per second

OpenCode Go caps spend in windows: 20% of the monthly allowance per 5 hours and 50% per week, per the Go docs. Kilo Pass is prepaid credit with a bonus, not a rate limit. Prices are from kilo.ai/pricing and opencode.ai/docs/zen, checked September 22, 2026.

Features: OpenCode vs Kilo Code Extension

Feature comparison
FeatureOpenCodeKilo Code
Plan / read-only agentplan agent denies edits, asks before bashPlan and Ask agents
Subagents / parallelEngine Kilo built its subagents onSubagent delegation, parallel tool calls
Multi-agent managerNoAgent Manager with git worktree isolation
Inline autocompleteNoGhost-text autocomplete
MCPYes, opencode mcp to manage serversYes, plus MCP marketplace
Headless / CIopencode runkilo run --auto
IDEsIDE extension, desktop appVS Code, JetBrains
Session sync CLI to editoropencode serve + opencode attachBuilt in across CLI, VS Code, JetBrains

Compaction is a shared weak spot because it is shared code. An August 2026 Hacker News comment named compaction in OpenCode and Kilo Code as the main blocker to switching harnesses. The fix, conversation-aware compaction, landed upstream in OpenCode v1.18.16 to v1.18.18 and reached Kilo in v7.7.7.

Models and Providers

OpenCode uses the AI SDK and Models.dev to support 75+ LLM providers, plus local inference via Ollama, LM Studio, and llama.cpp. OpenCode Zen is the team's curated list of models tested for coding agents. Custom OpenAI-compatible endpoints go in opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "myprovider": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "My AI Provider",
      "options": { "baseURL": "https://api.myprovider.com/v1" },
      "models": { "my-model": { "name": "My Model" } }
    }
  }
}

Kilo Code routes 500+ models across 60+ providers through the Kilo Gateway, lets you switch models mid-task, and accepts your own keys with no Kilo plan required. Because Kilo CLI is an OpenCode fork, the same provider block works in kilo.jsonc.

Terminal vs Editor

Kilo Code is for developers who want the agent inside VS Code or JetBrains with review UI, autocomplete, and Agent Manager. The v7 rebuild had rough edges: Kilo's week-one post (April 7, 2026) acknowledged Plan and Ask agents that were not strict enough about writes, sessions stuck on rate limits, and memory regressions on large monorepos and Windows. Users who preferred the old extension rolled back with Install Specific Version to 5.x.

OpenCode is for developers who want the agent in the terminal. Its client-server design runs in any shell, including remote machines over SSH, with no editor dependency. Kilo CLI covers the same ground if you want Kilo's gateway and session sync. Compare OpenCode with Cline and Codex.

Best Models to Run on Either

Both are bring-your-own-key, so the model decides quality and cost. For code, the question is which endpoint gives you the cheapest tokens at full output quality.

Morph serves open coding models on custom kernels behind an OpenAI-compatible API. DeepSeek V4.1 Flash (morph-dsv41flash) is $0.12 per 1M input tokens and $0.8 per 1M output tokens with a 1M context window. Kilo lists DeepSeek V4.1 Flash on its gateway and OpenCode added it to Zen in v1.18.32, so it is a common choice on both. Add Morph as a custom provider with the block above. See pricing for the full model list.

One model menu, two agents

Both agents accept any OpenAI-compatible base URL, so the same provider config works in either. Send hard tasks to a strong model and easy tasks to a cheaper one to cut spend. See LLM cost optimization.

Where OpenCode Wins

Upstream first

Every engine fix lands here first. Kilo v7.7.7 trails by 14 patch releases (v1.18.18 vs v1.18.32).

Most providers

75+ providers via the AI SDK and Models.dev, plus Ollama, LM Studio, and llama.cpp.

Largest community

209,405 stars, the most-starred open-source coding agent on GitHub.

Where Kilo Code Wins

Every surface

VS Code, JetBrains, Kilo CLI, Cloud Agent, and PR Code Reviews on one account with synced sessions.

IDE features

Agent Manager with git worktrees, inline autocomplete, MCP marketplace, Code/Plan/Ask/Debug agents.

Managed gateway

500+ models at exact provider rates, or Kilo Pass with bonus credits. Teams at $15 per user per month.

Decision Framework

Pick by where you code
Your situationBest choiceWhy
Work in the terminalOpenCodeUpstream engine, newest fixes first.
Terminal, but want Kilo's gatewayKilo CLISame engine, plus Kilo account and session sync.
Work on remote / SSHOpenCode or Kilo CLIBoth client-server, no VS Code Remote needed.
Live in VS Code or JetBrainsKilo CodeNative VS Code and JetBrains plugins.
Cheap flat-rate open modelsOpenCode Go$10/mo with 5-hour and weekly caps.
Team billing and analyticsKilo CodeTeams at $15 per user per month.

Frequently Asked Questions

Is OpenCode or Kilo Code better?

Pick by surface. OpenCode (209,405 GitHub stars, v1.18.32) is the upstream terminal agent and gets fixes first. Kilo Code (27,390 stars, v7.7.7) wraps the same OpenCode engine in VS Code, JetBrains, a CLI, and a cloud agent, and adds Kilo Gateway with 500+ models. Terminal-first and want the newest engine: OpenCode. Want the agent inside your IDE with one account: Kilo Code.

Is Kilo Code a fork of OpenCode?

Kilo CLI is. The Kilo-Org/kilocode README states that Kilo CLI is a fork of OpenCode. Kilo CLI 1.0 (February 3, 2026) was built on the OpenCode server, and the rebuilt Kilo Code VS Code extension (GA April 2, 2026) runs on the same OpenCode server core. Kilo releases note which OpenCode versions they adopt; v7.7.7 adopts OpenCode v1.18.14 through v1.18.18.

Is Kilo Code better than OpenCode?

Kilo Code is better if you want an IDE extension, JetBrains support, Agent Manager with git worktrees, inline autocomplete, and a managed gateway. OpenCode is better if you want the upstream engine without lag: Kilo v7.7.7 (September 22, 2026) ships OpenCode changes up to v1.18.18, while OpenCode itself is on v1.18.32.

Is Kilo Code free?

Yes. The Kilo Code extensions and CLI are free and MIT licensed. Kilo Gateway is $0/month plus usage at exact provider rates with no inference markup; buying credits carries a 5% processing fee. Optional Kilo Pass plans are $19, $49, or $199 per month with bonus credits (up to $26.60, $68.60, and $278.60), and annual billing gives 50% bonus credits. Teams is $15 per user per month. BYOK, free models, and local models via Ollama cost $0.

Is OpenCode free?

Yes. OpenCode is MIT licensed and free, and you can bring a key from any of 75+ providers or run local models. OpenCode Zen is optional pay-as-you-go at cost plus a 4.4% + $0.30 per-transaction processing fee, with several free models for a limited time. OpenCode Go is an optional $10/month subscription for open coding models.

How do I install OpenCode and Kilo Code?

OpenCode: curl -fsSL https://opencode.ai/install | bash, npm i -g opencode-ai@latest, or brew install anomalyco/tap/opencode. OpenCode V2 (2.0.x): curl -fsSL https://opencode.ai/v2/install | bash or npm i -g @opencode/cli; it replaces the V1 binary. Kilo CLI: npm install -g @kilocode/cli, curl -fsSL https://kilo.ai/cli/install | bash, or brew install Kilo-Org/tap/kilo, then run kilo. Kilo Code for VS Code installs from the Marketplace; JetBrains from the JetBrains Marketplace.

Who owns Kilo Code now?

Anaconda. Anaconda announced its acquisition of Kilo Code on July 15, 2026, and kilo.ai now carries an acquisition banner. The Kilo-Org/kilocode repo is still MIT licensed, and Kilo kept shipping after the deal: v7.6.0 (September 10) removed the interactive_terminal tool, v7.7.3 (September 17) removed KiloClaw, and v7.7.7 shipped September 22.

Does Kilo CLI support OpenCode V2?

No. OpenCode V2 shipped as 2.0.0 on npm (@opencode/cli) on September 11, 2026 and was on 2.0.14 by September 22. Kilo CLI v7.7.7 tracks the V1 line through OpenCode v1.18.18. Kilo's port onto V2 lives on a separate kilo-v2 branch, and its tracking issue (#13750) says end-to-end acceptance is incomplete.

Is Kilo Code a fork of Roo Code and Cline?

It started that way. Kilo Code launched in 2025 as a feature merge of Roo Code and Cline. In 2026 Kilo rebuilt the VS Code extension on the OpenCode server (v7 GA April 2, 2026). Users who want the older Roo/Cline-lineage extension can install a 5.x version via Install Specific Version in the VS Code extensions panel. The RooCodeInc/Roo-Code GitHub repo is archived.

How many providers does OpenCode support?

OpenCode uses the AI SDK and Models.dev to support 75+ LLM providers, plus local models through Ollama, LM Studio, and llama.cpp. OpenCode Zen is the team's curated list of models tested for coding agents. Custom OpenAI-compatible endpoints go in opencode.json with the @ai-sdk/openai-compatible package.

What is the best model to run on either?

Both accept any OpenAI-compatible endpoint. Morph serves DeepSeek V4.1 Flash (morph-dsv41flash) at $0.12 per 1M input and $0.8 per 1M output tokens with a 1M context window. Add it as a custom provider in opencode.json or kilo.jsonc.

Related comparisons

WarpGrep Boosts Any Open-Source Agent

WarpGrep is #1 on SWE-Bench Pro for repo search. It runs as an MCP server inside OpenCode, Kilo Code, and any tool that supports MCP. Better search means better context means better code.