Skip to content

OpenCode

Open source terminal coding agent that works with many model providers

Permissive (OSI) · MIT AI-native
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

82

Health

Thriving

Overview

Stars

228,888

Last commit

today

Nov 2026

Repository age

1 year

since Apr 2025

Latest version

v1.19.6

Nov 2026

Contributors

–

18 active in 90 days

Releases

25

last 12 months

Language

TypeScript

OpenCode is an AI coding agent that runs in your terminal. It is written in TypeScript, MIT licensed, and works with many model providers instead of tying you to one. A desktop app is available in beta for macOS, Windows and Linux.

It includes two built-in agents you switch between with the Tab key. The build agent has full access for development work. The plan agent is read-only, denies file edits by default and asks before running bash commands, which suits exploring unfamiliar code. A general subagent handles complex searches and multistep tasks.

You can install it with a script, npm, Homebrew, pacman, mise or Nix. It is a direct alternative to Claude Code, OpenAI Codex and GitHub Copilot. It does not offer inline completion as you type, cloud background agents that open PRs, or automated PR code review. A hosted plan exists.

Who it's for

Developers who work in the terminal

Build and plan agents give you an edit mode and a read-only mode in one tool.

Skip if: You want inline completion while typing.

Teams that switch between model providers

It is not tied to one vendor's models.

Skip if: You want one vendor's tightly integrated cloud agents.

Developers exploring unfamiliar codebases

The plan agent reads code without editing files.

Skip if: You need automated pull request review.

The problem it solves

Coding agents from model vendors usually lock you to their models and licenses. OpenCode gives you a terminal agent under the MIT license that works with many providers.

Strengths

  • MIT licensed and works with many model providers
  • Read-only plan agent asks before running bash commands
  • Many install routes: script, npm, Homebrew, pacman, Nix
  • Desktop app in beta for macOS, Windows and Linux
  • Very active, with 25 releases in the last year

Trade-offs

  • No inline completion as you type
  • No cloud background agents that produce PRs
  • No automated PR code review
  • Desktop app is still in beta

OpenCode replaces

Self-host OpenCode

Self-hostable
No (desktop or local app)
Hosted plan
From $4/month · pricing

Quick start

curl -fsSL https://opencode.ai/v2/install | bash

From the project's own install instructions. Check the docs for production settings.

In the community

Frequently asked questions

Is OpenCode free and open source?

Yes, it is MIT licensed. A hosted plan is also offered.

Which platforms does it support?

Linux and macOS in the terminal. The beta desktop app also covers Windows.

How do I install it?

Use the install script, npm, Homebrew, pacman, mise or Nix.

Does it replace GitHub Copilot?

For agent-style work in the terminal, yes. It has no inline completion as you type.

OpenCode compared

Other Claude Code alternatives

Compare all 8 Claude Code alternatives →

Similar tools in AI coding assistants

codex

AI coding assistants

Terminal coding agent from OpenAI that runs locally, for developers using OpenAI models

136k 22k today Active Apache-2.0

Replaces Claude Code

Cline

AI coding assistants

Open source AI coding agent for IDE, terminal and desktop, usable with any model

72k 8k yesterday Thriving Apache-2.0

Replaces Claude CodeCursor

pi

AI coding assistants

Terminal coding agent you extend with packages, skills and prompt templates

124k 16k today Thriving MIT

Replaces Claude Code

Goose

AI coding assistants

Open source AI agent with desktop app and CLI that works with 85+ model providers

57k 6.7k today Thriving Apache-2.0

Replaces Claude CoworkClaude Code

Aider

AI coding assistants

Terminal AI pair programmer that commits its edits to git, for use with any LLM

50k 5.2k 6 months ago Dormant Apache-2.0

Replaces Claude Code

T3 Code

AI coding assistants

Desktop, web and phone interface for running Claude Code, Codex and other coding agents

76k 13k today Active MIT