OpenCode is an open-source AI coding agent licensed under MIT, with publicly available code that can be privately deployed and audited. Official materials state it has 220,000+ GitHub stars and 1,000+ contributors. It is positioned as a model-agnostic coding assistant that avoids vendor lock-in, suitable for people who want to code across desktop, terminal, and mobile while retaining model choice.
Key capabilities
- Understand and edit codebases, run tests and shell commands.
- Extend workflows through custom Agents, skills (SKILL.md), plugins, MCP servers, and slash commands.
- Built for parallel work: multiple sessions can run in the same project.
- Includes two built-in Agents, build and plan, switchable with Tab. plan restricts file edits by default and requests permission before running Bash; build is oriented toward actual execution.
- @general can be used for complex searches.
How to use OpenCode offers four client entry points:
- Desktop: download the macOS / Windows / Linux version from the official website.
- Terminal: curl -fsSL https://opencode.ai/v2/install | bash or npm install -g @opencode/cli.
- Mobile: iOS via TestFlight, Android on Google Play; start and approve sessions from your phone.
- SDK: call OpenCode from your own scripts and CI; see the official documentation for details.
Connect a model in the client, or use the built-in free models directly (no account required). Open a test project and run /models to select a model to get started. For new projects, it is recommended to start with plan, have it explain the directory, entry points, and test commands, then switch to build to make small changes. During acceptance, review the diff, test output, and unfinished items.
Models and costs
- The client and built-in free models are free and require no account.
- Bring your own models/subscriptions: connect to 200+ providers and local models via Models.dev, or log in to an existing ChatGPT Plus/Pro or GitHub Copilot subscription. Chat subscriptions do not necessarily cover all API calls; confirm the billing party before switching models.
- Optional OpenCode Go subscription: Go $10/month, Go Plus $40/month (higher quota), Go Teams $20/person/month (minimum 2 people). Includes 31 curated models tested for coding scenarios (both open-source and closed-source), with quotas resetting on 5-hour/weekly/monthly windows. Go models are also available via API https://opencode.ai/inference/go For invocation by coding agents such as Claude Code, Codex, Hermes, and Pi.
- Free models: no account and no payment required, but almost all are labeled "limited-time free," and the list changes. Currently includes DeepSeek V4.1 Flash Free, MiMo-V2.6-Flash Free, Nemotron 3.5 Lightning Free, Nemotron 3.5 Super VL Free, Flint 40B Free, Jev 1.13 Free, Hy4 flash Free, Beam Free, plus hidden models Big Pickle, Iceman Free, and Inkling 2 Small Free. LongCat 2.5 Free is limited to 100 requests per day. Free chat models can only be used in OpenCode.
- After paid credits are used up, it automatically falls back to free models; free models can be hidden with OPENCODE_DISABLE_FREE_MODELS=1.
Go subscription notes Go is a subscription/resale layer; it does not deploy models itself, but partners with third-party inference providers to purchase compute in bulk and package it into fixed monthly plans. The official claim is that its advantage comes from bulk discounts + reserved provider compute, with per-token pricing the same as direct connection. $100 is the usage ceiling calculated at public list prices, not withdrawable money; the official website does not give specific discount figures, and 10× is a back-calculated ratio, not a promised refund multiple. Quota may be adjusted based on actual usage, and unused quota does not roll over. Some Contributor-tier models exchange extremely low prices for using prompts to train subsequent models, and data retention periods vary from 0–55 days by model.
Use cases
- Coding and code review across desktop, terminal, and mobile.
- Driving coding agents via SDK in scripts and CI.
- Teams or individuals who need to retain model choice and avoid locking into a single vendor.
- Those who want predictable-budget coding model usage with a fixed monthly fee.
Limitations and cautions
- The plan's read-only constraint is not equivalent to an OS sandbox; after switching to build or connecting external tools, writable directories and command permissions should be rechecked.
- The local client may still send project snippets to the selected model provider; open source does not mean everything is processed locally.
- Regional and data notes: Beam Free is unavailable in China (including Hong Kong and Macau) and many countries; Inkling 2 Small Free is unavailable in the EU and several countries, and its provider may use your data for training; Iceman Free uses prompts for training; LongCat 2.5 Free is hosted in China, and the Global region must be enabled in privacy settings. DeepSeek V4.1 Flash Free, Hy4 flash Free, and LongCat 2.5 Free are labeled zero retention.
- Whether a model can reliably call tools and handle long sessions affects the actual experience.
- Prices were checked on 2026-11-19 and may change later.