OpenCode is an open-source coding agent that runs in your terminal, as a desktop app, or through an SDK. It connects to 200+ model providers through Models.dev, including local models, so you are not tied to one vendor.
You can run several agents in parallel on the same project, define custom agents with their own prompts, models and tools, and extend it with MCP servers, plugins, SKILL.md agent skills and slash commands. A permissions system lets you pick which actions need approval, and /undo rolls back a change.
Install it with the one-line script, npm, Bun or Homebrew. It is MIT licensed. Some free models work without an account, a paid OpenCode Go plan offers curated models from $10 a month, and you can also bring a ChatGPT Plus/Pro or GitHub Copilot subscription.