The best open-source AI coding tools in 2026 are the ones that are both well licensed and still being maintained. We checked twelve on GitHub on 19 November 2026. Eleven use the MIT or Apache-2.0 licence, ten had a push in the last two days, one is archived and one has been quiet since May.
Open source is attractive for a good reason: you can read exactly what an agent does with your files, run it without a vendor account, and change it when it does something you dislike. It is also easy to overrate. A permissive licence says nothing about whether the project is healthy, whether it is safe to run unattended, or what the model it calls will cost.
This guide lists the tools, shows the licence and last activity for each, and covers the layers around them: running models on your own hardware, and checking what an agent produced. Two entries come from the group behind this journal, Leemer Group, and we mark them as ours.
For a terminal agent, the most-starred open-source choices are OpenCode (MIT), Codex CLI (Apache-2.0) and Gemini CLI (Apache-2.0). For an editor extension, Cline (Apache-2.0) and Continue (Apache-2.0) are the established names. To keep code on your own hardware, add a local model through Ollama, llama.cpp or vLLM. Before you let any of it merge code, add a scanner and a reviewer that are not the agent itself.
Avoid starting a new project on Roo Code, which is archived, or Aider, which has had no push since 22 May 2026, unless you are prepared to maintain a fork.
Every licence, star count, archive flag and last-push date comes from the GitHub API or the repository page, read on 19 November 2026. Descriptions are the projects' own words, so we have not claimed capabilities that a repository does not state.
Three limits to keep in mind:
- Stars measure attention. They are public and comparable, but a project with fewer stars can fit your codebase better than a famous one.
- A push is not a release. The last-push date is the most recent push to any branch, so it shows life, not stability.
- We did not benchmark. We did not run these tools on a shared task, so we make no claim about which writes better code.
The table and charts below put all twelve side by side. The sections after them add context for each group.
12
coding tools checked
Agents and editors, on GitHub.
11
use MIT or Apache-2.0
Zed ships GPL and Apache licence files.
10
pushed in the last two days
As of 19 November 2026.
2
to avoid for new work
One archived, one quiet since May.
| Criterion | Licence and starsOn GitHub | Last pushActivity | ShapeHow you use it |
|---|---|---|---|
| OpenCode | MIT, 228k | 19 Nov 2026 | Terminal agent |
| Codex CLI | Apache-2.0, 136k | 19 Nov 2026 | Terminal agent from OpenAI |
| Pi | MIT, 123k | 18 Nov 2026 | Agent toolkit and coding CLI |
| Gemini CLI | Apache-2.0, 109k | 19 Nov 2026 | Terminal agent from Google |
| Zed | GPL and Apache files, 95k | 19 Nov 2026 | Code editor |
| OpenHands | MIT, 94k | 19 Nov 2026 | Agent platform |
| Cline | Apache-2.0, 72k | 19 Nov 2026 | Extension, CLI and SDK |
| Goose | Apache-2.0, 57k | 19 Nov 2026 | Extensible agent |
| Aider | Apache-2.0, 50k | 22 May 2026 | Terminal pair programmer |
| Continue | Apache-2.0, 37k | 18 Nov 2026 | Open-source coding agent |
| Kilo Code | MIT, 28k | 19 Nov 2026 | Agentic engineering platform |
| Roo Code | Apache-2.0, 24k | Archived | Editor agent, read-only |
Source: GitHub API and repository pages, 19 November 2026. Stars are rounded. Last push is the most recent push to any branch.
| tool | GitHub stars (thousands) |
|---|---|
| OpenCode | 228k |
| Codex CLI | 136k |
| Pi | 123k |
| Gemini CLI | 109k |
| OpenHands | 94k |
| Cline | 72k |
| Goose | 57k |
| Aider | 50k |
| Continue | 37k |
| Kilo Code | 28k |
Source: GitHub, 19 November 2026. Attention, not quality.
OpenCode is the most-starred tool in the set, about 228 thousand stars under the MIT licence, and its repository describes it as the open source coding agent.
OpenAI Codex CLI is a lightweight coding agent that runs in your terminal, released under Apache-2.0 with about 136 thousand stars. It is OpenAI's own open-source client; the hosted Codex service in the cloud is a separate commercial product.
Gemini CLI is Google's open-source agent for bringing Gemini into your terminal, Apache-2.0 with about 109 thousand stars.
Pi is described as an AI agent toolkit with a unified LLM API, an agent loop, a terminal interface and a coding-agent CLI. It is MIT-licensed with about 123 thousand stars. It matters here because it is an embeddable toolkit rather than only an end-user tool, and because Founder2 uses it, as covered below.
Terminal agents share a strength and a risk. The strength is that they run where your code is and need no editor. The risk is that they can run shell commands, so the permissions you give them matter more than the logo on the tool.
Cline is an autonomous coding agent offered as an IDE extension, a command-line assistant and an SDK. It is Apache-2.0 with about 72 thousand stars, and its README says it is not locked to a single AI provider.
Continue describes itself as an open-source coding agent. Apache-2.0, about 37 thousand stars, with a push on 18 November.
Kilo Code calls itself an all-in-one agentic engineering platform and an open-source coding agent. MIT, about 28 thousand stars.
OpenHands is a platform for AI-driven software development. MIT, about 94 thousand stars. Platforms like this aim at larger jobs than a single edit, so they are worth testing on a contained repository first.
Goose is an open-source, extensible AI agent that goes beyond code suggestions, with the ability to install, execute, edit and test with any LLM, in the project's own description. Apache-2.0, about 57 thousand stars. Its repository lives under the aaif-goose organisation on GitHub.
Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter. GitHub does not show a single licence for it because the repository carries both GPL and Apache licence files, so read the licence for the specific component you use. We list it because developers often want an open-source editor to pair with an agent, but its repository description is about the editor, so check Zed's documentation for its AI features.
Two well-known projects deserve a separate warning.
Roo Code is archived on GitHub, so it is read-only: no new issues, no merged fixes. Its licence is Apache-2.0, so you can fork it, but you would be the maintainer.
Aider describes itself as AI pair programming in your terminal. It is Apache-2.0 with about 50 thousand stars, but its last push was 22 May 2026, six months before we checked. That does not mean it is broken. It means a bug you hit may not be fixed, and the tool may fall behind new models.
You can still use either. Just choose it knowingly, pin a version, and have a plan for when it stops working.
An agent is only half of the stack. The other half is the model, and open source gives you three well-known ways to run one yourself.
Ollama is the simplest: pull a model and run it. It is MIT-licensed with about 188 thousand stars. llama.cpp is LLM inference in C and C++, MIT, about 136 thousand stars, and is the lower-level engine many local tools build on. vLLM is a high-throughput, memory-efficient inference and serving engine, Apache-2.0, about 97 thousand stars, aimed at serving models to many users rather than one laptop.
Running a model locally keeps your code on your own hardware, which matters if you work under European data rules or hold confidential source. It trades away capability and speed: a model that fits on your machine is smaller than the frontier models behind the commercial tools, and long agent loops can be slow. Many teams mix, using a local model for sensitive code and a hosted one for the hardest problems.
| tool | GitHub stars (thousands) |
|---|---|
| Ollama | 188k |
| llama.cpp | 136k |
| vLLM | 97k |
Source: GitHub, 19 November 2026.
An agent can write a plausible change that passes its own checks. Open-source checkers give you a second opinion that costs nothing in licence fees.
Semgrep is lightweight static analysis for many languages. Gitleaks finds secrets, which matters because agents sometimes paste a key into a file. Trivy looks for vulnerabilities, misconfigurations, secrets and software bills of materials. reviewdog is an automated code review tool that works with any analysis tool, and PR-Agent is an open-source pull request reviewer. Its repository says it is not the Qodo free tier.
None of these replaces tests or human review, but they are cheap, deterministic where they can be, and independent of the agent. For a fuller look at the layers of checking, including independent AI reviewers, see AI code review tools: how to check what your coding agent wrote.
| Criterion | Licence and starsOn GitHub | What it checksIn its own words |
|---|---|---|
| Semgrep | LGPL-2.1, 18k | Lightweight static analysis for many languages |
| Gitleaks | MIT, 31k | Finds secrets in code |
| Trivy | Apache-2.0, 40k | Vulnerabilities, misconfigurations, secrets and SBOM |
| reviewdog | MIT, 10k | Automated code review that works with any analysis tool |
| PR-Agent | MIT, 16k | Open-source pull request reviewer |
Source: GitHub, 19 November 2026. Descriptions are the projects' own.
Leemer Group, an independent AI company in Waterford, Ireland, publishes this journal, so read this section as disclosure as much as description.
- Critique.sh. The Critique repository on GitHub (repath500/critique) is MIT-licensed and holds the CLI and coding-harness packages alongside the web app. It is a new, small repository with no stars yet, so do your own diligence. The CLI is on npm as @critiquedotsh/cli at version 0.1.1 and the site calls it early access. Critique is also a hosted service, and the hosted parts are not the same as the repository.
- Born2-9B. Leemer Labs' nine-billion-parameter code-review model is in API preview, served from Europe. Open weights are announced but not published. Until they are, it is accessible through the API only.
We are saying "not yet" on purpose. A claim of openness that the files do not back up is worse than no claim.
Founder2 is an AI co-founder for SaaS founders. It is not open source, and it is not a coding agent you install. It is relevant to this list for two reasons.
First, it is built on open source underneath. Its sandbox notes say the co-founder runs on Pi, the MIT-licensed toolkit above, inside a machine that belongs to the workspace. Founder2 supplies the plan, the connected data from Stripe, GitHub, Sentry, PostHog and Slack, the task board and the approval step, and Pi supplies the agent loop.
Second, it exposes an MCP endpoint with scoped tokens, plus a REST API and an A2A agent card, so an MCP-capable agent can read and update a founder's plan with permission. See the documentation for the supported flows before you rely on a specific client.
Where it stops: coding jobs on Plus and Pro are newer than the tools above, and our own notes say end-to-end validation against the hosted machine provider is still outstanding. It has five connected sources, not fifty. If you want an editor or terminal agent, use one of the tools in this guide and bring the result back to the plan.
A short checklist you can run in ten minutes.
- Licence. Read the licence file, not only the badge. MIT and Apache-2.0 are permissive. Anything with GPL or AGPL parts needs a closer look if you plan to embed the tool in your own product.
- Last push and archive flag. Anything archived or silent for months is a fork waiting to happen.
- Who maintains it. A company, a foundation or one person each change what happens when the project's attention moves.
- Model freedom. Can you point it at a hosted provider, an API gateway or a local model, and can you change that later?
- Permissions. Does it ask before running a shell command, editing outside the repository or reaching the network? Can you deny by default?
- Telemetry and data flow. Where does your code go when you use it? Read the privacy notes, then test with a throwaway repository.
- Approvals at the edge. The safest place for a human decision is where something leaves your machine: a push, a pull request, an email. Check that the tool leaves that decision to you.
It does not guarantee that the model is free. It does not guarantee that the agent is safe: an open-source agent with shell access can still delete the wrong directory. It does not guarantee support, a security response, or that the maintainers will still be there next year. And it does not guarantee quality of output, which depends on the model and on your prompts as much as on the tool.
What it does give you is the ability to verify and to leave. That is valuable, and it is a reason to pick open source, but it is not a substitute for a review step.
Open source. Software published under a licence that lets you read, run and change it. The licence name tells you what else is allowed.
Permissive licence. A licence such as MIT or Apache-2.0 that allows use in commercial work with few conditions.
Archived repository. A GitHub repository its owners have made read-only. It still works, but it no longer receives fixes.
Inference. Running a trained model to produce output, as opposed to training it.
Local model. A model you run on your own hardware.
Static analysis. Examining code without running it, to find bugs and risky patterns.
SBOM. A software bill of materials, a list of the components inside a piece of software.
MCP. The Model Context Protocol, a standard way for an agent to call tools and read data from another system.
What is the best open-source AI coding agent?
There is no single best. By GitHub attention, OpenCode leads, followed by Codex CLI and Pi, with Gemini CLI close behind. Cline and Continue are the established editor options. Pick by licence, activity, model freedom and the permissions it asks for, and test on a contained repository.
Is OpenCode open source?
Yes. OpenCode is MIT-licensed on GitHub, and its repository had a push on 19 November 2026.
Is Codex CLI open source?
Yes. OpenAI's Codex CLI is Apache-2.0 on GitHub. The hosted Codex service in the cloud is a separate commercial product.
Is Gemini CLI open source?
Yes. Google's Gemini CLI is Apache-2.0 on GitHub.
Is Aider still maintained?
Its last push was 22 May 2026, about six months before we checked on 19 November 2026. That is a signal to be careful, not proof the tool is abandoned. Check the repository before you adopt it.
Is Roo Code still available?
The code is available, but the repository is archived and read-only, so it no longer receives fixes. Its licence is Apache-2.0, so a fork is possible.
What is the difference between Ollama, llama.cpp and vLLM?
All three run models you host yourself. Ollama is the simplest to start with. llama.cpp is a lower-level C and C++ inference engine that many local tools build on. vLLM is a high-throughput serving engine for running a model for many users.
Can I use open-source AI coding tools with no cloud at all?
In principle, yes: pair an open-source agent with a local model through a runner like Ollama, and nothing needs to leave your machine. The limits are model size and speed. Check each agent's documentation for how it connects to a local model.
Is Founder2 open source?
No. Founder2 is commercial. Its co-founder runs on Pi, which is MIT-licensed, and Founder2 publishes an MCP endpoint, REST API and A2A card, but the product itself is not open source.
Are Critique.sh and Born2 open source?
The Critique repository on GitHub is MIT-licensed. Born2-9B is in API preview, and Leemer Labs says open weights will follow, but they have not been published as of 19 November 2026.
Sources
Checked 19 November 2026.
- OpenCode on GitHub
- OpenAI Codex CLI on GitHub
- Gemini CLI on GitHub
- Pi coding agent on GitHub
- OpenHands on GitHub
- Cline on GitHub
- Goose on GitHub
- Aider on GitHub
- Continue on GitHub
- Kilo Code on GitHub
- Roo Code on GitHub (archived)
- Zed on GitHub
- Ollama on GitHub
- llama.cpp on GitHub
- vLLM on GitHub
- Semgrep on GitHub
- Gitleaks on GitHub
- Trivy on GitHub
- reviewdog on GitHub
- PR-Agent on GitHub
- Critique repository on GitHub
- Leemer Labs: Born2-9B announcement
- The 10 best AI dev tools in 2026, by the job they do
- AI code review tools: how to check what your coding agent wrote