Skip to content

OpenCode

OpenCode is an open source coding agent made by Anomaly. It runs in the terminal, in IDEs and as a desktop app, and works with more than 75 model providers. It is free to use; OpenCode Zen is an optional pay-as-you-go service for curated models.

By AnomalyOpen sourceAI Coding Tools

Facts checked on against the sources listed at the end of this page.

Pricing
Open sourceFree plan: Yes: the agent is free and open source. Model usage is billed by your provider, or through Zen credits.
Open source
YesMIT

A good fit for

  • Developers who prefer a terminal-first agent but want a desktop or IDE option
  • People who want to reuse an existing GitHub Copilot or ChatGPT subscription
  • Teams that want to switch freely between many model providers
  • Projects where language server feedback helps the agent

Not a good fit for

  • Teams that need a vendor-backed support contract: it is an open source project
  • Predictable spend on Zen: costs depend on the models and requests used
  • Anyone who wants a single fixed model: the value is in choosing among providers

OpenCode pricing

OpenCode itself is free. OpenCode Zen is pay as you go: you are charged per request from credits, and the docs say credit card fees of 4.4% plus $0.30 per transaction are passed along at cost with nothing added.

PlanPriceWhat you get
OpenCodeFreeThe open source agent. Bring your own provider keys.
ZenPay as you goCurated models billed per request from credits. Auto-reload adds $20 when the balance falls below $5 by default, and monthly spending caps can be set. Some models are free, mostly for limited periods.

Prices in USD, checked on 6 October 2026. Current prices on opencode.ai.

Main features

Terminal, desktop and IDE
The same agent is available as a terminal interface, a desktop app and an IDE extension.
75+ providers
Connect to Claude, GPT, Gemini and many other providers with your own API keys.
Plan mode
Review an implementation plan before the agent edits files.
Undo and redo
Revert or reapply changes the agent made.
LSP integration
Uses language servers to give the agent code intelligence.
Multiple sessions
Run several agent sessions in parallel on one project.
Session sharing
Share a conversation with a link.

About OpenCode

OpenCode is an agent that helps you write code in your terminal, IDE or desktop app. It analyzes a project, makes edits, and has a plan mode for reviewing a strategy before changes are made, plus undo and redo for modifications.

It connects to more than 75 LLM providers, and can also use an existing GitHub Copilot or ChatGPT Plus or Pro subscription. It integrates with language servers (LSP) and can run several sessions in parallel.

OpenCode Zen is the project's own service for models it has tested for coding agents. It charges per request from prepaid credits, with credit card fees passed on at cost.

Made by
Anomaly
Free plan
Yes: the agent is free and open source. Model usage is billed by your provider, or through Zen credits.
Available on
Terminal, Desktop, IDE, Web

OpenCode alternatives

All 15 alternatives to OpenCode, side by side

Getting started

  1. Install from npm, or with the install script from opencode.ai.

    npm install -g opencode-ai
  2. Run opencode in your project folder and connect a provider.

Questions about OpenCode

Is OpenCode free?

Yes. The agent is free and open source. You pay your model provider, or buy credits for OpenCode Zen.

Who makes OpenCode?

Anomaly. The code is on GitHub at anomalyco/opencode.

What is OpenCode Zen?

A service with models the OpenCode team has tested for coding agents. It bills per request from prepaid credits, and some models are free for limited periods.

Which model providers does OpenCode support?

More than 75, including Claude, GPT and Gemini, and it can use GitHub Copilot and ChatGPT Plus or Pro subscriptions.

How do I install OpenCode?

Use npm install -g opencode-ai, or the install script from opencode.ai. Homebrew, Docker, Chocolatey, Scoop and Arch Linux packages are also listed in the docs.

Sources and links

Work on OpenCode? Claim this listing. Something wrong or out of date? Suggest a correction. Stats come from the public GitHub and npm APIs and update every day.

OpenCode: pricing, features and alternatives (2026) | ScratchDB