
Overview
OpenCode is a software engineering agent built to operate without vendor lock-in to a single AI provider. Created by Anomaly Innovations, the team behind SST, it decouples the agent execution layer from model inference. Developers can switch between frontier commercial models, open-weight options, and local instances within the same codebase while keeping session history and commands under their own control.
Its workflow centers on an explicit two-phase design that separates a read-only planning mode from a build mode that writes changes to disk. This boundary prevents premature edits in complex repositories and lets engineers review a strategy before any shell command executes. OpenCode also reads standard Markdown context files such as AGENTS.md directly from the repository, avoiding proprietary configuration formats and making team conventions easy to version.
Unlike assistants confined to a browser chat window or a single IDE, OpenCode runs on a client-server architecture. The core process operates locally or in the background, supporting remote session pairing, asynchronous background subagents, and Model Context Protocol (MCP) integrations. This setup suits developers who prefer terminal-first workflows while still needing diff views and cross-device monitoring.
Features and functionality
- Model-agnostic provider support: Connects to more than seventy-five LLM providers through
Models.dev, including OpenAI, Anthropic, Google Gemini, xAI, existing compatible subscriptions, and local models via Ollama. - Plan and Build modes: Separates read-only architecture analysis and strategy drafting from active file editing and command execution, with single-keystroke switching between modes.
- Terminal, desktop, web, and mobile clients: Provides a native text user interface (TUI) for the shell, desktop and web apps with diff views, and mobile companion apps for remote session oversight.
- Background subagents and Code Mode: Runs parallel tasks asynchronously while you continue working, paired with a scriptable mode that chains multiple tool calls.
- Repository context via AGENTS.md: Reads coding standards, linting conventions, and test commands from standard Markdown files stored alongside the codebase.
- MCP and plugin extensibility: Adds Model Context Protocol servers directly from the command line and loads internal plugins with hot-reloading support.
Use cases
- Controlled refactoring in legacy repositories: Engineering teams use Plan mode to map dependencies and review proposed changes before switching to Build mode for multi-file edits.
- Multi-model development with cost control: Developers pair local or lightweight models for routine tasks with frontier models for complex debugging inside the same workflow.
- Remote oversight of long-running sessions: Engineers launch agent tasks on their workstation and monitor progress or send follow-up prompts from mobile devices via remote pairing.
- Terminal-native debugging and testing: Shell-focused developers connect OpenCode to Git and external tools via MCP to diagnose failures and validate test suites automatically.
How to use
- Install the client: Install OpenCode through your operating system package manager or download the desktop application and IDE extensions from the official website.
- Connect model providers: Configure personal API keys, link supported existing subscriptions, or create an account in the official console to use the OpenCode Zen or OpenCode Go gateways.
- Prepare the repository: Open your project folder in the terminal or desktop client, make sure
AGENTS.mdcaptures key project conventions, and begin the session in Plan mode. - Execute and review: Approve the outlined plan, switch to Build mode to apply code changes, inspect the generated diffs, and commit the verified updates to Git.
Required experience level
Working effectively with OpenCode requires comfort with the command line, Git version control, API key management, and technical code review. Developers already accustomed to local dev environments, code editors, and MCP servers adapt quickly to the Plan and Build cycle, while non-technical users will run into friction during provider setup and change verification. Because of these practical prerequisites, the tool is best suited for advanced users.
Integrations
OpenCode runs as a native terminal interface (TUI) and desktop application on Windows, macOS, and Linux, alongside a web interface, official iOS and Android apps, and extensions for IDEs including VS Code, Cursor, Zed, and Windsurf. Technical integrations include Model Context Protocol (MCP) servers, headless server operation, remote session pairing, and connections to over seventy-five LLM providers and local runtimes such as Ollama.
Plans and access
The OpenCode client and core framework are free and open source under the MIT license, allowing full local use at no software cost under a Bring-Your-Own-Key (BYOK) model or with local models. For managed model access, Anomaly Innovations offers OpenCode Zen on a pay-as-you-go token basis through a curated gateway, as well as recurring OpenCode Go, Go Plus, and Go Teams subscriptions with periodic usage allowances and shared workspace controls, plus an Enterprise tier available via commercial contact with SSO and budget governance. Regarding privacy, prompts and code context are routed to the selected upstream model provider and follow that provider's retention and training policies. Hosted agent sessions expire after thirty days of inactivity, and users seeking stricter control can adjust privacy settings or operate exclusively through personal keys and local models.
Alternatives to OpenCode
Open-source coding agent for IDEs, desktop, and terminal featuring Plan and Act modes, multi-model support, and MCP integration.
Intelligent editor that understands your entire code and helps you program, refactor, and debug using natural language.
AI assistant that accelerates programming with intelligent code suggestions right in the editor.
Mistral AI agent for conversations, research, content creation, task automation, and coding on the web, mobile devices, terminal, and code editor.




