EN

OpenCode

Open source AI coding agent for the terminal, desktop and IDE that works with models from many providers.

OpenCode is an open source AI coding agent that runs in a terminal, a desktop app or an IDE extension. OpenCode is used by installing it with a script or package manager, choosing a model, either a bundled free one or one from over 75 providers, and asking the agent to work on a project.

Best for Developers who want a coding agent they can inspect, run from the command line and pair with whichever model provider they prefer.

OpenCode website home page
Screenshot of opencode.ai, captured 9 Oct 2026
Platforms
macOS, Windows, Linux, Plugin
Free plan
Yes
Made by
Anomaly
Added

Last verified: . Information taken from opencode.ai.

What is OpenCode?

OpenCode is an open source AI agent that helps developers write code from a terminal interface, a desktop app or an IDE extension. It is not tied to one model vendor. Some free models are bundled, and a user can instead connect Claude, GPT, Gemini or any of more than 75 providers listed through Models.dev, local models included. People who already pay for GitHub Copilot or ChatGPT Plus or Pro can sign in with those accounts and use them inside the agent. For each project OpenCode loads the appropriate language servers, so the model receives language-aware context. Several agents may run in parallel on one codebase, and any session can be shared as a link for reference or debugging. It installs by shell script, npm, bun or Homebrew. The maintainers state that code and context data are not stored. A companion service, Zen, offers a curated set of models benchmarked for coding agents.

Key Features

Model Choice

Connects to over 75 LLM providers through Models.dev, including Claude, GPT, Gemini and locally hosted models.

Existing Subscription Login

Signs in with GitHub to use a Copilot account, or with OpenAI to use a ChatGPT Plus or Pro plan.

LSP Support

Automatically starts the correct language servers so the model works with language-specific information.

Multi-Session

Runs multiple agents at the same time against the same project.

Share Links

Creates a link to a session that teammates can open to review or debug what happened.

Terminal, Desktop and IDE

Ships as a terminal interface, a desktop application and an editor extension.

Use Cases

Coding from the Terminal
Ask the agent to implement or change code without leaving the command line.
Parallel Tasks
Start separate agents on different parts of one repository.
Using a Local Model
Point the agent at a model running on your own hardware.
Debugging with a Colleague
Send a session link so someone else can see the full exchange.
Privacy-Sensitive Projects
Work in environments where source code must not be retained by the tool.

Things to know

Model costs depend on the provider
Free models are included, but usage of a connected third-party provider or subscription is governed by that provider.
Zen is a separate offering
The curated Zen model service is presented alongside the agent rather than as a requirement for using it.
Enterprise option
The site has an Enterprise section for organisations in addition to the open source project.

FAQs

What is OpenCode?

OpenCode is an AI coding agent, released as open source, that assists with writing code from a terminal, an editor or a desktop application.

Is OpenCode open source?

Yes. OpenCode is open source and developed on GitHub, where the site reports over 208,000 stars and 950 contributors.

Is OpenCode free?

OpenCode includes free models, and you can alternatively connect models from other providers, which may carry their own costs.

Which AI models does OpenCode support?

OpenCode supports more than 75 LLM providers through Models.dev, among them Claude, GPT and Gemini, as well as local models.

Can I use my ChatGPT or Copilot subscription with OpenCode?

Yes. OpenCode lets you log in with OpenAI to use ChatGPT Plus or Pro, or with GitHub to use a Copilot account.

Can OpenCode only be used in the terminal?

No. OpenCode is also available as a desktop app and an IDE extension.

Does OpenCode store my code?

No. OpenCode states that it does not store your code or context data.

What is OpenCode Zen?

Zen is a service from the OpenCode team that provides access to a selected set of AI models tested and benchmarked for coding agents.

Who it's for

  • Software developers
  • Open source contributors
  • DevOps engineers
  • Engineering teams
  • Privacy-sensitive organisations

Tagscoding agentopen sourceterminalLSPmulti-model

Comments

No comments yet. If you have used OpenCode, tell other readers how it went.

Leave a comment

Comments are reviewed before they appear. Links are marked as user content.

Alternatives to OpenCode

ToolFree planStarting priceAPI
Claude CodeAnthropic's AI coding agent that plans, edits code, runs tests and opens pull requests from your terminal or IDE.
— — —
CursorAI coding agent and editor that plans, writes and reviews code on the desktop, in the terminal and in the cloud.
Yes — —
DevinAutonomous AI software engineer from Cognition that plans, writes, tests and reviews code and opens pull requests.
Yes — Yes
skills.shDirectory and leaderboard of installable skills for AI coding agents, added with one CLI command.
— — Yes
JetBrains AIJetBrains' AI tooling for developers, led by Air, a system for running and reviewing coding agents.
— — —

Listed in the same categories as OpenCode. A starting price appears only where we checked it on the maker’s pricing page; a dash means not checked or not published. All AI Code Assistant tools