Best for · AI tools

Open source AI coding agents: which are alive, which are not

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • The best open source AI coding agent for most people is OpenCode: MIT license, a terminal agent plus a desktop app in beta, any model provider, and the most active repo on this list (about 231,000 GitHub stars on 4 December 2026).

Compared here

  • 01OpenCode
  • 02Codex CLI
  • 03Cline
  • 04OpenHands
  • 05goose
  • 06Kilo Code
  • 07Aider
  • 08Gemini CLI

Short answer

The best open source AI coding agent for most people is OpenCode: MIT license, a terminal agent plus a desktop app in beta, any model provider, and the most active repo on this list (about 231,000 GitHub stars on 4 December 2026). If you live in VS Code or JetBrains, Cline (Apache 2.0) brings the same idea into your editor and works with Anthropic, OpenAI, Google, OpenRouter or local models through Ollama. If you pay for ChatGPT, Codex CLI (Apache 2.0) is open source and runs on your Plus or Pro plan.

Open source means the tool is free; the model behind it usually is not. You pay your model provider, or run a local model on your own machine. Two famous names need a warning: Roo Code says its extension "was shut down on May 15th" and the repo is archived, and Continue's repo is read-only and "no longer actively maintained". Gemini CLI still works but Google now sends free and Google AI plan users to Antigravity CLI.

Try Codex with ChatGPTTry Claude (for models in these agents)

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

From each project's GitHub repository and README, read 4 December 2026. Stars rounded; they change daily. Licenses as GitHub reports them.
AgentLicenseWhere it runsModelsStars (4 Dec 2026)Status
OpenCodeMITTerminal, desktop app (beta)Any provider~231kActive, pushed 3 Dec
Codex CLI (OpenAI)Apache 2.0Terminal, IDE, desktop appOpenAI; ChatGPT plan or API key~137kActive
Gemini CLI (Google)Apache 2.0TerminalGemini via API~110kActive, but free tier moved to Antigravity CLI
OpenHandsMITSelf-hosted Agent Canvas, local, Docker, VMs, cloudAny LLM; runs other agents too~95kActive
ClineApache 2.0VS Code, JetBrains, CLI, desktop app, SDKAnthropic, OpenAI, Google, OpenRouter, Bedrock, Ollama and more~72kActive
gooseApache 2.0Desktop app (macOS, Linux, Windows), CLI85+ providers or local models in-process~57kActive, Linux Foundation AAIF
AiderApache 2.0Terminal, works with your IDEAlmost any LLM incl. local~50kLast push May 2026
Kilo CodeMITVS Code, JetBrains, CLI, webMany providers~28kActive, v2 branch
ContinueApache 2.0CLI, VS Code, JetBrainsMany providers~37kRead-only, final 2.0.0 release
Roo CodeApache 2.0VS CodeMany providers~24kArchived, shut down 15 May

Money first. These are open source projects, so there is nothing to buy from most of them, and nobody pays us for this list. The two links on the page go to ChatGPT and Claude, because many of these agents run on those models and we may earn from those someday. The ranking is based on what we read in the repos, not on that.

How we checked: on 4 December 2026 we opened every project's GitHub repository, read the README and pulled the license, star count, last push date and archive status through GitHub's own API. We did not benchmark these agents on our code. Stars are a popularity signal, not a quality score. Treat them like the crowd outside a bar: a hint, not a review.

What "open source AI coding agent" actually means

A coding agent takes a task in plain words, reads your project, edits files, runs commands like tests, and comes back with a result. "Open source" means the agent's code is published under a license like MIT or Apache 2.0, so you can read it, change it, self-host it and fork it if the company behind it walks away.

What open source does not mean: free brains. The agent is the harness. The model, Claude, GPT, Gemini or a local one, is the engine, and engines cost fuel. You either:

  • bring an API key and pay per token,
  • sign in with a plan you already pay for (Codex with ChatGPT), or
  • run a local model through something like Ollama, and pay in hardware and patience.

The live picks

OpenCode: the default choice

OpenCode describes itself as "The open source coding agent." MIT licensed, roughly 231,000 stars on 4 December 2026, and pushed to the day before we looked. The repo moved to the anomalyco organisation; the old links still redirect.

