Skip to content

DirectoryTools

OpenCode logo

OpenCode

Open source AI coding agent for the terminal, desktop and IDE that works with any model.

Visit OpenCode

Coding & WebOpen SourceWe checked the prices on opencode.ai on 7 Oct 2026.

OpenCode homepage screenshot

What is OpenCode?

Open source AI coding agent for the terminal, desktop and IDE that works with any model.

Coding & WebCode Assistants & IDEsCodingAgentsOpen source

Who is OpenCode best for?

OpenCode is best for developers who want an open source coding agent that runs the models they already pay for.

  • Developers who switch models

    It connects to 75+ model providers through Models.dev, including local models, so the agent stays the same when the model changes.

  • People with an AI subscription already

    You can sign in with Claude Pro or Max, ChatGPT Plus or Pro, or GitHub Copilot instead of buying separate API credit.

  • Privacy-sensitive codebases

    OpenCode does not store your code or context; data is kept only when you use its free models or create a share link.

  • Parallel agent work

    You can run several agent sessions on the same project at once and share a link to any session for review or debugging.

How much does OpenCode cost?

OpenCode is free and open source under the MIT License: you pay only for the models you connect, or for OpenCode's optional Go plan from $10 a month or its pay-as-you-go Zen credit.

OpenCode$0Free and open source
  • Terminal, desktop app and IDE extension
  • A set of free models, no account needed
  • Bring any provider's API key or subscription
Go$10Per month
  • Curated low-cost open models tested for coding agents
  • Request limits per 5 hours and per month
  • Works with any agent, with credit top-ups
Go Plus$40Per month
  • Everything in Go
  • Higher limits for larger projects

OpenCode itself costs nothing; other costs come from the model provider you connect. Zen, OpenCode's pay-as-you-go model service, starts with a $20 balance, charges per request with no markup and can top up automatically when the balance falls to $5. Full pricing on opencode.ai. We checked these prices on .

How do readers rate OpenCode?

No one has rated OpenCode yet. Be the first.

No ratings yetThe score and its stars show once 3 readers have rated OpenCode.
Your rating

Sign in to rate. One rating per account.

Your rating of OpenCode

Is OpenCode open source?

Yes. OpenCode's code is public under the MIT licence, so you can read it, change it and run it yourself.

On GitHub

228,432stars

+8,381 (+3.8%) in the last 30 days

Last commit
22 Nov
Repository age
1 years
Latest release
17 Nov
Licence
MIT
Self-hosted
No
Run it yourselfThe code and the steps to set it up are in its repository on GitHub.View on GitHub

What are the best OpenCode alternatives?

OpenCode is an open source alternative to Antigravity, Claude Code, CodeGPT and 2 more. Grok Build does the same job and is open source too.

Articles about OpenCode

One of our articles covers OpenCode, with every price checked on the makers' own pages.

Questions about OpenCode

What is OpenCode?

Open source AI coding agent for the terminal, desktop and IDE that works with any model.

Who is OpenCode for?

OpenCode is best for developers who want an open source coding agent that runs the models they already pay for.

Is OpenCode free?

Yes. OpenCode has a free OpenCode plan: terminal, desktop app and IDE extension.

How much does OpenCode cost?

OpenCode's paid plans are Go at $10 per month and Go Plus at $40 per month.

Is OpenCode open source?

Yes. OpenCode's code is public under the MIT licence, so you can read it, change it and run it yourself.

What are the best OpenCode alternatives?

The closest alternatives on Recaply are Antigravity, Claude Code, CodeGPT, Zencoder, Amp and Grok Build.

Where can I try OpenCode?

On its official website, opencode.ai.

Can I use my Claude or ChatGPT subscription with OpenCode?

Yes. OpenCode supports subscription plans from the major providers, so you can sign in with Claude Pro or Max, ChatGPT Plus or Pro, or GitHub Copilot. It also works with API keys from OpenAI, Anthropic, xAI and others, and with local models.

Does OpenCode store my code?

No. OpenCode says it does not store your code or context data. Data is kept only when you use OpenCode's free models or create a sharable link to a session.