What is OpenCode?
OpenCode is an open source AI coding agent for developers working with source code, published by Anomaly. It helps you write and run code with any AI model and is available as a terminal-based interface, desktop app or IDE extension. Its default build agent has full access for development work, while its plan agent is read-only and supports analysis and code exploration. The plan agent denies file edits by default and asks permission before running shell commands. It also includes a general subagent for complex searches and multistep tasks.
The tool can be installed locally through an installation script (curl -fsSL https://opencode.ai/v2/install | bash) or package managers. A beta desktop application is available for macOS, Windows and Linux. OpenCode 1 and OpenCode 2 both use the opencode command and cannot be installed side by side under their default command, so check which version a package manager installs before you roll it out.
The site says you can use free models included with OpenCode or connect any model from any provider, including Claude, GPT and Gemini. It lists 75+ LLM providers through Models.dev, including local models, and supports multiple agents in parallel on the same project. OpenCode is described as 100% free to use, with additional costs if you connect another provider. The project says it does not store any of your code or context data. The project is distributed under the MIT license, with the source public on GitHub.
Key capabilities
- Development agent Provides a default full-access agent for development work.
- Planning agent Supports code exploration and analysis, denying file edits by default and requesting permission before shell commands.
- Agent switching Lets users switch between the built-in build and plan agents with the Tab key.
- General subagent Handles complex searches and multistep tasks and can be invoked explicitly in messages.
- Local interfaces Offers command-line installation and a beta desktop application for macOS, Windows and Linux.
Where OpenCode fits
OpenCode fits developer workflows that involve exploring unfamiliar codebases, planning changes and performing development tasks. The plan agent provides an exploration mode with more restrictive defaults, while the build agent is intended for work requiring full access.
Before deployment, teams should review agent permissions and confirm model configuration, data handling and any associated service costs. The supplied repository page does not establish these details, and the desktop application is identified as beta.
Install
curl -fsSL https://opencode.ai/v2/install | bashReviews of OpenCode
Be the first to share your experience with OpenCode.
Write a review
Loading review form…
