Skip to content
Coding & Dev Tools

OpenCode

A free, open-source coding agent that works with almost any AI model, including free ones.

Open sourceFrom Pay as you goWorks with Claude Code

Quick take

  • A free, open-source coding agent with a lot of fans. It works in the terminal, a desktop app or your editor, with almost any AI model.
  • Free models are built in, and OpenCode Go at $10 a month gives you generous use of cheaper coding models like DeepSeek, Kimi and GLM.
  • You can't use a Claude Pro or Max subscription in it any more. Claude models need a separate, paid API key.
  • OpenCode 2.0 landed on 12 October 2026, and its hosted Console was breached on 17 October, exposing some users' saved API keys. Rotate any keys you stored there.
  • Most users say it's as pleasant as Claude Code day to day, but slightly behind Claude Code and Codex on the hardest tasks.

What is OpenCode?

OpenCode is a free, open-source AI coding agent. Like Claude Code, you point it at a project folder and it reads, writes and runs code for you. It runs in the terminal, as a desktop app or inside your editor, and it works with more than 75 AI providers, including models running on your own computer. It's made by Anomaly, the team behind SST, and it is one of the most popular coding tools on GitHub.

Choose it over Claude Code if you want to pick your own model or keep costs down. It comes with a rotating set of free models, and the $10 a month Go plan covers cheaper coding models like DeepSeek, Kimi and GLM. You can't use a Claude Pro or Max subscription in it any more, since Anthropic blocked that in early 2026, so Claude models need a paid API key.

The catch is trust and polish. On 17 October 2026 OpenCode disclosed a breach of its hosted Console that exposed some users' saved API keys, a week after version 2.0 shipped a change that stopped asking permission before editing files. Keep your keys local, set spending caps and review what it changes.

Who's using it, and who it's for

  • Developers
  • Open-source fans
  • Students
  • Budget-conscious founders

Developers and tinkerers who want a capable coding agent without a big subscription, or who want to choose their own models.

Key features

  • Any model

    Connect more than 75 providers, a GitHub Copilot or ChatGPT subscription, or models running on your own computer.

  • Free models included

    A rotating set of free models, capped at around 200 requests a day, so you can start without paying anyone.

  • Terminal, desktop and editor

    Use the terminal app, the desktop app or the extension for VS Code and similar editors, all sharing one background service.

  • Background agents

    Run several agents and subagents at once on the same project, each with the model you choose.

  • Go and Zen model plans

    Go is a flat $10 subscription for tested coding models. Zen is pay as you go at cost, with spending limits.

  • Plugins and SDK

    Extend it with plugins, connect MCP servers or build your own tools on its API.

How we rate it

3.8overall, out of 5

Our rating, from using the tool ourselves. Each score is out of 5.

Ease of use
3.0

How quickly someone non-technical gets value from it.

Features
4.5

How completely it covers the job it's built for, and how well the pieces fit together.

Output quality
3.5

How good the results are before you fix them.

Value for money
5.0

What you get for the price, including the free plan.

Speed & reliability
3.0

How fast it is and how often it falls over.

Community rating

No community reviews yet. Be the first to leave one.

OpenCode pricing

  • OpenCode

    Free

    Anyone with their own model access, or happy with the free models.

    • The full agent, open source under MIT
    • Free models with a daily request cap
    • Bring your own API keys or local models
  • Zen

    Pay as you go, from a $20 top-up

    People who want top models without a subscription.

    • Hand-picked models tested for coding
    • Charged at provider cost with no markup
    • Monthly spending limits
  • Our pick

    Go

    $10/mo

    Most people who want to code daily on a budget.

    • Generous limits on cheaper coding models
    • Limits reset every 5 hours, weekly and monthly
    • Works with other agents too
  • Go Plus

    $40/mo

    Heavy users who hit the Go limits.

    • Everything in Go
    • Higher limits and fewer interruptions
  • Enterprise

    Custom

    Companies rolling it out to a team.

    • Central configuration and model access
    • Support and deployment help

