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
GitHub stars
221,993
npm downloads a week
3.4Mup 15% on the week before
Latest release
v1.19.44 days ago
Releases in 90 days
10about 3 a month

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

Usage and activity

Weekly npm downloads of opencode-ai, last 12 months.

01M2M3M4MSepNovJanMarMayJulOct24 September 2025: 34,741 downloads a week1 October 2025: 46,436 downloads a week8 October 2025: 52,427 downloads a week15 October 2025: 46,611 downloads a week22 October 2025: 51,599 downloads a week29 October 2025: 56,290 downloads a week5 November 2025: 75,859 downloads a week12 November 2025: 65,272 downloads a week19 November 2025: 61,750 downloads a week26 November 2025: 88,273 downloads a week3 December 2025: 70,291 downloads a week10 December 2025: 94,088 downloads a week17 December 2025: 102,859 downloads a week24 December 2025: 103,865 downloads a week31 December 2025: 92,591 downloads a week7 January 2026: 122,606 downloads a week14 January 2026: 266,286 downloads a week21 January 2026: 330,721 downloads a week28 January 2026: 345,495 downloads a week4 February 2026: 370,937 downloads a week11 February 2026: 340,078 downloads a week18 February 2026: 397,776 downloads a week25 February 2026: 388,583 downloads a week4 March 2026: 505,327 downloads a week11 March 2026: 609,213 downloads a week18 March 2026: 454,829 downloads a week25 March 2026: 565,164 downloads a week1 April 2026: 726,152 downloads a week8 April 2026: 590,314 downloads a week15 April 2026: 1,017,508 downloads a week22 April 2026: 1,534,763 downloads a week29 April 2026: 1,533,602 downloads a week6 May 2026: 1,093,623 downloads a week13 May 2026: 1,067,587 downloads a week20 May 2026: 1,807,978 downloads a week27 May 2026: 1,143,528 downloads a week3 June 2026: 1,724,281 downloads a week10 June 2026: 1,835,305 downloads a week17 June 2026: 2,586,236 downloads a week24 June 2026: 2,902,842 downloads a week1 July 2026: 1,522,002 downloads a week8 July 2026: 1,934,132 downloads a week22 July 2026: 1,929,420 downloads a week29 July 2026: 2,338,922 downloads a week5 August 2026: 2,303,254 downloads a week12 August 2026: 2,516,359 downloads a week26 August 2026: 3,155,506 downloads a week2 September 2026: 2,215,315 downloads a week28 September 2026: 2,916,861 downloads a week5 October 2026: 3,364,150 downloads a week

Recent releases

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