What you get, per the README:

  • A terminal app, installable with a script, npm, Homebrew, pacman, mise or Nix.
  • A desktop app in beta for macOS (Apple Silicon and Intel), Windows and Linux.
  • Two built-in agents you switch with the Tab key: build, the full-access default, and plan, a read-only agent that "denies file edits by default" and asks before running bash commands. Plus a general subagent for long searches.

That plan mode is the part beginners should love. Point it at a codebase you do not know and it explores without touching anything. Our Claude Code vs OpenCode page goes deeper.

Cline: the editor choice

Cline calls itself "the open source coding agent in your IDE, terminal, & desktop". Apache 2.0, about 72,000 stars, active. It comes as:

  • a VS Code extension with "human-in-the-loop approval" for each action,
  • a JetBrains plugin for IntelliJ, PyCharm, WebStorm, GoLand and the rest,
  • a CLI (npm i -g cline) that runs interactive or headless for CI,
  • a desktop app for macOS and Windows,
  • an SDK to build your own agents.

Its model table lists Anthropic, OpenAI, Google, OpenRouter (200+ models), Vercel AI Gateway, AWS Bedrock, Azure and Vertex, Cerebras and Groq, Ollama and LM Studio, and any OpenAI-compatible API. Project rules live in .clinerules files. See Claude Code vs Cline.

Codex CLI: open source, paid by your ChatGPT plan

OpenAI's Codex CLI is Apache 2.0 with about 137,000 stars. The README says to run codex and choose "Sign in with ChatGPT" to use it "as part of your Plus, Pro, Business, Edu, or Enterprise plan", or set it up with an API key. It also runs in VS Code-style editors and as a desktop app (codex app).

So the code is open, but it is built around OpenAI's models. If you want freedom to swap engines, OpenCode or Cline is the better fit. If you already pay for ChatGPT, Codex is the cheapest way to start, because you pay nothing extra.

OpenHands: the self-hosted team

OpenHands (MIT, about 95,000 stars) has grown into "Agent Canvas", "the self-hosted developer control center for coding agents and automations". It runs locally by default and can run agents in Docker, on VMs or in your company's infrastructure. It ships its own agent and can drive others: Claude Code, Codex, Gemini, Pi, OpenCode or any agent that speaks the Agent Client Protocol. It also does scheduled automations with Slack, GitHub, Linear and Notion.

This is the pick for a team lead who wants agents running on company machines, not on a vendor's cloud.

goose: the general agent from the Linux Foundation

goose (Apache 2.0, about 57,000 stars) is now part of the Agentic AI Foundation at the Linux Foundation. The README pitches it as a general-purpose agent for coding, research, writing and automation, with a desktop app for macOS, Linux and Windows and a CLI. It connects to "over 85 providers" or loads local models "directly inside goose, without a separate model server". Our Claude Code vs goose page compares them.

Kilo Code: the all-in-one

Kilo Code (MIT, about 28,000 stars) runs in VS Code, JetBrains, a CLI (kilo) and from the web at app.kilo.ai, and calls itself "the most popular open source coding agent", a claim the star counts above do not back up. Note the README warning: main is not taking new features; work happens on a v2 branch. Expect changes.

Aider: the original terminal pair programmer

Aider (Apache 2.0, about 50,000 stars) pioneered the "AI pair programming in your terminal" style. It maps your whole codebase, auto-commits each change with a message so you can undo with plain git, lints and tests after edits, and even takes voice. It works with "almost any LLM, including local models".

One flag: the last push we saw was 22 May 2026, while the others above pushed in December. The README still lists models like Claude 3.7 Sonnet as its best fits. Aider works fine, but it is moving slower. See Aider vs Claude Code.

The ones to be careful with

  • Gemini CLI (Apache 2.0, about 110,000 stars). Still maintained, but its README opens with a warning: free individual access and Google AI Pro and Ultra plans moved to Antigravity CLI on 18 June, and Gemini CLI is "not optimized for Gemini 4+". Fine if you have a Gemini API key; otherwise Google itself points you away. Our Codex vs Claude Code vs Gemini CLI page has the background.
  • Continue (Apache 2.0). README: "no longer actively maintained and is read-only for all users", after a final 2.0.0 release that removed telemetry. Usable, but frozen.
  • Roo Code (Apache 2.0). README: "The Roo Code Extension was shut down on May 15th." Repo archived. Fork material only.

