OpenCode

by OpenCode (open-source project) · CLI / terminal, IDE extension Open source

OpenCode is a free, open-source AI coding agent for the terminal, desktop and IDE that works with 75+ model providers, local models, or your existing GitHub Copilot / ChatGPT subscription.

What is OpenCode?

OpenCode offers a polished terminal UI with LSP integration, multiple parallel sessions on one project and shareable session links. It is model-agnostic: pick any provider per session, run local models, or sign in with Copilot or ChatGPT to use those subscriptions.

The project reports over 200,000 GitHub stars and states that it does not store your code or context data. Optional paid offerings (Zen, Go) provide curated hosted model access.

OpenCode pricing

Plans as publicly listed on the official pricing page, verified 2026-10-10.

PlanPriceNotes
OpenCodeFreeBring your own model/provider; some free models included
Zen / GoOptional paid model accessCheck official site

Source: https://opencode.ai/. Prices in USD, excluding tax.

Supported models

75+ providers via Models.dev, local models, plus login with GitHub Copilot or ChatGPT Plus/Pro. Bring-your-own-key: supported.

Claude OpenAI Gemini Open-weight Local models

Model watch: Gemini 4 Carbon — reported, unconfirmed: what we know

Features at a glance

  • ✓ Agent mode
  • — Autocomplete
  • — Cloud / background agents
  • ? PR code review
  • ✓ MCP support
  • ✓ Self-host option

Interfaces: Terminal (TUI) · Desktop app · IDE extension.

Strengths and weaknesses

+ Strengths

  • Free and open source with a large community
  • Any model, including local — no vendor lock-in
  • Can reuse Copilot or ChatGPT subscriptions
  • Privacy-first: does not store your code

- Weaknesses

  • You manage model choice and costs yourself
  • No built-in cloud/background agents
  • Quality depends heavily on the model you pick

Who is OpenCode best for?

Developers who want a Claude-Code-style terminal agent without vendor lock-in.

OpenCode alternatives

Head-to-head: OpenCode vs Claude Code · OpenCode vs Aider · OpenCode vs Cline · OpenCode vs Kilo Code

OpenCode FAQ

How much does OpenCode cost?
As listed on the official pricing page (verified 2026-10-10): OpenCode: Free; Zen / Go: Optional paid model access. Prices change often, so confirm on https://opencode.ai/.
Is OpenCode open source?
Yes — Open source (see GitHub repo).
Which AI models does OpenCode support?
75+ providers via Models.dev, local models, plus login with GitHub Copilot or ChatGPT Plus/Pro. You can bring your own API key.
Who is OpenCode best for?
Developers who want a Claude-Code-style terminal agent without vendor lock-in.
What are the best alternatives to OpenCode?
Popular alternatives include Claude Code, Aider, Cline, Kilo Code. Use our side-by-side compare tool to see the differences.