Home/AI Coding Agents/OpenCode
O
OpenCode logo

OpenCode

Updated: Sep 20, 2026

Run an open source AI coding agent in your terminal, IDE, or desktop, connect free or any model, and keep your code and context private

OpenCode

About OpenCode

Overview

OpenCode is an open source AI coding agent that helps developers write code in the terminal, IDE, or desktop. It ships with free models included, or you can connect any model from any provider, including Claude, GPT, and Gemini, or run local models.

The project reports over 195,000 GitHub stars, 950 contributors, and more than 13,000 commits, and says over 16 million developers use it every month. OpenCode stores none of your code or context data, so it works in privacy-sensitive environments. The desktop app arrives as a beta with tabs on macOS, Windows, and Linux.

Key Benefits

  • Works as a terminal interface, a desktop app, and an IDE extension.
  • Includes free models or connects to 75+ LLM providers through Models.dev, including local models.
  • Starts multiple agents in parallel on the same project.
  • Shares a link to any session for reference or debugging.
  • Logs in with GitHub Copilot or ChatGPT Plus/Pro accounts to reuse existing subscriptions.
  • Loads the right LSPs automatically for the LLM.

How It Works

Install OpenCode with a single command using curl, npm, bun, brew, or paru. Launch it in your terminal, IDE, or the desktop app, then connect a free included model or log in with your own provider account. Run one or more agents on the same project, and share a session link to reference or debug the work. The desktop app adds tabs so you can keep multiple sessions organized.

Use Cases

  • Terminal developers run an AI coding agent without leaving the command line.
  • IDE users add OpenCode as an extension inside their existing editor.
  • Desktop users on macOS, Windows, and Linux work in a dedicated app with session tabs.
  • Privacy-sensitive teams keep code and context data off external storage.
  • Developers with GitHub Copilot or ChatGPT Plus/Pro subscriptions reuse those accounts.
  • Teams start multiple agents in parallel on a single project.

Why Choose This Product

OpenCode is open source and free to install through a single command, and it reports over 16 million monthly developers, 195,000 GitHub stars, and 950 contributors. It connects to 75+ providers through Models.dev while storing none of your code or context data, and it runs as a terminal interface, desktop app, or IDE extension. Zen adds a handpicked set of AI models that OpenCode has tested and benchmarked specifically for coding agents.

OpenCode Pricing

Free
Free

Pricing extracted from the product website and may change. Check the source for current details.