opencode is a free, open-source AI coding agent built for the terminal, with a companion desktop app and IDE extensions, maintained by Anomaly — the team also known for the SST serverless framework and terminal.shop. It lets developers read, write, and edit code, run shell commands, and navigate a codebase through a terminal UI (TUI) or GUI, while connecting to almost any LLM provider rather than locking users into one model.
Who builds it
- Developed in the open at github.com/sst/opencode under Anomaly, released in June 2025.
- Licensed under the MIT license, so the full source is free to inspect, fork, and self-host.
- The project reports 160,000+ GitHub stars, 900+ contributors, and 13,000+ commits.
Core features
- Dual agent modes: a full-access "build" agent for making changes and a read-only "plan" agent for analysis and codebase exploration, switchable with the Tab key.
- Broad model support: works with 75+ LLM providers via the Models.dev directory, including Claude, GPT, Gemini, and local models, plus a curated "OpenCode Zen" list of models tested by the opencode team.
- LSP integration: automatically loads Language Server Protocol tooling for the languages in a project.
- Concurrent multi-session support, undo/redo for changes, and shareable session links for collaboration.
- Available as a terminal TUI, a desktop app (macOS, Windows, Linux in beta), and IDE extensions.
- Simple installation via curl script, npm, Bun, pnpm, Yarn, Homebrew, Docker, and other package managers.
Pricing
- The core agent is free and open source; users bring their own API key for any supported provider, or use the free models bundled through OpenCode Zen.
- An Enterprise tier is available on a custom, per-seat basis for organizations that want central configuration, SSO integration, and routing every request through an internal AI gateway so code and data never leave their own infrastructure; Anomaly does not charge for tokens if a customer supplies its own LLM gateway.
- By default opencode does not store any of a user's code or context data; the optional
/sharefeature is the one exception, sending conversation data to opencode's servers unless disabled.
Who it's for
opencode suits developers who live in the terminal and want an agent that isn't tied to a single AI vendor — it works equally with Anthropic, OpenAI, Google, or self-hosted local models, and its MIT license makes it a natural fit for teams that want to audit, extend, or self-host the tool itself. The optional Enterprise tier extends that same open core to larger organizations that need SSO, centralized policy, and a guarantee that code stays inside their own infrastructure.