OpenCode in brief
OpenCode is an open source coding agent for terminal, desktop, and IDE workflows. The public site reports more than 215,000 GitHub stars, 950 contributors, 20,000 commits, and more than 16 million developers monthly, figures the company can change. The repository identifies the software as MIT licensed. Current documentation distinguishes OpenCode 1 and OpenCode 2, which share the same command name and cannot coexist under default installation paths. Version 2.1.2 is dated October 21, 2026. OpenCode is best understood as a client and agent layer rather than one hosted assistant. It can inspect repositories, explain code, edit files, run commands, and keep multiple sessions. The MIT license permits commercial modification and distribution subject to its conditions.
A typical workflow starts in a project directory with the opencode command. The documentation describes an /init command that creates an AGENTS.md file for project structure and coding conventions. OpenCode separates a build agent from a plan agent: the build agent can edit files and run commands, while the plan agent is read-only by default and asks before bash commands. Sessions can use LSP integration, provider selection, and a general subagent. Developers can connect OpenAI, Anthropic, Google, xAI, GitHub Copilot, ChatGPT Plus or Pro, local models, OpenCode Zen, or OpenCode Go. The terminal, desktop, and IDE clients support the same provider choice. This workflow is adaptable, although the account, model, quota, and data terms depend on the selected route.
OpenCode's main tradeoff is choice. Provider selection can reduce lock-in, but it also makes billing, privacy, and troubleshooting less predictable than a single-vendor product. The Go privacy table says most listed models do not use prompts for training, while Muse Spark models permit training and Gemini 4 Argon Contributor may use prompts and completions for future Google models. Compared with Claude Code, OpenCode offers local models and a broader provider route. Compared with Cursor, it is more terminal centered and MIT licensed. Compared with Aider, it adds desktop and IDE clients. Pick OpenCode for repository work when provider flexibility matters more than one unified account and bill.