Open source AI coding agents in 2026: every license checked
Updated Fact-checked
Four widely used open source AI coding agents are Codex CLI and Cline (Apache-2.0), and OpenCode and the Kilo Code agent (MIT). Each can read a repository, edit files and run commands. The November 7 Terminal-Bench 4.0 snapshot reported 58.2% for the best Codex CLI entry. The other three had no submitted rows in that snapshot. You can run a local model, use a hosted free allowance where offered, or pay a provider. The repository license and model access are separate choices. Terminal-Bench 4.0.
Open source AI coding agents compared#
| Agent | License | Interface | Models | Status |
|---|---|---|---|---|
| Codex CLI | Apache-2.0 | Terminal | OpenAI with a ChatGPT plan or key; local via Ollama or LM Studio; providers that speak the Responses API | Active, by OpenAI |
| OpenCode | MIT | Terminal, desktop, IDE, web and mobile | 75+ providers; ChatGPT and Copilot sign-in; Ollama, LM Studio, llama.cpp | Active |
| Cline | Apache-2.0 | VS Code, JetBrains, CLI, desktop app and Cline Cloud | Cline billing or ClinePass, provider keys, local models. The extension also offers ChatGPT sign-in | Active |
| Kilo Code | MIT (agent repository) | VS Code, JetBrains, CLI, desktop app | Kilo Gateway, your keys, Ollama or LM Studio. Desktop 1.0 also imports GGUF files | Active, owned by Anaconda since July 2026 |
| goose | Apache-2.0 | Desktop app, CLI, API | 15+ providers; ChatGPT Plus/Pro via direct sign-in. External agents can also supply access through ACP | Active, at the Linux Foundation |
| Qwen Code | Apache-2.0 | Terminal, IDE plugins, desktop, web | OpenAI, Anthropic, Gemini and Qwen APIs; Ollama, vLLM | Active, by the Qwen team |
| Gemini CLI | Apache-2.0 | Terminal | Gemini, for Code Assist Standard/Enterprise and paid API keys | Maintained for enterprise use |
| Pi | MIT | Terminal, SDK, RPC | Many providers via API keys or OAuth | Active |
| Hermes Agent | MIT | Terminal UI, chat apps, desktop | Any model: Nous Portal, OpenRouter, OpenAI, your own endpoint | Active, general-purpose |
| OpenHands | MIT | Self-hosted web app (Agent Canvas) | Any LLM; also runs other agents over ACP | Active |
| Aider | Apache-2.0 | Terminal, experimental browser UI | Most cloud and local models | Last release February 2026 |
| DeepSeek Harness | MIT | Local web UI | DeepSeek, other providers, OpenAI-compatible endpoints | Developer preview |
| Contenox Harness | Apache-2.0 | Desktop app | ChatGPT, API keys or local models. Optional unofficial sign-ins for Copilot and the external Claude Code agent | Active |
Which one should I pick?#
- An agent close to Claude Code, in the terminal: Codex CLI with a ChatGPT plan; OpenCode to pick the model.
- An agent inside your editor: Cline or Kilo Code. Both run in VS Code and JetBrains with your own keys.
- Local models only: OpenCode or Kilo Code, both of which treat Ollama and LM Studio as normal providers. See run local LLMs for coding.
- A desktop app instead of a terminal: goose, the OpenCode desktop app or Contenox Harness.
- Something you shape yourself: Pi. It ships small on purpose and skips plan mode, sub-agents and permission prompts; you add what you need.
- An open-source AI editor: Zed, licensed mainly under GPL-3.0-or-later. Void, the other well-known one, is deprecated.
Where the model runs: an open-source agent can sit on a laptop for small models and simple tasks, a workstation for serious local work, a rented GPU box for heavier loads, a shared node for a team, and a frontier model in the cloud when the task needs one. The rough map of the open-source stack: Ollama to start running a model, Kilo Code or OpenCode as the agent, vLLM once a team shares one server. The agent is the same on every tier; only the endpoint changes, which is the practical payoff of an agent that takes any provider.
What open source does and doesn’t get you#
It gets you:
- Code you can audit. You can see what the agent sends, where, and which commands it is allowed to run.
- No lock-in to the tool. If the company changes direction, the code stays. When Roo Code was archived in May 2026, its code stayed available for anyone to fork.
- Model choice, usually. Most open-source agents take any provider. Codex CLI is the exception that proves the point: it is open source but built around OpenAI, and custom providers must speak OpenAI’s Responses API.
It doesn’t get you:
- A free model. The agent costs nothing; the tokens don’t. Agent work sends a lot of them: one month of a solo developer’s use on the DeepSeek API was 23,815 requests and 7.86 billion tokens, about 330,000 tokens per request. See AI coding costs.
- Privacy by default. Your code still goes to whichever model provider you use. Only a local model keeps it on your machine.
- No telemetry by default. Open source means you can check, not that nothing is sent. Codex sends usage metrics unless you set
analytics.enabled = falsein its config. Aider collects analytics only if you opt in. Continue removed its anonymous telemetry in its final release. Read each tool’s settings. - Safety. Pi has no permission prompts by design, and DeepSeek Harness asks you to read its safety notice before running it. Open code doesn’t mean careful defaults.
The source-available trap: some tools publish their code under licenses that aren’t open source. Crush uses the Functional Source License, which only turns into MIT two years after each release. Claude Code’s repository is public, but its license reserves all rights. Copilot CLI’s license lets you run and redistribute it only unmodified. “On GitHub” and “open source” are not the same thing.
Is Claude Code open source?#
No. The Claude Code repository is public, but the code is used under Anthropic’s commercial terms. The closest open-source agents are Codex CLI and OpenCode. See Claude Code alternative.
Is IBM Bob open source?#
No. IBM Bob is a commercial product, priced per instance, with an IDE, a terminal tool and an on-premises option. It routes between Claude, Mistral and IBM’s own Granite models; Granite is open (Apache-2.0), Bob is not. See IBM Bob.
Is GitHub Copilot open source?#
The Copilot Chat extension code in VS Code is MIT licensed. GitHub’s hosted service and Copilot CLI are proprietary. The CLI and other supported clients can send requests to a provider or local model you configure yourself. User-configured models work without a Copilot subscription. GitHub’s BYOK guide.
Contenox Harness#
Contenox Harness is an Apache-2.0 desktop app for Windows x64, Apple silicon Macs and Linux x64. Open a project folder and choose a ChatGPT connection, API key or local model for the built-in agent. The built-in Local AI installer is available on Windows x64, and you can connect Ollama on any supported desktop OS. For a Claude subscription, enable unofficial sign-ins and start the external Claude Code agent. Contenox Harness downloads · Claude setup.
Related guides#
Open source AI agents: beyond coding: goose, Hermes, Agent Zero, OpenHands and the frameworksOpen source AI agents: the best in 2026, every license checkedThe open source AI agents worth running in 2026: goose, OpenCode, Hermes Agent, Agent Zero, OpenHands and more, with license, interface and maintainer checked.
Best AI coding agents: the ranking, open source or notBest AI coding agents 2026: ranking and comparisonThe best AI coding agents in November 2026, ranked by stated criteria: benchmark results, model choice, Windows support and cost model, with a pick for each need.
What is an AI coding harness?: what the agent adds on top of the modelWhat is an AI coding harness? Harness vs agent vs modelWhat is an AI coding harness? The program around the model: loop, tools, context, permissions. How it differs from the model, and why it changes the results.
AI coding harness comparison: features side by sideAI coding harness comparison: 16 agents, every cell checkedAI coding harness comparison for November 2026: license, models, subscription sign-in, local models, Windows, permissions and sandbox for 16 coding agents.
Terminal coding agents: install Claude Code, Codex CLI and OpenCodeTerminal coding agents: what they are and which one to useTerminal coding agents explained: how Codex CLI, OpenCode and Claude Code's terminal mode work in a shell, why developers pick them over IDE agents, and when not to.
Codex alternative: including what “open-source alternative” means for an open-source toolCodex alternative: open-source and other options in 2026Looking for a Codex alternative? The real reasons people leave Codex, what to fix first, open-source and other options by need, and who should stay with Codex.
vs CursorCursor alternative: what to use instead, and when to stayLooking for a Cursor alternative? The usual reasons people leave, which settings help first, the main options by need, and who is better off staying with Cursor.