SST · Tools

opencode

Visit website

At a glance

Price
Pricing on request
Vendor
SST

Specifications & properties

Key decision factors

Pricing model
Open source 1
Tool form
  • CLI agent
  • IDE plugin
1
Autonomy level
Supervised agent 1
Model choice
Bring your own key (BYO) 1

Pricing

Price from
Pricing on request 1
Free tier
Yes 1

Integration

MCP support
Yes 1
Report data / suggest a correction

opencode is an open-source AI coding agent from SST available as a terminal-based interface, desktop app, or IDE extension.

Profile

opencode is a free, open-source AI coding agent built for the terminal, with a companion desktop app and IDE extensions, maintained by Anomaly — the team also known for the SST serverless framework and terminal.shop. It lets developers read, write, and edit code, run shell commands, and navigate a codebase through a terminal UI (TUI) or GUI, while connecting to almost any LLM provider rather than locking users into one model.

Who builds it

  • Developed in the open at github.com/sst/opencode under Anomaly, released in June 2025.
  • Licensed under the MIT license, so the full source is free to inspect, fork, and self-host.
  • The project reports 160,000+ GitHub stars, 900+ contributors, and 13,000+ commits.

Core features

  • Dual agent modes: a full-access "build" agent for making changes and a read-only "plan" agent for analysis and codebase exploration, switchable with the Tab key.
  • Broad model support: works with 75+ LLM providers via the Models.dev directory, including Claude, GPT, Gemini, and local models, plus a curated "OpenCode Zen" list of models tested by the opencode team.
  • LSP integration: automatically loads Language Server Protocol tooling for the languages in a project.
  • Concurrent multi-session support, undo/redo for changes, and shareable session links for collaboration.
  • Available as a terminal TUI, a desktop app (macOS, Windows, Linux in beta), and IDE extensions.
  • Simple installation via curl script, npm, Bun, pnpm, Yarn, Homebrew, Docker, and other package managers.

Pricing

  • The core agent is free and open source; users bring their own API key for any supported provider, or use the free models bundled through OpenCode Zen.
  • An Enterprise tier is available on a custom, per-seat basis for organizations that want central configuration, SSO integration, and routing every request through an internal AI gateway so code and data never leave their own infrastructure; Anomaly does not charge for tokens if a customer supplies its own LLM gateway.
  • By default opencode does not store any of a user's code or context data; the optional /share feature is the one exception, sending conversation data to opencode's servers unless disabled.

Who it's for

opencode suits developers who live in the terminal and want an agent that isn't tied to a single AI vendor — it works equally with Anthropic, OpenAI, Google, or self-hosted local models, and its MIT license makes it a natural fit for teams that want to audit, extend, or self-host the tool itself. The optional Enterprise tier extends that same open core to larger organizations that need SSO, centralized policy, and a guarantee that code stays inside their own infrastructure.

Frequently asked questions

Is opencode free, or what does it cost?

The core opencode agent is free and open source — you install it and bring your own API key for whichever model provider you choose, or use the free models included via OpenCode Zen. A separate, custom-priced Enterprise plan exists for organizations that need SSO, central configuration, and an internal AI gateway.

What platforms and interfaces does opencode support?

opencode runs as a terminal TUI (its primary interface), a desktop app for macOS and Windows with Linux in beta, and as IDE extensions. It installs via a curl script or common package managers including npm, Bun, Homebrew, and Docker.

Which AI models and providers does opencode work with?

opencode is model-agnostic: it connects to 75+ LLM providers through the Models.dev directory, including Claude, GPT, and Gemini, or to local models. New users are pointed toward OpenCode Zen, a curated set of models tested and verified by the opencode team.

Is opencode open source and can it be self-hosted?

Yes — opencode is released under the MIT license with its full source at github.com/sst/opencode, so it can be freely inspected, modified, or self-hosted. Its Enterprise tier also lets organizations route all requests through their own internal AI gateway rather than opencode's infrastructure.

How does opencode handle code privacy and data storage?

By default opencode does not store any of a user's code or context data — sessions run locally or via direct calls to the chosen AI provider. The one exception is the optional `/share` feature, which sends conversation data to opencode's own servers unless a user disables it.

Who builds and maintains opencode?

opencode is built by Anomaly, the team also behind the SST serverless framework and terminal.shop; the project lives at github.com/sst/opencode and is maintained as an active open-source project with 900+ contributors and 13,000+ commits.