Dev Tool Experiences
All articles

· 8 min read

Kilo Code: Best Open-Source AI Coding Agent for VS Code

By H. Saleh

  • tools

Kilo Code is the best open-source AI coding agent for VS Code for developers who want an MIT-licensed client, bring-your-own-key flexibility, and an agent that can plan, edit across files, run commands, and use MCP tools without forcing a single model provider. The important qualification: its VS Code extension, JetBrains plugin, and CLI are MIT-licensed, while its Gateway and Cloud backend are source-available rather than fully open source—so it is the best fit when you care most about the client you run locally and retain control of model routing.

Why Kilo Code is the best open-source AI coding agent for VS Code

The useful part of Kilo Code is not that it can turn a prompt into a patch. Every serious agent can now do that. It earns the recommendation because its VS Code client is a first-class, MIT-licensed project, it supports direct provider choice or its own routing layer, and its workflow is organized around jobs developers actually separate: Plan, Code, Ask, and Debug. Plan can produce an implementation path before it changes files; Ask is for codebase questions without edits; Debug is the narrower loop for tracing a failure. That distinction is more valuable than a large settings page when you are moving between design review, a flaky test, and a broad refactor in the same afternoon.

The extension is also not confined to a chat-and-diff loop. Its documented capabilities include multi-file generation, terminal and browser control, self-checking, MCP servers, plugins, skills, and inline autocomplete. That gives you one place for an agent to inspect the repository, run the test command it discovers, and make a follow-up edit rather than copying context between a terminal agent and an editor assistant. The CLI shares the same product surface, which is useful when a task starts interactively in VS Code and needs a repeatable command in CI later.

Model choice is the practical tie-breaker. Kilo documents access to more than 500 models through its platform and says its users can switch models mid-task; it also states that BYOK remains supported. That lets you use a cheap or local model for repository questions and a stronger hosted model for a migration, rather than reconfiguring your editor every time the economics change. Treat the “500+” number as a catalog size, not a quality guarantee: most teams will standardize on two or three models after testing them against their own tests, linters, and review standards.

What Kilo Code is bad at

Kilo Code is not the answer if “open source” means every component handling your request must be under an OSI-style license and deployable from source. Kilo explicitly distinguishes its MIT-licensed local clients from the source-available Gateway and Cloud backend; the latter excludes security and abuse-protection code. You can avoid depending on the hosted path by bringing your own keys, but verify the exact provider configuration and network path before sending proprietary code. “The extension is open source” and “the whole service is open source” are different procurement statements.

It is also too much machinery for a one-file change. Asking an agent to rename a function, then reading a plan, approving tool calls, and reviewing a diff is slower than using VS Code’s rename symbol command. Keep the agent for work with uncertainty or breadth: “trace why this integration test flakes,” “add an option end-to-end,” or “split this package while preserving public exports.” For a small local edit, select the code and edit it yourself.

Finally, do not confuse autonomous mode with a safe default. Kilo documents kilo run --auto "run tests and fix any failures" for unattended CLI work, and says it auto-approves permission prompts unless a rule denies the action. That is reasonable only in a disposable or tightly constrained environment. It is a bad first experiment against a developer laptop with production credentials, write access to shared infrastructure, or a shell profile full of useful tokens.

How to use Kilo Code in VS Code without turning it into a second job

Install the VS Code extension, connect only one model provider first, and give it a task with an executable finish line. “Fix the tests” is vague. “Run pnpm test --filter api, identify the first failing assertion, make the smallest fix, and stop before changing snapshots” gives the agent a boundary you can review. If it proposes a plan that broadens the task, stop it there; that is cheaper than unwinding a large diff after it has touched configuration, fixtures, and generated files.

  1. Start in Ask mode for repository orientation: “Where is request authentication enforced, and which tests cover expired tokens?” Verify the cited files yourself.
  2. Use Plan mode for a change spanning more than two or three files. Ask for affected files, migration risks, commands it will run, and tests it expects to change.
  3. Switch to Code only after the plan names a small enough patch to review. Keep terminal command approvals on while learning its behavior in a repository.
  4. Run the project’s real formatter, type-checker, and targeted test command yourself after the agent stops. An agent saying a change is complete is not evidence that the CI matrix agrees.
  5. Use MCP sparingly. An MCP server is executable integration surface with whatever permissions and credentials you give it; install it with the same skepticism you would apply to a new development dependency.

How much does an open-source VS Code coding agent cost?

The extension license is not the bill. With Kilo, the client code is MIT-licensed; usage cost depends on whether you bring a provider key or use its model access path. Its repository says platform-routed models are charged at provider rates with no markup, but the spend still scales with model choice, context size, retries, and the agent’s tool loop. A long task that repeatedly reads a monorepo, runs tests, and revises a patch can cost materially more than a one-shot chat prompt even when the visible final diff is small.

Make cost observable before you make it convenient. Use a separate API key or project for agent work where the provider supports it, set a provider-side budget or alert, and start with scoped prompts and targeted tests. The first cost control is not picking a cheaper model; it is preventing an ambiguous task from becoming five exploratory attempts and a full test suite after each one.

Kilo Code vs. Continue for VS Code

Continue remains a legitimate Apache-2.0 open-source VS Code agent and includes agent, chat, edit, and autocomplete surfaces. But its repository now says it is no longer actively maintained and is read-only, with a final 2.0.0 release. That makes it a poor default for a new daily-driver installation, even if it still fits a locked-down environment where its existing behavior is exactly what you need. A coding agent sits between your editor, shell, models, and frequently changing provider APIs; maintenance status is a feature.

What to check before adopting any open-source VS Code agent

Use this short test instead of a benchmark chart. Give each candidate the same small feature on a throwaway branch: one API change, one UI call site, one focused test, and an intentionally incomplete prompt. Time the full loop from prompt to a reviewed diff—not generation alone. Check whether it finds the existing conventions, whether it asks before running an invasive command, whether it leaves unrelated files alone, and whether you can explain its changes to a reviewer. If it cannot pass that test, its model catalog and agent modes are decoration.

For most individual VS Code users, pick Kilo Code when you want an actively developed MIT client and broad model portability. Keep its hosted-service boundary in mind, do not enable unattended execution casually, and judge it against the repository you actually maintain rather than a public benchmark designed around somebody else’s task.

A model-flexible alternative for VS Code

If your priority is an open-source agent that stays inside the editor while making model choice and explicit approval central to the workflow, look at Cline. Its site describes one agent that works across an IDE, terminal, and SDK; in the IDE it can read and write files, run commands, use a browser, and work through Plan and Act modes. It also documents repository-level .clinerules, MCP and plugin extensions, and support for Claude, GPT, Gemini, local Ollama or LM Studio, and OpenAI-compatible endpoints.

For individual developers, Cline’s pricing page says the open-source extension is free and that inference is usage-based: bring your own API keys or use its provider, without a per-seat subscription for the open-source version. That makes it worth evaluating if the deciding factor in your VS Code agent choice is changing models or providers without changing the workflow—and if you prefer reviewing each proposed action before it happens.

Sources & citations

  1. [1]Kilo Code GitHub repository — installation, agents, CLI automation, and MIT license
  2. [2]Kilo Code open-source component and license matrix
  3. [3]Continue GitHub repository — maintenance status and final release
  4. [4]Continue VS Code extension README — agent, chat, edit, and autocomplete surfaces
  5. [5]Cline — product capabilities, model choice, rules, and approval workflow
  6. [6]Cline pricing — free open-source extension and usage-based inference