
OpenCode
OpenCode is an open-source AI coding agent for developers who want terminal-native, model-flexible coding assistance. It can run in the terminal, desktop app, VS Code-style IDEs, ACP-compatible editors, and GitHub workflows.
Choose OpenCode when you want an open, terminal-native coding agent with broad provider choice, local model support, and GitHub workflow automation. Choose a hosted AI IDE or commercial coding assistant instead if you want a more polished out-of-the-box editor experience, bundled billing, or heavy team administration.

Pricing Plans
Open Source
MIT-licensed open-source coding agent. Users can install and run OpenCode locally with their own model credentials.
Bring Your Own Model
Use external LLM providers through API keys, GitHub Copilot login, ChatGPT Plus/Pro login, local models, or OpenAI-compatible endpoints.
OpenCode Zen
Optional curated model gateway with per-token pricing and usage limits for teams or individuals.
OpenCode Go
Optional subscription for reliable access to selected open coding models, designed especially for international users.
Enterprise
Per-seat enterprise plan with centralized config, SSO integration, internal AI gateway routing, and implementation support.
Core Features
1Terminal-first agent
- Interactive TUI for asking questions, planning work, editing files, and running project tasks.
- Build and Plan agents separate implementation from read-only exploration.
- Supports multiple sessions and parallel agent workflows.
2Model flexibility
- Supports 75+ LLM providers through AI SDK and Models.dev.
- Can use local models and OpenAI-compatible endpoints.
- Supports GitHub Copilot and ChatGPT Plus/Pro login paths where configured.
3Editor and desktop options
- Available as terminal interface, desktop app, and IDE extension.
- VS Code, Cursor, Windsurf, VSCodium, and terminal-based IDE workflows are supported.
- ACP support enables integration with compatible editors.
4Code intelligence
- LSP integration gives the agent diagnostics and project-aware feedback.
- File references and current editor context can be shared from supported IDE workflows.
- Plugins, commands, skills, and agents can customize behavior.
5GitHub automation
- Use /opencode or /oc comments in GitHub issues and pull requests.
- Runs inside GitHub Actions runners.
- Can triage issues, implement changes, create branches, and submit pull requests.
Pros
- Open source and highly configurable.
- Works with many providers instead of locking users into one model vendor.
- Supports local models for privacy-sensitive or cost-controlled workflows.
- Terminal-first UX fits developers who already live in the command line.
- Can extend into VS Code-style IDEs, desktop, GitHub Actions, and ACP-compatible editors.
- Enterprise mode supports centralized configuration and internal AI gateways.
Cons
- Requires more setup and model/provider decisions than closed hosted agents.
- Quality depends heavily on the chosen model and provider.
- Not primarily an inline autocomplete tool.
- Desktop and IDE experiences may feel less mature than the core terminal workflow.
- BYOK and pay-as-you-go usage can be hard to predict without limits.
- Shared session links are public to anyone with the link and should be disabled for sensitive work.
Why Choose OpenCode?
OpenCode is most compelling for developers who like the Claude Code style of terminal-native agentic coding but do not want their workflow tied to one model vendor. Its core advantage is optionality: hosted providers, OpenCode Zen, OpenCode Go, GitHub Copilot, ChatGPT subscriptions, local models, and OpenAI-compatible endpoints can all fit into the same agent workflow.
That makes it a strong choice for developers who actively compare models, care about cost control, or need a path toward internal AI gateways. It also means the product is more configurable than fully hosted commercial tools. The upside is control; the tradeoff is that the user must think about model quality, credentials, privacy boundaries, and usage limits.
Core Workflow
A practical OpenCode workflow starts inside a real project directory. The developer launches the TUI, asks the agent to inspect the codebase, switches between planning and building modes, and reviews the resulting changes before committing or running tests. For unfamiliar codebases, the read-only Plan agent is especially useful because it can explore before touching files.
The workflow becomes stronger when paired with project instructions, commands, plugins, LSP diagnostics, and explicit file references. OpenCode should not be treated as a one-shot code generator. It works better as an iterative collaborator: inspect, plan, modify, run checks, review diffs, and repeat.
Use Cases
OpenCode fits day-to-day coding tasks such as feature implementation, bug fixing, test generation, refactoring, dependency upgrades, and codebase exploration. It is also useful for teams that want agentic coding inside GitHub issues and pull requests, because the GitHub integration can run inside GitHub Actions runners and operate from /opencode or /oc comments.
It is less suited to non-technical prompt-to-app building. A founder looking for a browser-based app generator may prefer Lovable, Bolt.new, or Replit AI. A developer who wants inline completions may prefer GitHub Copilot, Cursor, Windsurf, or Supermaven-style tools. OpenCode is best understood as an agentic coding environment, not a no-code product builder or autocomplete plugin.
Comparison to Alternatives
Compared with Claude Code, OpenCode's main differentiator is openness and provider choice. Claude Code offers a polished Anthropic-centered experience; OpenCode offers a more flexible agent shell that can route to many models and providers.
Compared with Aider, OpenCode feels more like a modern terminal agent platform: it emphasizes a TUI, multi-session workflows, Plan and Build agents, LSP support, GitHub automation, ACP integration, and optional desktop/IDE surfaces. Aider remains a strong Git-native pair-programming CLI, especially for developers who like direct file editing and commit-oriented workflows.
Compared with Cursor or Windsurf, OpenCode is less of a complete editor replacement. It is more portable, more open, and easier to combine with existing terminal habits, but it will not feel as integrated as a full AI IDE for users who expect autocomplete, code navigation, chat panels, and inline UI controls in one editor.
Best Configuration
The best setup starts with choosing the right model path. Use high-quality frontier models for difficult architecture and refactoring tasks, cheaper open models for routine changes, and local models when privacy or offline constraints matter more than maximum coding ability. Configure monthly limits when using Zen or other usage-based providers.
For teams, the best configuration is policy-driven. Decide which providers are approved, whether /share is allowed, how API keys are managed, whether OpenCode should route through an internal AI gateway, and which repositories can be used with external models. Enterprise teams should centralize config and disable unapproved providers instead of relying on every developer to configure the tool correctly.
Migration Notes
Developers moving from Claude Code should review project instructions, custom commands, MCP configuration, and shell workflows. The migration is conceptually straightforward because OpenCode also uses agent instructions, terminal sessions, and tool access, but provider configuration and permission behavior should be tested carefully before using it on important repositories.
Teams moving from IDE-first tools should run a pilot rather than switching immediately. Compare OpenCode on one debugging task, one refactor, one test-writing task, and one GitHub issue workflow. The right metric is not only whether the model produces correct code; it is whether OpenCode fits the team's review, security, cost, and developer-habit constraints.
Best For
- Terminal-first developers
- Open-source AI coding workflows
- Claude Code alternatives
- BYOK model routing
- Local model experiments
- Developers who want to switch between multiple LLM providers
- GitHub issue and pull request automation
- Teams that want internal AI gateway control
- Developers using VS Code, Cursor, Windsurf, or VSCodium with terminal-based agents
- Cost-sensitive users who want optional open-model subscriptions
Not Ideal For
- Users who want a fully managed proprietary AI IDE with minimal setup
- Non-developers building apps from prompts
- Developers whose main need is inline autocomplete
- Teams that require polished enterprise admin dashboards out of the box
- Users who do not want to manage provider credentials, model selection, or usage limits
- Highly sensitive projects using public share links or unapproved external providers
Privacy Notes
OpenCode states that it does not store code or context data by default, with processing happening locally or through direct API calls to the selected AI provider. The main exception is the optional /share feature, which uploads conversation data to OpenCode-hosted share pages and creates public links. Privacy depends on provider choice, local model usage, enterprise gateway routing, share settings, and whether sensitive files, secrets, or production data are included in context.
Alternatives
Sources
- OpenCode official website
- OpenCode documentation
- OpenCode GitHub repository
- OpenCode models documentation
- OpenCode Zen pricing
- OpenCode Go documentation
- OpenCode GitHub workflow documentation
- OpenCode IDE documentation
- OpenCode ACP support
- OpenCode enterprise documentation
- OpenCode share documentation
- OpenCode privacy policy
Update History
- Jun 14, 2026: Created entry with current OpenCode positioning, open-source status, Zen and Go pricing options, model/provider support, IDE and ACP support, GitHub workflow automation, enterprise controls, and privacy caveats.
Related Tools
More listings in a similar part of the directory.
OpenCode Articles
Guides, comparisons, and launch notes connected to this listing.






