Skip to main content
OpenCode logo

OpenCode

Open-source, terminal-first AI coding agent that works with any model provider

coding#ai-coding-agent#open-source#terminal#byok
Free plan Claimed Self-hosted
Toolglade’s take

OpenCode is genuinely free and open source (MIT); your only cost is whatever the underlying model API charges. Its terminal-first design and 75+ provider support make it one of the most flexible coding agents available, and its GitHub momentum is real. It is not a polished GUI IDE, so less technical users will find the CLI-only workflow a hurdle. Verify current provider support and features directly, as the project ships quickly.

About OpenCode

OpenCode is an MIT-licensed, terminal-first AI coding agent from the SST team that works with 75+ model providers, uses a Plan-then-Build review workflow, and runs entirely locally for privacy and control.

OpenCode is a Go-based, terminal-native AI coding agent built by Dax Raad and the team behind SST (under the Anomaly organization). Rather than locking you into a proprietary backend like most commercial AI IDEs, OpenCode is model-agnostic: you connect Anthropic, OpenAI, Google, GitHub Copilot, or local models via Ollama and pay the model vendor directly. It stores conversations locally in SQLite and gives you full control over which models process your code. The agent uses a multi-agent architecture with distinct Plan and Build modes. Plan mode proposes changes and lets you review them before any files are touched, while Build mode executes multi-step edits, runs commands, and iterates against LSP diagnostics. This split appeals to developers who want autonomy without giving up oversight of what the agent actually does to their codebase. By early 2026 OpenCode had crossed 160,000 GitHub stars, making it the most popular open-source AI coding agent by a wide margin, with millions of monthly developers. Because it is MIT-licensed and fully local, it is a natural fit for teams that need privacy, air-gapped workflows, or simply want to avoid subscription lock-in while still getting agentic coding.

TL;DR

OpenCode is a free, open-source, terminal-first AI coding agent that works with any model provider and keeps your code local, now one of the most-starred coding agents on GitHub.

Company overview

OpenCode is an open-source project maintained by Dax Raad and the team behind SST, operating under the Anomaly organization. It emerged as a terminal-native alternative to proprietary AI coding IDEs, emphasizing model-agnosticism, local execution, and developer control.

The project grew rapidly in 2025-2026, crossing 160,000 GitHub stars and reaching millions of monthly developers. Its momentum reflects strong demand for open, non-lock-in coding agents that let teams choose their own models and keep data on their machines.

Product features

OpenCode reads, writes, and edits files, executes shell commands, and integrates LSP diagnostics into an agentic loop. It uses a multi-agent architecture split into Plan mode, which proposes reviewable changes, and Build mode, which executes multi-step edits autonomously.

It supports 75+ model providers including Anthropic, OpenAI, Google, GitHub Copilot, and local models via Ollama, storing all conversation state locally in SQLite. Being MIT-licensed and CLI-based, it slots cleanly into terminal-centric and privacy-sensitive workflows.

Target market

OpenCode targets experienced software developers, platform and infrastructure teams, and privacy-conscious organizations that want agentic coding without proprietary backends or subscription lock-in.

Buyer personas

End users

Developers who live in the terminal and want an agentic coding tool with full model choice and local control.

Buyers

Engineering leads and platform teams choosing tooling that avoids vendor lock-in and keeps code private.

Key influencers

Open-source advocates, staff engineers, and developer-experience teams.

Ideal customer profile

Technical teams and individual power users who value open source, model flexibility, and local-first privacy over a managed GUI experience.

Funding & performance

OpenCode is a community-driven open-source project associated with the SST team rather than a traditionally VC-funded product; verify any commercial or hosted offerings with the maintainers.

Pros & cons

Pros

  • Free and open source under MIT
  • Model-agnostic across 75+ providers
  • Runs locally with data stored in SQLite
  • Plan-then-Build workflow keeps humans in control
  • Works with local models via Ollama
  • Massive and active open-source community
  • No subscription or vendor lock-in

Cons

  • Terminal-only, no graphical IDE
  • Steeper learning curve for non-CLI users
  • You manage and pay for model API keys yourself
  • Fast-moving project means features can change
  • Fewer built-in team collaboration features

Pricing plans

Open Source
$0
  • MIT-licensed CLI
  • 75+ model providers
  • Plan and Build modes
  • Local SQLite storage
  • BYO API keys

Key features

Self-hosted
Multi-language
Integrations
Anthropic, OpenAI, Google, GitHub Copilot, Ollama, LSP
Input types
text
Output types
text
Best For
Terminal-based coding, Privacy-conscious teams, BYOK workflows

Compare key features

View all alternatives →
Feature
OpenCode
Refact.ai
Cline
Pricing
Free
Freemium
Free
Free plan
Yes
Yes
Yes
Free trial
No
Yes
No
API
No
Yes
Yes
Self-hosted
Yes
Yes
Yes
Team support
No
Yes
No

Frequently asked questions

Is OpenCode free?+

Yes. OpenCode is MIT-licensed and free to use; you only pay the model provider whose API keys you supply.

Which models does OpenCode support?+

As of 2026 it supports 75+ providers including Anthropic, OpenAI, Google, GitHub Copilot, and local models via Ollama.

Does OpenCode send my code to a proprietary backend?+

No. OpenCode runs locally and sends prompts directly to the model provider you choose, storing conversations in a local SQLite database.

Who maintains OpenCode?+

It is maintained by Dax Raad and the team behind SST, under the Anomaly organization.

Is OpenCode a VS Code extension?+

No, OpenCode is a terminal-first CLI coding agent rather than an IDE extension.

Reviews (0)

Write a review

Pick a rating
Loading reviews…
Compare

Compare OpenCode with other AI tools

Side-by-side pages for pricing, features, and best-fit use cases.

All comparisons →

Similar tools you may like