OpenCode: the open-source AI coding agent that reached 178,000 GitHub stars

OpenCode has become the dominant open-source alternative to Claude Code and Cursor — a terminal-based agent supporting 75+ model providers with full privacy control. 178K GitHub stars and 7.5 million monthly users make it worth understanding.

Most discussion about AI coding tools in 2025 and 2026 has centred on a short list of commercial products: Claude Code, Cursor, GitHub Copilot, Windsurf. But a project called OpenCode has quietly become the most starred open-source alternative — reaching 178,000 GitHub stars, 7.5 million monthly users, and 900 contributors by mid-2026 — and it’s worth understanding what that popularity reflects.

What OpenCode actually is

OpenCode is a terminal-based AI coding agent. It’s closer in spirit to Claude Code than to Cursor: it runs in a terminal user interface, operates as a full agent harness with tool loops, language server protocol integration, and session management, and ships as both a terminal tool and a desktop application for macOS, Windows, and Linux.

The defining feature is model flexibility. OpenCode supports 75+ LLM providers — Claude, GPT, Gemini, Mistral, local Ollama models — and lets you swap providers mid-session. It also runs entirely on your local machine with no code or context data sent to OpenCode’s servers, which matters significantly for teams in regulated industries or working with sensitive codebases.

Why the popularity makes sense right now

OpenCode’s growth reflects something real: a significant market of technical teams who want AI coding assistance without vendor lock-in. The events of June 2026 — Google shutting down Gemini CLI and replacing it with a closed-source alternative — have made that concern more concrete. Teams that built workflows around a single vendor’s free CLI now face either migration or a new payment obligation.

OpenCode’s approach — model-agnostic, privacy-preserving, open-source — is the opposite of that risk profile. If one provider’s pricing changes or their model falls behind, swapping it out is a configuration change, not a migration project.

What it means if you’re commissioning development

For founders and product leads evaluating development partners, this is worth asking about. A team that’s locked into a single AI vendor’s toolchain is making a bet the vendor’s pricing and policies won’t change. A team that works across providers is more resilient as the landscape continues to shift.

The practical implication: the quality of AI-assisted development in 2026 is less about which specific tool a team uses and more about whether they have the expertise to use those tools well and the flexibility to adapt when the tools change. OpenCode’s reach is a signal that serious technical teams are prioritising that adaptability.

We cover our approach to AI tooling and what it means for client projects on our AI-assisted development page.

← All research

More research.

GitHub AI usage API now returns per-model token counts, so Copilot spend can finally be traced to models

GitHub's AI credit usage REST API now returns six raw token counts per model for enterprises, organisations and individuals, giving Copilot cost tracking a real audit trail.

Read ›

Claude Code 2.1.335: add remote MCP servers from the terminal, a new Interrupt hook, and a harness audit for older models

Claude Code 2.1.335 adds a one-line command to register remote MCP servers as claude.ai connectors, an Interrupt hook event and a /claude-api harness-audit command for agent code written for older models.

Read ›

GitHub Copilot model controls shift: Claude Opus 4.8 (fast) retired, targeted model rules end 12 January 2027

GitHub retired Claude Opus 4.8 (fast) in Copilot on 30 November and is closing the targeted organisation model rules preview, with migration on 12 January 2027.

Read ›

Claude Code 2.1.334: REVIEW.md now works at folder level, plus a model search box and a visible auto-compact setting

Claude Code 2.1.334 extends REVIEW.md so AI code reviews follow rules held in folders, adds a search box for long model lists and shows the auto-compact window in settings.

Read ›

GitHub Copilot for JetBrains adds scheduled automations in preview and drops support for IDE 2025.2

GitHub Copilot for JetBrains can now run automated tasks on a schedule (preview), adds Microsoft Foundry and Azure OpenAI models to its agent, and no longer supports JetBrains IDEs 2025.2.

Read ›

Claude Code 2.1.333: REVIEW.md shapes AI code reviews, and you can stop one workflow agent

Claude Code 2.1.333 lets teams write their code review rules in a REVIEW.md file, lets one running agent in a workflow be stopped without halting the rest, and changes how permission lists are passed in scripts.

Read ›

Start a project

Building with AI? Let's talk.

Tell us what you are building. We'll give you an honest view of the right approach.

Start a projectSee our work