OpenCode is an open source coding agent that runs in the terminal. It reads your project code, plans changes, edits files and runs commands, working as an autonomous pair programmer inside the repository, in the style of tools like Claude Code but fully open source.
A central differentiator is provider neutrality: it works with many models (Anthropic, OpenAI, Google and local models, among others), letting you use your own API keys or existing subscriptions. The project emphasizes privacy, with user code flowing only between the local machine and the chosen model provider, plus a polished terminal interface, LSP support and shareable sessions.
It suits developers who want an auditable, configurable code agent. The tool itself is free and open source; the real cost comes from the chosen model provider, and there are also paid plans with models included.