
Anomaly · Open-Source AI Coding Agent for Terminal, Desktop & IDE
OpenCode is a free, MIT-licensed AI coding agent from Anomaly (the team behind SST) that reads your codebase, edits files, and runs commands from a terminal UI, a desktop app, a browser, or ACP-compatible editors such as Zed. It suits developers who want to choose their own model: providers from the Models.dev catalog, local models, or an existing GitHub Copilot or ChatGPT Plus/Pro subscription. The tradeoff is that the software is free but model usage is not, it takes more setup than an AI editor like Cursor, and the current V2 release still lacks some V1 features.
Best for
Developers who want an open-source coding agent they can run in the terminal, a desktop window, or a browser, with any model provider and undo for agent changes
Not ideal for
Developers who want inline autocomplete and a polished editor with minimal configuration (Cursor fits better), who rely on V1-only features such as session sharing or LSP, or who want to use a Claude Pro/Max subscription
Who it's for
Developers who want a model-agnostic, terminal-first AI coding agent without IDE or vendor lock-in
OpenCode's core bet is that a coding agent should not be tied to one model vendor or one editor. V2 makes that concrete with one background server behind the terminal, desktop, browser, and ACP front ends, and with ordered permission rules. Note the V2 defaults: Build runs tools without asking unless you add ask or deny rules, while Plan cannot edit project files, so it is the safer place to review an approach first. Git-based snapshots let you undo a multi-file edit that misses the mark, but the V2 docs call them a convenience, not a backup, so keep using version control. The trade-off is setup and transition cost: you choose and pay for a model, there is no inline autocomplete, and V2 has not yet ported session sharing, LSP, or V1 plugins. If you value model choice and an open codebase over an out-of-the-box editor, OpenCode fits well. If you want the fastest path to AI-assisted coding with minimal setup, Cursor or Windsurf will serve you better.
Who should use it
Developers who work primarily in the terminal, want to choose their own LLM provider or reuse a Copilot or ChatGPT subscription, or need an open-source coding agent they can audit and run with local models.
Who should skip it
Developers who want IDE-native inline autocomplete and a polished out-of-the-box experience (Cursor or Windsurf fit better), or who mainly want to code with a Claude Pro/Max subscription (Claude Code supports that).
OpenCode
Free
OpenCode Zen
Pay-as-you-go
OpenCode Go
$10/month
Billed monthly
OpenCode Go Plus
$40/month
Billed monthly
Enterprise
Custom (per seat)
Note: Separate the software cost from the model cost. The OpenCode software is free (MIT). Model usage is billed by whichever source you connect: your provider's API rates, your existing GitHub Copilot or ChatGPT subscription, Anomaly's pay-as-you-go Zen gateway, or a Go plan ($10 or $40/month). Local models have no per-request cost. Enterprise is priced per seat. Go limits and model data-retention terms vary by model and may change; check opencode.ai/go for current allowances.
Modalities
Text, Code, Image (attachment for visual context)
Available models
Multi-file refactoring from the terminal
The Build agent edits across multiple files and runs shell commands in sequence, which suits refactors that span a module boundary or need coordinated changes a single-file prompt cannot handle.
Reviewing an approach before writing code
The Plan agent cannot edit normal project files, so you can let it explore the codebase and draft an approach, then switch to Build once you agree with it.
Privacy-sensitive coding workflows
With Ollama, LM Studio, or vLLM, model inference runs on your own hardware, which helps where sending code to cloud APIs is restricted.
Reusing an existing Copilot or ChatGPT subscription
OpenCode can sign in with GitHub Copilot or ChatGPT Plus/Pro, which avoids paying separately for another AI coding tool if you already subscribe.
OpenCode vs. Claude Code
Claude Code is Anthropic's terminal coding agent, built around Claude models and usable with a Claude subscription. OpenCode is also terminal-first but works with many providers and local models; it documents no Claude Pro/Max login, so Claude models in OpenCode need an API key. Choose Claude Code if you are standardizing on Claude; choose OpenCode for provider choice.
OpenCode vs. Cline
Both are open-source and bring-your-own-model. Cline lives mainly in an editor side panel (VS Code and forks, JetBrains) with per-step approvals by default; OpenCode is terminal-first, with desktop, browser, and ACP front ends, and its V2 Build agent runs tools without asking unless you add permission rules. Pick by where you want the agent to run and how much approval you want by default.
OpenCode vs. Cursor
Cursor is a full VS Code fork with deep editor-level integration: inline AI suggestions, multi-file agent edits, and background cloud agents. OpenCode is an agent that works alongside any editor but does not replace it. Cursor provides a more polished, lower-friction experience; OpenCode gives model flexibility and no editor lock-in.
OpenCode vs. GitHub Copilot
GitHub Copilot is primarily an inline autocomplete, chat, and agent tool tightly integrated with GitHub. OpenCode can use a Copilot subscription as its model source, so the two are not mutually exclusive: Copilot handles in-editor suggestions, OpenCode handles terminal-driven multi-step tasks.
OpenCode vs. Aider
Both are terminal-based and model-agnostic, but Aider focuses on git-diff workflows and git-native operations. OpenCode adds desktop and browser front ends, ACP editor support, a multi-agent system, a client SDK, and MCP support. Choose Aider for a minimal git-focused workflow; choose OpenCode for a broader integration surface.
Is OpenCode free to use?
The software is free and open source under the MIT license. Model usage is a separate cost: you pay your LLM provider, reuse a GitHub Copilot or ChatGPT Plus/Pro subscription, buy pay-as-you-go access through OpenCode Zen, or subscribe to OpenCode Go ($10/month) or Go Plus ($40/month). Local models via Ollama, LM Studio, or vLLM have no per-request cost.
Should I use OpenCode Desktop or the terminal version?
Both are front ends to the same OpenCode agent, models, and configuration; the V2 docs describe the desktop app and the terminal UI as using the same client. Use the desktop app if you prefer a separate window to a terminal session. Use the terminal UI if you work over SSH or want to script tasks and CI jobs with opencode run. For access from a browser or another device, opencode pair prints one-time links to the web UI served by your local OpenCode server. V1 notes: the V1 docs recommend WSL on Windows, and the V1 desktop app on Windows needs the Microsoft Edge WebView2 Runtime.
How do I install OpenCode?
For V2, the current default: run curl -fsSL https://opencode.ai/v2/install | bash, or install @opencode/cli from npm, anomalyco/tap/opencode-v2 with Homebrew, or opencode-beta from the AUR; Docker images use versioned tags. V2 does not support Windows package managers, so Windows users download the standalone binary. The desktop app is a download for macOS (Apple Silicon and Intel), Windows, and Linux (.deb, .rpm). V1, which is still maintained, installs with the original opencode.ai/install script, opencode-ai on npm, Scoop, or Chocolatey. After installing, connect a provider with an API key or a supported sign-in.
What changed in OpenCode V2?
V2 introduces a new plugin API, new server and client APIs (the SDK is now @opencode/client), and one global cli.json in place of tui.json. It runs a shared background server for your user account, adds opencode pair for browser access, and auto-discovers local Ollama, LM Studio, and vLLM models. Not yet ported: session sharing, language-server (LSP) support, V1 plugins, and the CLAUDE.md fallback (V2 reads AGENTS.md only). The Plan agent now blocks edits to normal project files, and Build allows tools by default. V1 (1.x) is still maintained.
Can I use my Claude Pro or Max subscription with OpenCode?
OpenCode does not document a Claude Pro/Max login. Its V1 provider docs say Anthropic explicitly prohibits using Claude Pro/Max models in OpenCode and that the plugins enabling it stopped being bundled as of version 1.3.0; the V2 docs and homepage list only GitHub Copilot and ChatGPT Plus/Pro subscription sign-ins. Use an Anthropic API key or a gateway for Claude models.
Can OpenCode replace Cursor?
They solve related but different problems. Cursor is an AI-native editor with inline suggestions and deep editor integration. OpenCode is a coding agent that runs in a terminal, a desktop window, a browser, or an ACP-compatible editor, alongside the editor you already use. If you want a polished AI-first editor, use Cursor. If you want an open-source agent that works with many model providers, OpenCode fits better.
What is the difference between the Build and Plan agents?
In V2, Build is the default coding agent: tools are allowed by default, and it asks only before reading .env files or accessing paths outside the workspace. Plan explores and plans without editing normal project files (it may write OpenCode plan files), and its shell commands follow your permission rules. To require approval for edits or commands, add ask rules to your permissions. In V1, Plan instead asks before every file edit and shell command.
Can OpenCode run without sending code to the cloud?
Yes, if you use a local model through Ollama, LM Studio, or vLLM: inference then runs on your own hardware. OpenCode says it does not store your code or context data. V2 has no session sharing yet; in V1, share links upload the conversation and are public to anyone with the link, so keep sharing in manual or disabled mode for sensitive work.
Anthropic
Developers and teams who want deep codebase reasoning, multi-file changes, and persistent project instructions in a terminal-friendly or IDE-native workflow
Paid
Cline
Developers and teams who want an open-source, model-agnostic AI coding agent inside their existing IDE, with step-by-step approval and per-task cost visibility
FreemiumAnysphere
VS Code developers who want multi-file AI editing, autonomous cloud agents, and model flexibility — not a plugin layered on top of an existing editor
FreemiumCognition
Developers who want an AI agent that can autonomously plan and execute larger coding tasks
FreemiumGitHub (Microsoft)
Developers on GitHub who want AI completion, chat, and agents embedded in their existing IDE and GitHub workflow
Freemium
OpenAI
Developers and teams already paying for ChatGPT Plus, Pro, Business, or Enterprise who want one coding agent across the terminal, IDE, and parallel cloud tasks
Freemium
Charm
Terminal-first developers who want one agent across many model providers and local models, with language-server context, MCP, and skills, on macOS, Linux, Windows, Android, or the BSDs
Free
Freebuff, Inc.
Adult students, hobbyists, and cost-conscious developers who want a capable terminal or desktop coding agent with models included for free, and who accept in-app ads and ad personalization based on their work
FreemiumOpenCode V2 (2.0.x, first tagged in September 2026) is the default download on opencode.ai; V1 (1.x) is still maintained, and the V2 docs list three breaking changes: a new plugin API, new server and client APIs, and a single global cli.json in place of tui.json. In V2 a shared background server for your user account powers the terminal UI (TUI) and a web UI you can open from another device with one-time opencode pair links; a desktop app is available for macOS, Windows, and Linux; and opencode acp runs it as an Agent Client Protocol agent inside editors such as Zed. The VS Code, Cursor, Windsurf, and VSCodium extension that installs itself from the integrated terminal is documented for V1 only. Models come from the Models.dev provider catalog with an API key, from local Ollama, LM Studio, or vLLM servers that V2 discovers automatically (other OpenAI-compatible runtimes need a custom provider), from a GitHub Copilot device sign-in, or from OpenAI's Codex device-code sign-in, which the V2 docs label legacy and the homepage presents as ChatGPT Plus/Pro login. OpenCode documents no Claude Pro/Max login: its V1 provider docs say Anthropic prohibits it and the plugins stopped being bundled as of 1.3.0, so plan on an Anthropic API key for Claude models. Two primary agents ship by default. Build allows tools by default and asks only before reading .env files or accessing paths outside the workspace; Plan cannot edit normal project files (it may write OpenCode plan files), and its shell commands follow your permission rules. Permissions are ordered allow, ask, and deny rules where the last match wins, so you can require approval for edits or commands. General and Explore subagents handle delegated research and read-only searches. In a Git repository, snapshots power /undo and /redo of agent changes. V2 also runs headless with opencode run for scripts and CI, exposes a client SDK (@opencode/client), supports local and remote MCP servers, and reads AGENTS.md (not CLAUDE.md). Not yet in V2: session sharing, language-server (LSP) support, V1 plugins, and CLAUDE.md fallback. Anomaly sells optional model access on top: OpenCode Zen (pay-as-you-go at provider prices) and OpenCode Go ($10/month) or Go Plus ($40/month) for open coding models.
Are you the founder? Claim this listing →