The lesson: open source protects you from losing the code, not from losing the maintainers. Check the last push date before you build a team habit on any of these.

How to pick in one minute

  • Terminal person, want freedom of model: OpenCode.
  • VS Code or JetBrains person: Cline, or Kilo Code if you want a web option too.
  • Already pay for ChatGPT: Codex CLI.
  • Team lead wanting self-hosted agents and automations: OpenHands.
  • Want local models with no extra server: goose.
  • Like git-first, commit-per-change work: Aider.

What it costs in practice

The agent: $0. The model: whatever your provider charges. Three ways people keep it sane:

  1. Use a plan you already pay for. Codex with ChatGPT is the clean example.
  2. Use a router with spending limits. OpenRouter-style services let you cap spend, and Cline lists OpenRouter.
  3. Use a smaller model for routine work. Explaining code and writing tests rarely needs the most expensive model.

We did not measure token use, so we will not tell you "a day of coding costs $X". Anyone who gives you one number is guessing about your codebase.

Safety before you hand over the keys

An agent can run shell commands. That is the point, and the risk.

  • Start in a read-only or plan mode (OpenCode's plan agent, Cline's approvals).
  • Work on a git branch, so a bad run is one git reset away.
  • Keep API keys out of the repo. Use environment variables.
  • For company code, check where the model provider stores prompts, or self-host with OpenHands and a model your company approves.

For closed-source comparisons, see Claude Code vs Cline and our AI tools hub.

Questions people ask

What is the best open source AI coding agent?

For most people, OpenCode: MIT licensed, terminal plus a beta desktop app, works with any model provider, and by far the most starred and active repo we checked. Pick Cline if you want the agent inside VS Code or JetBrains. Pick Codex CLI if you already pay for ChatGPT, since it signs in with your plan.

Are open source AI coding agents free?

The software is free under MIT or Apache 2.0. The model is the meter. You bring an API key from Anthropic, OpenAI, Google or a router like OpenRouter and pay per use, or you sign in with a plan you already have, as Codex does with ChatGPT. Running a local model through Ollama costs only your hardware and electricity.

Can I run an open source coding agent with a local model?

Yes. Cline lists Ollama and LM Studio. goose says it can load local models directly inside goose, without a separate model server. Aider says it can connect to almost any LLM, including local models. Expect local models on a laptop to be slower and weaker than top cloud models on big jobs.

Is Claude Code open source?

Not by the test we used. GitHub showed no open-source license on Anthropic's claude-code repository on 4 December 2026, so it is not on this list. If you like Claude models, you can use them inside the open agents here: Cline, OpenCode, goose and Aider all work with Anthropic models through an API key. Our comparison pages cover Claude Code against several of them.

What happened to Roo Code and Continue?

Roo Code's README says the extension was shut down on 15 May and its GitHub repo is archived. Continue's README says the repo is no longer actively maintained and read-only, after a final 2.0.0 release. Both still have code you can fork, but do not start a new team on them expecting updates.

Is Gemini CLI still free?

Not in the old way. Gemini CLI's README now says free individual access and Google AI Pro and Ultra plans moved to Antigravity CLI on 18 June, and that Gemini CLI is not tuned for the Gemini 4 series. It is still open source and installable with npm or Homebrew, but Google points most people elsewhere.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. OpenCode on GitHub, checked 4 Dec 2026
  2. Codex CLI on GitHub (OpenAI), checked 4 Dec 2026
  3. Gemini CLI on GitHub (Google), checked 4 Dec 2026
  4. OpenHands on GitHub, checked 4 Dec 2026
  5. Cline on GitHub, checked 4 Dec 2026
  6. goose on GitHub, checked 4 Dec 2026
  7. Aider on GitHub, checked 4 Dec 2026
  8. Kilo Code on GitHub, checked 4 Dec 2026
  9. Continue on GitHub, checked 4 Dec 2026
  10. Roo Code on GitHub (archived), checked 4 Dec 2026