Write and modify code in your terminal with AI assistance while keeping full control over which provider you use.
Explore an unfamiliar codebase safely using the read-only plan agent before making any changes.
Run complex multi-step coding tasks and searches by invoking the internal general subagent with an at-mention.
Requires Node.js runtime and API key configuration for an AI provider (OpenAI, Anthropic, etc.).
OpenCode is described in its README as an open-source AI coding agent. The basic problem it tackles is helping developers do real coding work alongside an AI assistant directly from the terminal, while keeping the whole tool open and not tied to any single AI provider. Instead of relying on a closed product, you install OpenCode locally and let it explore, plan, and modify your codebase with you. OpenCode includes two built-in agents you can switch between with the Tab key. The first is build, the default full-access agent intended for actual development work. The second is plan, a read-only agent that denies file edits by default and asks permission before running shell commands; the README recommends it for exploring unfamiliar codebases or thinking through changes. There is also an internal general subagent that can be invoked with an at-mention for complex searches and multistep tasks. The architecture is client and server, which the README says allows OpenCode to run on your computer while you drive it remotely from a mobile app, with the terminal interface being one of several possible clients. There is opt-in LSP support for richer code awareness. Installation is offered via a one-line install script, npm and other JavaScript package managers, brew, scoop, choco, pacman, AUR, mise, and Nix, plus a beta desktop app for macOS, Windows, and Linux. You would use OpenCode when you want an AI coding agent inside your terminal that you can point at any provider you choose, including Claude, OpenAI, Google, OpenCode Zen, or local models. The README's FAQ frames it as similar in capability to Claude Code but fully open source and provider-agnostic. It is written primarily in TypeScript. The full README is longer than what was provided.
Generated 2026-05-21 · Model: sonnet-4-6 · Verify against the repo before relying on details.