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
227,068+12,685 in the last 30 days
npm downloads a week
3.9Mup 14% on the week before
Latest release
v2.3.03 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.

02M4M6MOctDecFebAprJunAugNov18 October 2025: 50,333 downloads a week25 October 2025: 52,101 downloads a week1 November 2025: 68,825 downloads a week8 November 2025: 70,455 downloads a week15 November 2025: 56,137 downloads a week22 November 2025: 78,473 downloads a week29 November 2025: 75,125 downloads a week6 December 2025: 81,231 downloads a week13 December 2025: 101,000 downloads a week20 December 2025: 106,484 downloads a week27 December 2025: 86,781 downloads a week3 January 2026: 94,193 downloads a week10 January 2026: 190,596 downloads a week17 January 2026: 308,692 downloads a week24 January 2026: 348,682 downloads a week31 January 2026: 362,611 downloads a week7 February 2026: 350,541 downloads a week14 February 2026: 381,374 downloads a week21 February 2026: 362,818 downloads a week28 February 2026: 465,321 downloads a week7 March 2026: 518,025 downloads a week14 March 2026: 563,658 downloads a week21 March 2026: 444,919 downloads a week28 March 2026: 597,443 downloads a week4 April 2026: 692,884 downloads a week11 April 2026: 978,382 downloads a week18 April 2026: 1,026,402 downloads a week25 April 2026: 1,714,883 downloads a week2 May 2026: 1,226,509 downloads a week9 May 2026: 1,084,231 downloads a week16 May 2026: 1,385,028 downloads a week23 May 2026: 1,593,306 downloads a week30 May 2026: 1,314,291 downloads a week6 June 2026: 1,863,574 downloads a week13 June 2026: 1,541,559 downloads a week20 June 2026: 3,601,367 downloads a week27 June 2026: 1,994,641 downloads a week4 July 2026: 1,758,276 downloads a week11 July 2026: 1,869,908 downloads a week18 July 2026: 2,098,064 downloads a week25 July 2026: 1,790,066 downloads a week1 August 2026: 2,573,477 downloads a week8 August 2026: 2,202,677 downloads a week15 August 2026: 2,706,478 downloads a week22 August 2026: 2,203,334 downloads a week29 August 2026: 2,916,067 downloads a week5 September 2026: 2,297,199 downloads a week27 September 2026: 2,720,485 downloads a week4 October 2026: 3,318,599 downloads a week31 October 2026: 5,149,844 downloads a week7 November 2026: 3,431,953 downloads a week14 November 2026: 3,914,646 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