# OpenCode — open-source terminal AI coding agent crosses 146k GitHub stars

> The largest open-source AI coding agent on GitHub — terminal-first, provider-agnostic, and a viable swap for Claude Code if you want fully open infra.

- Org: Anomaly
- Date: 2026-04-18
- Category: repo, tool
- Source: https://github.com/anomalyco/opencode
- Canonical page: https://ai-tldr.dev/releases/opencode-trending-146k/

## In short

OpenCode — the open-source, provider-agnostic terminal coding agent — has crossed 146k GitHub stars, now the largest open-source AI coding agent on GitHub. Go + Bubble Tea TUI, 75+ LLM providers, desktop app, client/server mode.

## What it is

OpenCode is an open-source AI coding agent that lives in your terminal, written in Go with a Bubble Tea TUI. It has grown from roughly 60k stars in early March 2026 to 146k+ by mid-April — the largest open-source AI coding agent on GitHub, overtaking Claude Code on star velocity. Desktop apps exist for macOS, Windows, and Linux; a client/server mode lets you drive an OpenCode session from a different device.

## How it works

Two built-in agents ship with the binary: 'build' has full read/write/exec permissions, 'plan' is read-only analysis for review work. The core is provider-agnostic — Claude, OpenAI, Google, or local models via Ollama — so you can route a Claude Max subscription through it or run Qwen 3.6 locally behind the same UI. Native LSP integration means the agent reasons over real language-server diagnostics. Install paths include npm, Homebrew, Scoop, Pacman, and a curl installer.

## Why it matters

A lot of coding-agent adoption in 2026 is quietly driven by teams that cannot ship client-side integrations with closed CLIs (Claude Code, Cursor) because of data or procurement constraints. OpenCode hitting 146k stars is the clearest signal yet that the open-source track has the traction to keep up with Anthropic on features. For solo devs, being able to swap providers behind one UI is the bigger deal.

## Who it's for

Developers who want a Claude Code / Cursor-style experience without a closed vendor lock; teams running local models.

## Try it

npm i -g opencode-ai && opencode

## Links

- [Repo](https://github.com/anomalyco/opencode)
- [Site](https://opencode.ai/)
- [Awesome OpenCode](https://github.com/awesome-opencode/awesome-opencode)
