Coding agents · AI agent
OpenCode: review, pricing, security and alternatives
OpenCode is an open-source AI agent published by Anomaly, in the coding agents family. An open source coding agent that reads and edits project files and runs commands to perform software development tasks. Its repository has 221,008 stars and its last commit is from October 24, 2026.
What OpenCode does
OpenCode belongs to the coding agents family: they read a repository, edit files, run the tests and fix things until everything passes, in a terminal or an editor. On our grid it ranks #1 of the 74 projects of this family listed in the directory.
You use it from: terminal (CLI), code editor (IDE), and desktop app. Usable models: Claude (Anthropic), GPT (OpenAI), Gemini (Google), local models (Ollama, llama.cpp, vLLM…), OpenRouter, and any OpenAI-compatible model. It can run on your own machine or server.
Who is OpenCode for?
It is aimed at developers and technical teams who want to hand off part of the work on their codebase while keeping the final review. Typical tasks people give it:
- fix a bug from an issue or an error message
- write or extend tests
- migrate code to a new library version
- explain an unfamiliar codebase
It is a good candidate if you are comfortable in a terminal, you want the AI right inside your code editor, your data must stay on your machines, and you want the option of a local model, with no API fees.
Access and human control
According to its documentation, OpenCode can:
- run commands in a terminal
- read and edit files
- call online services and APIs
We could not establish whether it asks for human approval before sensitive actions: test it first on an unimportant account or folder.
OpenCode pricing
The code is free, under the MIT licence.
Getting started with OpenCode
- Install it: the project ships as a Node.js package (install with
npm, or run directly withnpx). The exact command is in the repository README. - Pick the model: an API key from a provider, or a local model if your machine has enough graphics memory (the VRAM calculator tells you).
- Give it a first playground with nothing at stake: a test folder, a secondary account or a throwaway project. Only open your real accounts once you have seen how it behaves.
- Give it a short, checkable task, review the result and its action log, then raise the difficulty step by step.
Security: risk level
A coding agent runs commands on your machine: work on a Git branch, review the changes and isolate it in a container for long tasks.
Points found for OpenCode:
- Sensitive access: it can run commands in a terminal, with no established default human approval.
- Outside content: it reads web pages or API responses, which may contain booby-trapped instructions (prompt injection).
Three habits: least privilege (minimal rights, dedicated keys), human approval for irreversible actions, a sandbox for code execution. The AI agent security check reviews your setup in a few minutes.
Project activity and releases
Created on April 30, 2025, the anomalyco/opencode repository has 221,008 stars, 29,547 forks and 2,506 open issues, with 20,853 commits in total. It received changes this month.
Over the last 52 weeks: 14,702 commits, an average of 282.7 per week.
882 releases in total; 30 in the last twelve months. Latest release: v1.19.4, on October 22, 2026.
OpenCode vs other coding agents
GitHub stars of the best-rated open-source projects in the coding agents family. Stars measure attention, not quality: a heavily promoted project collects them fast, a specialised tool will have few.
OpenCode and other coding agents at a glance
The 7 best-ranked agents in the same family, 7 of them open source. The score out of 100 only applies to open-source projects; for proprietary services we show the published entry price. A dash marks information the documentation does not state.
| Agent | Model | Score | Stars or entry price | Self-hostable | Human approval |
|---|---|---|---|---|---|
| OpenCode | open source | 95 | 221K ★ | yes | – |
| Cline | open source | 94 | 70.8K ★ | yes | yes |
| OpenHands | open source | 91 | 91.7K ★ | yes | – |
| Codex | open source | 89 | 130.8K ★ | yes | yes |
| Open Interpreter | open source | 89 | 68.7K ★ | yes | – |
| Qwen Code | open source | 89 | 28.7K ★ | yes | yes |
| Kilo Code | open source | 89 | 27.7K ★ | yes | yes |
| Gemini CLI | open source | 88 | 107.8K ★ | yes | yes |
How we rated it
Score: 95/100, computed only from public, verifiable data, with no subjective testing or partnership:
- Adoption 40/40: 221,008 stars on a log scale (40 points from about 200,000).
- Activity 30/30: last commit less than a month ago, 30 releases in six months, 14,702 commits in a year.
- Framework 25/30: licence, default human approval, self-hosting, model choice and documentation site.
The score does not say whether the agent will succeed at your tasks: it measures how solid the project is. The full grid is on the method page.
Verdict
OpenCode is one of the most solid projects in its family: followed, active and well framed.
Strengths
- Widely followed: 221K stars
- Very active development
- Frequent releases (30 in a year)
- Can run on your side: data under control
- Free choice of model
Limitations
- Broad access without default approval
- 2,506 open issues
Avoid if…
- You cannot isolate it (container, virtual machine)
Alternatives
Learn more
Frequently asked questions
Is OpenCode free?
The software is free (MIT licence). You still pay for the model calls, unless you use a local model.
Is OpenCode safe?
Our risk level: high. Points found: sensitive access and outside content. Give it minimum rights and approve irreversible actions.
Which models does OpenCode use?
According to its documentation: Claude (Anthropic), GPT (OpenAI), Gemini (Google), local models (Ollama, llama.cpp, vLLM…), OpenRouter, and any OpenAI-compatible model.
Can OpenCode be installed on your own server?
Yes, from the anomalyco/opencode repository. Data then stays with you, but security and updates are your job.
What are the alternatives to OpenCode?
In the same family: Cline, OpenHands, Codex, and Open Interpreter.
OpenCode or Cline: what is the difference?
Both belong to the coding agents family. OpenCode has 221K stars against 70.8K for Cline. The right choice mostly depends on the access you are willing to give it.
Related articles
- Open source or proprietary AI agent: how to decideOctober 25, 2026
- AI agent vs. chatbot: what's the difference?October 24, 2026
- Autonomous AI agents: how much should you let them do?October 12, 2026
- AI agent memory: how agents remember (and forget)October 11, 2026
Neutrality. No affiliate links. No vendor pays to be reviewed, rated or ranked. Reviews are directed by François Chollet, neutral and factual, and every data point is dated and sourced. How we score