OpenCode
FreeAn open-source coding agent for the terminal, wired to 75-plus model providers
An AI coding agent that lives in your terminal, reading a codebase, editing files, running commands and tests, then iterating on the errors. Besides the terminal UI there are desktop builds for macOS, Windows and Linux plus IDE extensions. You choose the model from 75-plus providers, local ones included.
Why we picked it
MIT-licensed, 205,800 stars, 950 contributors, built by the SST team and the people behind terminal.shop.
Cline lives inside VS Code; OpenCode lives in the terminal. That difference decides who it suits: people working in tmux, Neovim and over ssh, who would rather not switch back to a GUI editor just to get AI help. The interface is a TUI, with desktop clients and IDE extensions on top — three front doors onto the same agent.
Model support is more thorough than most: 75-plus providers covering Claude, GPT and Gemini, plus local models through Ollama. Installation is offered via npm, Homebrew, Scoop, Chocolatey, Pacman and Nix, so Windows does not require a WSL detour.
To be clear about:
- Models are billed per token. OpenCode takes nothing, but a complex task consumes a real amount, paid to the model provider. Local models are free and noticeably weaker on large refactoring work.
- It ships a set of "free included models" that require signing in. That is OpenCode Zen, their own benchmarked model routing. You can skip it entirely by supplying your own API key, and that bring-your-own-key path is what we list here, which is why it keeps the no-sign-up badge.
- It does not store your code or context — that is stated by the project. Whether the model provider you connect to stores anything is a separate question that depends on who you pick.