Which plan should you pick?

Start free. If the free models feel thin, OpenCode Go at $10 a month is the best-value upgrade in this category. Only add Zen or a Claude or OpenAI API key when you need a frontier model for a hard job, and set a spending cap when you do.

Prices in USD unless noted, checked 21 October 2026. Vendors change plans often, so confirm on their site before you buy.

Best use cases

Ways OpenCode can slot into your week.

  1. 1

    Build a small tool for next to nothing

    Use the free models or Go to build an internal tool or a simple website without paying for a big subscription.

  2. 2

    Mix cheap and expensive models

    Let a cheap model do routine edits and switch to a frontier model only for the tricky parts, so costs stay low.

  3. 3

    Keep code on your own machine

    Connect a local model so nothing leaves your computer, handy for sensitive client work.

  4. 4

    Back up your main agent

    When Claude Code or Codex hits its limit, carry on in OpenCode with a different model.

How it fits your tech stack

It sits alongside Claude Code or Codex rather than replacing your editor, and plugs into VS Code, Cursor, Zed and JetBrains. Many people use it as a second agent for cheaper models.

Connects to

  • GitHub Copilot
  • ChatGPT
  • VS Code
  • Zed
  • JetBrains
  • Ollama
  • MCP servers
  • Models.dev providers

Pros and cons

Pros

  • Free and open source, with free models to start
  • Works with almost any model, including local ones
  • OpenCode Go at $10 a month is very cheap for real daily use
  • Polished terminal and desktop app that many prefer to Claude Code's
  • Fast-moving project with a huge community

Cons

  • October 2026 Console breach exposed some saved API keys, and users reported surprise provider charges
  • Version 2.0 briefly stopped asking permission before file edits, and broke older plugins
  • Claude Pro and Max subscriptions can't be used, so Claude needs a paid API key
  • Free models get blocked on some networks for abuse, and limits shift with promotions
  • Terminal-first, so less friendly for non-developers

OpenCode alternatives

The closest alternatives to OpenCode in the library, best rated first.

Why it made the list

It's the most popular open-source alternative to Claude Code, and its free and $10 options make agent-style coding cheap.

Not sure OpenCode is the one?

Put it next to a similar tool and see the differences side by side.

Compare OpenCode

OpenCode FAQ

How much does OpenCode cost?

There's a free plan, and paid plans start at Pay as you go. Prices checked 21 October 2026 against OpenCode's pricing page.

Is OpenCode free?

Yes, OpenCode has a free option. Start free. If the free models feel thin, OpenCode Go at $10 a month is the best-value upgrade in this category. Only add Zen or a Claude or OpenAI API key when you need a frontier model for a hard job, and set a spending cap when you do.

What is OpenCode best for?

OpenCode is best for coding with free or low-cost models, using any AI provider, including local models and A Claude Code-style agent without a subscription. Developers and tinkerers who want a capable coding agent without a big subscription, or who want to choose their own models.

What are the best OpenCode alternatives?

The closest alternatives are Claude Code, Zed, OpenAI Codex and Warp. Claude Code is best for building features end to end.

Community reviews

Nobody has reviewed OpenCode here yet. If you use it, your take helps everyone else choose.

Used OpenCode? Leave a review

Your rating counts towards the community score. No account needed.

Your rating

Pick a star rating first.

More tools in Coding & Dev Tools

  • Claude Code

    Coding & Dev Tools

    An AI agent that works inside your project: it reads, writes and runs the code for you.

    Paid
  • OpenAI Codex

    Coding & Dev Tools

    OpenAI's coding agent. Hand it a task and it works away while you do other things.

    Freemium
  • OpenRouter

    Coding & Dev Tools

    One account and one API key for hundreds of AI models, paid for at the makers' prices.

    Freemium
  • CodeRabbit

    Coding & Dev Tools

    AI that reviews every code change on GitHub and flags bugs before they go live.

    Freemium