Back to directory

Developer Tools · AI Assisted Coding

OpenCode

A provider-neutral coding agent for terminal and desktop work

OpenCode is an MIT-licensed AI coding agent for developers who work in terminals, desktop clients, or integrations. Anomaly maintains the project, which supports direct provider accounts and internal gateways. The client is free to use, while OpenCode Go starts at $10 monthly, Console uses token billing, and Enterprise offers custom per-seat pricing. A hosted option exists through these services.

Key facts

License
MIT
Main language
TypeScript, JavaScript
Maintainer
Anomaly
First released
2025
Latest release
v2.1.2, October 21, 2026
GitHub stars
219.9k, October 2026
Hosted option
Go from $10/month, Go Plus $40/month, Console token billing, Enterprise custom per-seat pricing

What OpenCode is

OpenCode is an AI coding agent maintained by Anomaly. The repository was created on April 30, 2025, and has 219,897 GitHub stars, with contributors including thdxr, opencode-agent, rekram1-node, and kitlangton. It targets developers who want repository automation outside an IDE-specific assistant. The project includes a terminal user interface and a beta desktop application for macOS, Windows, and Linux. Its main repository uses the MIT license. Anomaly also operates OpenCode Go, Console, and Enterprise services around the client. The project does not publish a named funding round or a list of notable external users. Its adoption is visible in the star count, contributor activity, and release frequency. The repository currently lists 3,715 open issues and 29,384 forks.

How it works

A typical session begins inside a repository. The developer selects a model, describes a task, and lets the agent inspect files, edit them, run shell commands, and return changes for review. OpenCode includes build and plan agents, with plan restricting edits by default and asking permission before Bash commands. Developers can inspect changed files and line counts after completed turns. OpenCode also supports plugins and MCP-compatible integrations. The practical workflow is focused: ask for a bounded change, inspect the generated diff, run tests, correct mistakes, and commit through normal version-control tools. Long-running commands can remain connected beyond Bun's default fetch deadline.

Architecture and recent releases

OpenCode is primarily written in TypeScript and JavaScript, with Bun used in its toolchain. Distribution includes a shell installer, npm package, Bun, pnpm, Yarn, Homebrew, Arch, Nix, WinGet, and platform binaries. Desktop downloads cover Apple Silicon and Intel macOS, Windows x64 and ARM64, and Linux packages. Local sessions, credentials, and stored project data remain readable across the 2.1 upgrade without a database migration. Version 2.1 added persistent Windows terminals, experimental todo lists, reliable long-running TUI commands, and public SDK and event-contract changes. Version 2.1.2, released October 21, 2026, added clearer free-limit recovery, configurable location unloading, and fixes for fresh shell installations. The project also exposes SDK and plugin interfaces for extensions.

License and pricing

The client repository uses the MIT license, which permits commercial use, modification, private deployment, and redistribution with applicable notices retained. OpenCode Go costs $10 monthly, while Go Plus costs $40 monthly and provides higher limits. Console offers token-based model access and organization controls such as budgets, model policies, and usage tracking. Enterprise uses custom per-seat pricing. Its published deployment model connects centralized configuration to SSO and an internal AI gateway, and the company says Enterprise does not store code or context data. Customers using their own AI gateway are not charged OpenCode token fees. Go model data handling varies by provider, including different retention and training terms. Free models have a quota of 200 requests per day.

Limitations and how it compares

OpenCode depends on external model quality, provider availability, and inference spending. Shell and file access require permission rules, review, and suitable isolation. Aider offers a narrower MIT terminal pair-programming loop and fewer client surfaces. Continue focuses on open-source IDE assistance, while GitHub Copilot provides a more established proprietary procurement path and managed service. Cline emphasizes interactive coding assistance inside supported editors. OpenCode is the stronger choice for developers who want terminal and desktop clients, provider selection, local session data, and optional hosted inference. Teams that prioritize one managed model, formal commercial support, or an existing GitHub administration stack may prefer Copilot. Developers wanting a compact terminal workflow may find Aider easier to adopt.

Main features

  • Terminal coding agent. Inspects repositories, edits files, runs shell commands, and presents generated changes through the terminal interface.
  • Desktop clients. Provides beta desktop builds for Apple Silicon and Intel macOS, Windows x64 and ARM64, and Linux.
  • Provider account management. Lets users add, switch, rename, and remove provider accounts, including direct providers and OpenCode services.
  • Read-only planning. The plan agent analyzes code, denies edits by default, and requests permission before running Bash commands.
  • Session controls.
  • Plugin and SDK APIs. Exposes SDK, HTTP event, and plugin contracts for building integrations around sessions, tools, permissions, and providers.

Self-hosting OpenCode

Install with the shell installer, npm, Bun, pnpm, Yarn, Homebrew, Arch, Nix, WinGet, or published binaries. The documented local client does not require PostgreSQL, Redis, or object storage. It stores sessions and credentials locally, then calls a selected provider directly or uses an internal gateway. Enterprise adds centralized configuration and SSO integration. The project publishes no minimum CPU, memory, or storage requirements. Back up local data and configuration, pin versions for production use, and test plugins before upgrades because version 2.1 changed SDK, HTTP event, and plugin contracts.

Strengths

  • MIT licensing permits commercial deployment, modification, and redistribution.
  • The same project covers terminal sessions, desktop clients, and SDK integrations.
  • Users can select direct providers, OpenCode services, or an internal AI gateway.
  • The plan agent defaults to read-only analysis before changes are authorized.

Drawbacks

  • Model quality and spending depend on selected providers or OpenCode usage plans.
  • The 2.1 release changed public SDK, HTTP event, and plugin contracts.
  • Shell and file access can create security risk without careful permissions and review.

What teams replace with it

Teams usually evaluate OpenCode when they want to move off GitHub Copilot, Cursor, Claude Code.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to OpenCode

Frequently asked questions

Is OpenCode free?

The OpenCode client is MIT licensed and can be used without a software subscription. Model inference still creates costs through a direct provider, Console, or another gateway. OpenCode Go costs $10 monthly, and Go Plus costs $40 monthly. Console uses token billing, while Enterprise uses custom per-seat pricing. Free models include a quota of 200 requests per day.

Can companies use OpenCode commercially?

Yes. The MIT license permits commercial use, modification, private deployment, and redistribution, provided applicable notices remain intact. Companies can connect direct provider accounts or an internal AI gateway. Enterprise adds centralized configuration and SSO integration, with custom per-seat pricing and no OpenCode token charge when a customer uses its own gateway. The client has no licensing restrictions on ownership claims.

How do I self-host OpenCode?

Install the client with the shell installer, npm, Bun, pnpm, Yarn, Homebrew, Arch, Nix, WinGet, or a binary. Local use requires a supported computer and a provider account or gateway, not PostgreSQL, Redis, or object storage. The project publishes no minimum hardware specification. Back up local data and pin versions before upgrades. Enterprise can connect centralized configuration to SSO and an internal gateway.

How does OpenCode compare with Aider?

Both support terminal-based repository work with external model providers. Aider presents a smaller pair-programming workflow focused on editing through the terminal. Choose Aider for a compact terminal loop and OpenCode for broader client and integration requirements across local sessions and hosted inference.

Does OpenCode send code to its servers?

Direct provider requests go to the selected provider. Console requests use OpenCode infrastructure. OpenCode Enterprise says code and context data are not stored, and it supports an internal AI gateway with centralized configuration and SSO. Go model handling varies by provider. Some listed models have zero-day retention, some retain data for 30 days, and selected models may use prompts and completions for training.

Similar projects to compare

Sources

Last updated 2026-10-22.