OpenCode in Mira: the open-source coding agent, next to your other agents
OpenCode is an open-source coding agent with free models and 200+ providers. How to install it, its build and plan agents, and running it in Mira.


The short answer
OpenCode is an open-source coding agent released under the MIT license. It comes with free models that need no account, connects to more than 200 providers including local models, and runs in a terminal, its own desktop app, a phone app and an SDK. Mira is a separate desktop app that runs the OpenCode already on your computer, with the accounts and models you set up in it, next to Claude Code, Codex and other agents.
- Next to Claude Code and Codex
- OpenCode in one pane, other agents in the next
- Your setup, untouched
- Mira doesn't change OpenCode's config or move your keys
- Your sessions, both ways
- Sessions from OpenCode show up in Mira, and go back with
opencode -s - With your team
- Several people in one OpenCode session
Install OpenCode
- Install script
curl -fsSL https://opencode.ai/v2/install | bash- npm
npm i -g @opencode/cli@latest(bun, pnpm and yarn work too)- Other package managers
- Homebrew on macOS and Linux, pacman or the AUR on Arch, mise, or Nix
- Desktop app (beta)
- From opencode.ai/download for macOS (Apple silicon and Intel), Windows, and Linux as .deb, .rpm or AppImage
Run opencode in your project. The free models work without signing in; to use your own accounts, run opencode auth login or add providers in opencode.json. OpenCode can also sign in with ChatGPT Plus or Pro, or GitHub Copilot.
Build and plan
- build is the default agent, with full access for development work.
- plan is read-only, for analysis and exploring code.
- Press Tab to switch between them. A general subagent handles complex searches and multistep tasks.
- Define your own agents, add MCP servers, and extend OpenCode with plugins.
Running OpenCode in Mira
- Get started recognizes an OpenCode set up with your own account and asks whether to make it your default agent.
- The model menu lists the models OpenCode can use, with your default and recent ones first. build, plan and your own agents can be switched per session.
- OpenCode's own models run on your accounts and don't use Mira credit. Set a session's Quota source to Platform to pick a Mira model on Mira credit instead.
- Sessions you started in OpenCode show up in Mira's sidebar. To go back to the terminal, choose Copy resume command and run
opencode -s <session ID>.
Chapter 16 · Models, accounts and quota › Keep using the OpenCode you have →
Questions
- Is OpenCode free?
- Yes, it's open source and comes with free models that need no account. You can also bring your own providers or subscribe to OpenCode's own plan.
- What are OpenCode Go and OpenCode Zen?
- Both are OpenCode's own model offerings. Go is a subscription to a curated set of open-weight coding models at a fixed monthly price, for individuals and teams; Zen gives access to many models through one OpenCode account. In Mira, OpenCode runs on whatever accounts and providers you set up in OpenCode itself.
- Does OpenCode have a desktop app?
- Yes, a beta for macOS, Windows and Linux at opencode.ai/download. Use Mira when you want OpenCode in the same window as Claude Code and Codex, or shared with your team.
- Will Mira change my OpenCode setup?
- No. Mira doesn't change OpenCode's config files or move your keys; it uses the accounts and providers you already set up.
- Is Mira an official OpenCode app?
- No. Mira is a separate desktop app that runs OpenCode alongside other coding agents.
Article · OpenCode Go: plans, models, limits, and using it in Claude Code or Codex → OpenCode Go: the plans, models and limits, and using it in Claude Code or Codex.
Article · Claude Code alternatives: ten coding agents, and why you might not have to choose → OpenCode and the other agents you can run next to Claude Code.
Sources
The details about OpenCode were checked on November 8, 2026 against its README at github.com/anomalyco/opencode and opencode.ai. OpenCode changes quickly, so check those pages for the latest.
Keep reading

Fixing OpenAI and Codex 403 “unsupported_country_region_territory”
Why OpenAI and Codex return 403 unsupported_country_region_territory, how to fix false positives on VPNs or cloud IPs, and compliant alternatives.

Running Claude Code and Codex on Amazon Bedrock, Vertex AI, and Microsoft Foundry
Connect Claude Code and Codex to Amazon Bedrock, Vertex AI, and Microsoft Foundry: env vars, config.toml, auth, model pinning, and limits.

Using Claude Code with Chrome and Codex Browser: live debugging, Playwright, and previews
How to connect Claude Code to Chrome (extension, console logs, login limits) and use Codex Browser or Playwright, plus live dev-server previews in Mira.