Ad space · Your tool here
PluginStack
Coding Agents · by Anomaly

OpenCode

OpenCode official site ↗

Last checked against the official docs:

What it does

An open-source AI coding agent with a terminal UI, a desktop app for macOS, Windows and Linux, and a web interface. It works with many LLM providers, and OpenCode also sells its own model access (OpenCode Console and the OpenCode Go plan). It ships a build agent that makes changes and a plan agent that plans without editing your project files. The current version is OpenCode 2. The code is on GitHub at anomalyco/opencode. MIT licensed.

Using OpenCode in the terminal

  • Run opencode inside a project folder to open the terminal UI, or opencode <folder> to work somewhere else.
  • Use /connect to sign in to a provider or add its API key, and /models to choose a model. opencode auth login does the same from your shell.
  • Press Shift+Tab (or run /agents) to switch between the build agent, which makes changes, and the plan agent, which plans without editing your project files.
  • Add an AGENTS.md file for project instructions. In folders without one, OpenCode reads CLAUDE.md instead.
  • Run opencode run "your prompt" to use it from scripts and CI without the full-screen UI.

Where the OpenCode docs are

  • opencode.ai/docs: install, config, providers, agents, MCP servers, permissions, troubleshooting and more (OpenCode 2).
  • opencode.ai/docs/migrate-v1: moving from OpenCode 1 to OpenCode 2.
  • github.com/anomalyco/opencode: source, releases and issues.

Who it's for

Terminal users who want an open-source agent and the freedom to pick their own model provider.

How to set it up

  1. Install OpenCode 2 on macOS or Linux with one of:

    bash
    curl -fsSL https://opencode.ai/v2/install | bash
    # or
    brew install anomalyco/tap/opencode-v2
    # or
    npm install -g @opencode/cli
  2. On Windows, the docs say Windows package managers aren't supported: download the standalone Windows CLI or the desktop app from opencode.ai/docs. Moving from OpenCode 1? Both use the opencode command and don't install side by side, and V1 plugins don't run in V2. See opencode.ai/docs/migrate-v1.

  3. cd into your project and start OpenCode, then run /connect to add a provider and /models to pick a model. Press Shift+Tab to switch between the build and plan agents.

    bash
    cd your-project
    opencode

Check the official OpenCode docs for the latest steps.

Set it up / Fixes

Step-by-step guides for getting OpenCode running and fixing common errors.

Frequently asked questions

What is OpenCode?

An open-source AI coding agent you run in your terminal, a desktop app or a web interface. You connect a model provider you already use, or OpenCode's own Console or Go plan.

How do I install OpenCode?

On macOS or Linux, run curl -fsSL https://opencode.ai/v2/install | bash, brew install anomalyco/tap/opencode-v2 or npm install -g @opencode/cli. On Windows, download the standalone CLI or the desktop app from opencode.ai/docs.

Where are the OpenCode docs?

At opencode.ai/docs, which covers OpenCode 2. The source is at github.com/anomalyco/opencode.

Does OpenCode read AGENTS.md?

Yes. It loads your global ~/.config/opencode/AGENTS.md and each AGENTS.md from your current folder up to the project root, and falls back to CLAUDE.md where there is no AGENTS.md.

What is the difference between the build and plan agents?

Build is the default agent that makes changes. Plan explores and plans without editing normal project files, and shell commands still go through permissions. Press Shift+Tab to switch.

Can OpenCode 1 and 2 be installed together?

Not by default. Both use the opencode command. Remove a package-managed V1 install before installing V2; the V2 curl installer replaces the V1 program.

Example prompts

prompt
Switch to the plan agent and explain how authentication works in this repo.
prompt
Add pagination to the /api/posts endpoint and update the tests.
prompt
Add the Context7 MCP server to this project and check that it connects.

Made OpenCode? Add the badge

If you like, show that OpenCode is listed and hand-checked here. It's optional: listings are free and we never ask for a link back.

Hand-checked on PluginStack
Get the Markdown or HTML

Markdown (for a GitHub README)

markdown
[![Hand-checked on PluginStack](https://www.pluginstackai.com/badge/hand-checked.svg)](https://www.pluginstackai.com/plugins/opencode/)

HTML (for a website)

html
<a href="https://www.pluginstackai.com/plugins/opencode/"><img src="https://www.pluginstackai.com/badge/hand-checked.svg" alt="Hand-checked on PluginStack" width="226" height="28"></a>

About the badge

Free: MCP Starter Checklist

After you set this tool up, use the one-page checklist so your next MCP server doesn't fail on first connect.

Markdown download + occasional PluginStack updates. No spam. Privacy policy.

See all Coding Agents on PluginStack