OpenCode
The open-source AI coding agent built for the terminal
About
OpenCode is a terminal-first, MIT-licensed AI coding agent (~213k GitHub stars, among the most-starred in its category): a polished TUI plus headless server that plans, edits files, and runs commands with the model of your choice. It is bring-your-own-model across 75+ providers (Anthropic, OpenAI, Google, OpenRouter, local OpenAI-compatible runtimes via the Models.dev catalog), supports sign-in with existing subscriptions (e.g. GitHub Copilot, ChatGPT Plus/Pro), integrates language servers for symbol-level code intelligence, and offers plan mode, parallel agents, shareable sessions, plugins, plus a desktop app (beta) and IDE extensions.
⚠️ Repository note: the project moved from sst/opencode to anomalyco/opencode in January 2026 when SST rebranded to Anomaly; the old path redirects. Do not confuse it with opencode-ai/opencode, an unrelated archived project whose author continued it as Crush.
What it can do
- • Polished terminal TUI + headless `opencode serve` mode with an SDK
- • 75+ model providers via the Models.dev catalog; bring your own keys or subscription logins
- • Built-in `build` and `plan` agents (Tab to switch), plus a `general` subagent
- • LSP integration for symbol-level code intelligence
- • Parallel sessions, plan mode, plugins, shareable session links
- • Reads AGENTS.md / CLAUDE.md / .claude/skills/ conventions
- • Desktop app (beta) and IDE extensions alongside the terminal
- • Session stats, export, and local-only data by default
Setup
- Install via the official script:
curl -fsSL https://opencode.ai/install | bash— ornpm i -g @opencode/cli@latest,brew install anomalyco/tap/opencode, Scoop/Chocolatey (Windows), Pacman/AUR (Arch),mise use -g opencode, or Nix. cdinto your project directory and runopencodeto launch the TUI.- Choose your model provider and authenticate — via API key or by signing in with a supported subscription (e.g. GitHub Copilot, ChatGPT Plus/Pro).
- Configure defaults in
~/.config/opencode/opencode.json(providers, models, permissions, small-model fallback). - OpenCode reads existing
AGENTS.md,CLAUDE.md, and.claude/skills/files automatically; pressTabto switch between thebuild(full access) andplan(read-only) agents. - Privacy tip: the built-in
opencode(Zen) provider auto-loads free models routed through OpenCode's hosted service — remove or ignore it in config if you want everything to stay on your own providers.
Prerequisites
A terminal; a model provider API key or a supported subscription login (GitHub Copilot, ChatGPT Plus/Pro, etc.). Optional: language servers for LSP-powered navigation; Docker/Node tooling only if your project needs it.
Use cases
Works with
Trust score — 9/10
Scored 9/10 (verified tier, metrics-v1). Evidence: 212,922 GitHub stars (log-scaled vs catalog peers); blended with ~694,895 monthly package downloads; last push 0d ago; 100 releases/12mo; 4107 open issues. Manual review: repo moved sst/opencode→anomalyco/opencode (Jan 2026); decoy archived opencode-ai/opencode (became Crush); no CLI telemetry; Zen provider routes free models via hosted service (removable). License: MIT.
★ 212,921 GitHub stars
How the trust score is built
Full methodology →- Adoption · stars/downloads, log-scaled vs peers
- 9.4/10
- Maintenance · recency, releases, issue load
- 9.2/10
- Openness · license + docs
- 10.0/10
- Manual review · sanity read + red-flag check
- 9.0/10
- · 212,922 GitHub stars (log-scaled vs catalog peers)
- · blended with ~694,895 monthly package downloads
- · last push 0d ago; 100 releases/12mo; 4107 open issues
- · manual review: repo moved sst/opencode→anomalyco/opencode (Jan 2026); decoy archived opencode-ai/opencode (became Crush); no CLI telemetry; Zen provider routes free models via hosted service (removable)
Sources
Every fact above was checked against these sources. Where a claim comes from the provider and couldn't be independently verified, the text says so.