OpenCode

Open source coding agent for your terminal, desktop and IDE

Intermediate
Screenshot of OpenCode, Open source coding agent for your terminal, desktop and IDE

What is OpenCode?

OpenCode is a developer tool. An open source AI coding agent for the terminal, desktop and IDE. It works with free built-in models or 75+ providers, supports Claude, ChatGPT and Copilot subscriptions, and never stores your code when you connect your own provider.

OpenCode is an open source coding agent that runs where developers already work: a terminal interface, a desktop application, and an IDE extension. It takes instructions in natural language and helps write, edit and run code against an existing project, loading the appropriate language servers automatically so the model has accurate context about types, symbols and errors rather than guessing from raw text. The project is unusually well established for an open source tool. The homepage cites over 215,000 GitHub stars, roughly 950 contributors, more than 20,000 commits, and about 16 million developers using it each month. The code is published under the MIT License, so teams can inspect it, modify it, and contribute patches, which matters for organizations that need to audit what an agent does with their repository. Model choice is the defining feature. OpenCode ships with a set of free models that work without an account, and it can connect to more than 75 LLM providers through Models.dev, including local models. Existing subscriptions are supported too: users can sign in with GitHub to draw on a Copilot plan or with OpenAI to use a ChatGPT Plus or Pro account, and popular providers such as Anthropic and xAI can be connected directly. For teams that want consistency, the optional Zen service offers a curated set of models benchmarked specifically for coding agents. In daily use it suits individual developers and engineering teams who want agent assistance without locking their workflow to one vendor or one editor. Multiple agents can run in parallel on the same project, sessions can be shared by link for review or debugging, and no code or context data is stored when connecting your own provider, which makes it viable in privacy sensitive environments. Anyone comparing it to closed coding assistants should weigh the setup effort and the terminal first heritage against the flexibility of bringing any model and keeping the source auditable.

How do you use OpenCode?

  1. 1Read the introduction docs
    Start with the intro documentation to understand what the agent does, how sessions work, and which interface (terminal, desktop or IDE) suits your setup.
    OpenCode — Read the introduction docs
  2. 2Install OpenCode
    Install from the download page or run the install script shown on the homepage with curl, npm, bun, brew, paru or yay depending on your platform.
    OpenCode — Install OpenCode
  3. 3Pick a model provider
    Use the free built-in models without an account, or connect a provider such as OpenAI, Anthropic or a local model through the providers documentation.
    OpenCode — Pick a model provider
  4. 4Run your first session
    Open your project, describe the task, and let the agent read files, apply edits and run commands. Start parallel sessions when you want to work on separate parts at once.
  5. 5Share or review a session
    Generate a share link for any session so a teammate can review the reasoning or help debug a problem.
  6. 6Consider Zen for consistent models
    If provider quality swings are a problem, look at Zen, which offers a handpicked set of models benchmarked for coding agents.
    OpenCode — Consider Zen for consistent models

Pros and cons

Pros

  • Runs in the terminal, as a desktop app and as an IDE extension, so it fits existing workflowsAI
  • Brings your own model: 75+ providers plus local models, with Copilot and ChatGPT subscriptions supportedAI
  • Fully open source under the MIT License, with a large contributor base and public issue trackingAI
  • Automatically loads the right LSPs so the agent reads accurate project contextAI
  • Privacy oriented: no code or context stored when you connect your own providerAI

Cons

  • Setup and model configuration take more effort than a hosted, single vendor assistantAI
  • Terminal first heritage means the desktop and web clients are newer and less provenAI
  • Free built-in models come with weaker guarantees than paid frontier modelsAI
  • Quality varies with the provider you connect, so results are not consistent out of the boxAI
  • Documentation is spread across several pages, which slows first time onboardingAI

How much does OpenCode cost?

Pricing

OpenCode is free to use and includes a set of free models, with no account required for those. Extra costs appear only when you connect another provider or use a paid Zen account.

Learn more

Support

No dedicated support page is described on the homepage. Help flows through the documentation and the public GitHub repository, where anyone can file issues and submit pull requests.

Learn more

Integrations

Connects to more than 75 LLM providers through Models.dev, including OpenAI, Anthropic and xAI, supports local models such as LM Studio, and accepts GitHub Copilot, Claude Pro/Max and ChatGPT Plus/Pro subscriptions.

Learn more

Features

A coding agent with LSP awareness, parallel multi-session work, shareable session links, and support for 75+ providers via Models.dev including local models. It logs in with GitHub Copilot or OpenAI ChatGPT Plus/Pro accounts and runs as a terminal interface, desktop app or IDE extension.

Learn more

Frequently asked questions about OpenCode

  • How much does OpenCode cost?
    OpenCode is free to use and includes a set of free models, with no account required for those. Extra costs appear only when you connect another provider or use a paid Zen account.
  • How do you use OpenCode?
    The walkthrough on this page covers 6 steps: 1. Read the introduction docs 2. Install OpenCode 3. Pick a model provider 4. Run your first session 5. Share or review a session 6. Consider Zen for consistent models.
  • What platforms does OpenCode support?
    OpenCode is available on Web App, MacOS, Windows and Linux.
  • What does OpenCode integrate with?
    Connects to more than 75 LLM providers through Models.dev, including OpenAI, Anthropic and xAI, supports local models such as LM Studio, and accepts GitHub Copilot, Claude Pro/Max and ChatGPT Plus/Pro subscriptions.
  • What are the limitations of OpenCode?
    Setup and model configuration take more effort than a hosted, single vendor assistant. Terminal first heritage means the desktop and web clients are newer and less proven. Free built-in models come with weaker guarantees than paid frontier models.

Status

StatusActive
Views0
Outbound clicks0
Added10/22/2026

Platforms

Web AppMacOSWindowsLinux

Pricing

FreeFreemium