OpenCode
An AI coding agent for the terminal that edits your code and runs commands with any model from dozens of providers, including local ones, plus a beta desktop app for macOS, Windows and Linux.
- macOS
- Windows
- Linux
- Desktop
- Alternative to Claude Code · editor's match
- Why it's listed
- MIT-licensed, installable through npm, Homebrew, Scoop, Chocolatey, pacman, mise and Nix.
- Consider before using
- It does not describe itself as a Claude Code alternative; it is listed with them because it does the same job — an agent in your terminal that reads, edits and runs your code.
It ships a build agent that edits and runs commands and a read-only plan agent.
From the project's README: The open source coding agent.
OpenCode gives you Claude Code's way of working — an agent in the terminal that reads the repository, edits files and runs commands — without tying you to one model vendor. It is MIT-licensed and other tools build on it: OpenWork is built on OpenCode, and the Kilo Code CLI is a fork of it. Verified against the repository on 29 September 2026, at release v1.18.33.
What it does
OpenCode runs as a terminal UI in your project. Two built-in agents switch with the Tab key:
- build — the default, full-access agent for development work.
- plan — read-only; it denies file edits by default and asks before running shell commands, for exploring an unfamiliar codebase or planning a change.
A general subagent handles multi-step searches and can be called with @general. According to opencode.ai, it connects to models from dozens of providers through Models.dev, including local models, and you can sign in with a GitHub Copilot or ChatGPT Plus/Pro account instead of an API key. Sessions can be shared as links.
A desktop app (beta) wraps the same agent for macOS, Windows and Linux.
Who it is for, and who it is not for
A good fit
- Developers who like working with a terminal agent and want to pick the model per task.
- Teams that want to read and modify the agent they run.
Look elsewhere
- You want the agent inside VS Code or JetBrains with diffs in the editor — see Cline or Kilo Code.
- You want to run several agents in parallel worktrees from one window — see Emdash.
How it compares
| OpenCode | Qwen Code | Goose | |
|---|---|---|---|
| Focus | Coding agent | Coding agent | General-purpose agent |
| Interfaces | Terminal, desktop (beta) | Terminal, desktop, web, IDE, chat apps | Desktop, CLI, API |
| Licence | MIT | Apache-2.0 | Apache-2.0 |
The full comparison is in open-source Claude Code alternatives. More MIT tools are under MIT apps.
Verified sources
- Repository and README — https://github.com/anomalyco/opencode (29 Sep 2026)
- Releases — https://github.com/anomalyco/opencode/releases
- Project site — https://opencode.ai
Why it's listed
- Works with many model providers, including local models, and ships builds for all three desktop platforms.
Consider before using
- The desktop app is marked beta.
- Zen, Go and Enterprise are paid offerings from the same team; the agent itself does not need them.
Explore similar apps
Other alternatives to Claude Code
Compare all Claude Code alternatives →More Developer Tools apps
- Cline
An AI coding agent for VS Code, the terminal and desktop that asks before every edit and command.
- Kilo Code
An AI coding agent and autocomplete for VS Code, JetBrains and the terminal, with any model.
- Zed
A fast AI code editor for macOS, Windows and Linux with agents, edit prediction and live collaboration.
- Tura
A coding agent for desktop and terminal built to finish tasks in fewer tokens and model turns.
- Mercury CLI
Terminal coding agent that runs parallel sessions and delegates to crewmates in isolated git worktrees, on 20+ model providers or local models.
- OpenHands
Self-hosted control center for AI coding agents, with tasks triggered on a schedule or from Slack and GitHub.