
OpenCode
Open-source AI coding agent with a terminal UI, desktop and web apps, bring-your-own models, agents, plugins, and MCP support.
OpenCode is an open-source AI coding agent that works on your repository the way a developer would: it reads files, runs commands, edits code and keeps the session going across turns. The same engine ships as a terminal interface, a desktop application currently in beta for macOS, Windows and Linux (AppImage, deb, rpm), and a web interface started with opencode pair, which hands out a one-time link that expires in five minutes. You can install it with the curl script, npm, bun, pnpm, yarn, Homebrew, pacman, mise or Nix, or run the published Docker images. A shared background server means several local clients can attach to the same work.
Model choice is open rather than bundled: run /connect to add a provider, then /models to pick one from the models.dev catalog, set a default in opencode.jsonc, or override it per run with --model. Providers that are not in the catalog can be added as OpenAI-compatible endpoints with a base URL and an environment variable for the key. The built-in build agent has full tool access while the plan agent is read-only and asks before running shell commands, and you can define custom agents, subagents, skills, commands and plugins in markdown or JSONC. Permission rules resolve to allow, ask or deny with wildcards on actions such as shell, edit, read and subagent, saved approvals are project-scoped, and organisation policies can hard-deny a call. MCP servers are supported with OAuth for remote ones, and snapshots plus compaction keep long sessions recoverable.
It positions itself against Claude Code, Codex and the closed IDE agents: MIT-licensed, indifferent to which model vendor you use, and usable from a terminal, a native window or a browser without changing workflow. The trade-off is that the desktop app is still beta, Windows package managers are not supported (use the standalone binary), and model access is yours to arrange through provider keys or the optional OpenCode Go subscription. Teams that want central billing and policy can attach the Console workspace with SSO, SCIM and budgets, but it is not required to use the agent.











