OpenCode
An open source AI coding agent available as a terminal interface, desktop app, and IDE extension that supports 75+ LLM providers including Claude, GPT, and Gemini.
At a Glance
About OpenCode
OpenCode is an open source AI coding agent built by Anomaly, available under the MIT License. It runs in the terminal, as a desktop application, and as an IDE extension, letting developers work with AI assistance across their preferred environment. The project is hosted at github.com/anomalyco/opencode and the homepage reports over 160,000 GitHub stars, 900 contributors, and 13,000+ commits.
What It Is
OpenCode is a terminal-first AI coding agent that integrates directly into a developer's workflow without requiring a separate web interface. It connects to 75+ LLM providers through Models.dev — including Claude, GPT, Gemini, and local models — and also supports logging in with GitHub Copilot or ChatGPT Plus/Pro accounts to reuse existing subscriptions. The core product is open source under the MIT License, meaning the full source code is freely available to use, modify, and distribute.
How It Works
OpenCode ships with two built-in agents switchable via the Tab key:
- Build mode — the default, full-access agent for active development work
- Plan mode — a read-only agent for analysis and code exploration that denies file edits by default and asks permission before running bash commands
A general subagent handles complex searches and multistep tasks internally and can be invoked with @general in messages. The tool automatically loads the appropriate Language Server Protocol (LSP) configurations for the LLM, enabling context-aware code assistance. Developers can run multiple agents in parallel on the same project using multi-session support.
Deployment and Installation
OpenCode installs via a one-line curl script, npm/bun/pnpm/yarn, Homebrew (macOS and Linux), Chocolatey or Scoop (Windows), Arch Linux pacman/AUR, Mise, Nix, or Docker. A desktop application in beta is available for macOS (Apple Silicon and Intel), Windows, and Linux (.deb, .rpm, AppImage). The install script respects $OPENCODE_INSTALL_DIR, $XDG_BIN_DIR, and $HOME/bin for custom installation paths.
Privacy Architecture
OpenCode does not store any code or context data, which the enterprise page states allows it to operate in privacy-sensitive environments. The enterprise offering adds SSO integration and internal AI gateway support for organizations that want to deploy it at scale. No licensing restrictions or ownership claims are made on code produced with the tool.
Update: v1.18.1
The latest release as of July 2026 is v1.18.1, published on July 14, 2026. The project is under active development on the dev branch with frequent releases. A notable recent product addition is Tabs for Desktop, introduced to organize work and active sessions in the desktop beta app. The homepage also highlights OpenCode Zen, a curated set of AI models that the team has tested and benchmarked specifically for coding agents, available as a managed model access layer for users who want validated, consistent performance without managing provider API keys directly.
Open Source Adoption Signal
The homepage reports over 160,000 GitHub stars, 900 contributors, and 7.5 million monthly developers — figures published by the vendor. The GitHub repository shows 185,898 stars and 23,246 forks as of the latest crawl, with 4,672 open issues, reflecting a large and active community. The README is translated into 22 languages, indicating broad international adoption.
Community Discussions
Be the first to start a conversation about OpenCode
Share your experience with OpenCode, ask questions, or help others learn from your insights.
Pricing
Open Source
Fully open source under MIT License. Free to use, modify, and distribute. Bring your own API keys or use existing AI subscriptions.
- Full terminal TUI interface
- Desktop app (beta)
- IDE extension
- 75+ LLM providers
- GitHub Copilot login
Enterprise
Enterprise deployment with SSO integration, internal AI gateway support, and team management. Contact sales for pricing.
- SSO integration
- Internal AI gateway support
- No data or context stored
- No licensing restrictions or ownership claims
- Team trial and organization-wide deployment
Capabilities
Key Features
- Open source under MIT License
- Terminal-based TUI interface
- Desktop app (beta) for macOS, Windows, Linux
- IDE extension support
- 75+ LLM providers via Models.dev
- GitHub Copilot login support
- ChatGPT Plus/Pro login support
- Local model support
- LSP auto-configuration for LLMs
- Multi-session parallel agents
- Plan mode (read-only) and Build mode
- Session sharing via share links
- Undo/redo changes
- Image drag-and-drop into prompts
- AGENTS.md project initialization
- Custom themes and keybinds
- Custom commands
- Code formatter configuration
- No code or context data stored
- Enterprise SSO and AI gateway integration
- OpenCode Zen curated model access
- Tabs for desktop sessions

