OpenCode is an open-source AI coding agent hosted in the anomalyco/opencode repository on GitHub, officially positioned as "The open source AI coding agent."
Purpose and forms: OpenCode targets scenarios in development work such as writing code, analyzing codebases, and planning tasks. In addition to the command-line form, it also offers a desktop application (BETA), downloadable from opencode.ai/download.
Key capabilities: It includes two built-in agents that can be switched with the Tab key. build is the default agent with full permissions, used for development work; plan is a read-only agent for analysis and code exploration that denies file edits by default and requests permission before running bash commands, making it suitable for exploring unfamiliar codebases or planning changes. It also includes a general subagent for complex searches and multi-step tasks, intended for internal use and also invocable in messages via @general.
Usage: The installation script installs OpenCode to $HOME/.opencode/bin; older versions prior to 0.1.x must be removed before installation. More configuration methods can be found in the official documentation.
Use cases: code modifications in daily development (build), codebase reading and change planning (plan), and complex retrieval and multi-step tasks (general subagent).
Limitations and notes: The desktop application is currently in BETA. If a project name contains "opencode" (such as opencode-dashboard or opencode-mobile), the README must state that it is not built by the OpenCode team and is not affiliated with it. The contribution documentation should be read before contributing code. Community channels are Discord and X.com. Information on specifically supported models, platforms, fees, and pricing is not currently provided.