OpenCode
Open source coding agent that runs in the terminal, desktop, IDE or phone and connects to 200+ model providers.
OpenCode is an open source AI coding agent distributed by Anomaly (the Homebrew tap is named anomalyco/tap/opencode-v2). It is positioned as a free, open alternative to Claude Code: the code is public, can be modified and run locally, and the agent is not tied to a single model vendor. The official site describes it as "the open source coding agent" and states it is trusted by 22M+ developers.
The product ships in several forms. A terminal UI (TUI) works in any shell, editor or remote server and installs via curl, npm, bun, Homebrew or paru. A desktop app for macOS (Apple Silicon and Intel), Windows (x64 and ARM64) and Linux (.deb,.rpm and AppImage, x64 and ARM64) adds sessions, tabs, diffs, a built-in browser and extensions.
There are IDE extensions for VS Code and Cursor, a mobile app for iPhone (TestFlight) and Android (Google Play), and an SDK for driving OpenCode from your own scripts, CI jobs and tools.
Model access is the core design decision. OpenCode connects to 200+ LLM providers through Models.dev, including OpenAI, Anthropic, GitHub Copilot and local models. The source page lists free built-in models such as GLM-4.7, MiniMax-M2.1, GPT-5 Nano and Big Pickle, so a new user can start without an account. Paid provider keys are billed by each provider separately.
Agent behaviour is configurable rather than fixed. Users can run multiple sessions in parallel on the same project, write plugins that hook into events, connect local and remote MCP servers to give agents new tools, define custom agents with their own prompts, models and tools, and teach reusable workflows through SKILL.md agent skills.
Repetitive tasks can be turned into slash commands, and a permissions layer decides which actions run automatically and which need approval. An /undo command rolls back recent file and conversation changes.
The source page stresses privacy: code and data are not stored, which suits privacy-sensitive teams. The main caveats are practical. You supply your own provider keys and pay each provider's rates and quotas, and the mobile rollout is uneven — iOS is on TestFlight while Android is listed on Google Play on the official site but described as not yet available in the source review.
Our take
OpenCode is the most credible open answer to Claude Code for developers who refuse to be locked into one vendor. The pitch is concrete: one agent, four entry points (terminal, desktop, IDE extension, SDK), 200+ providers through Models.dev, and free built-in models so you can evaluate it before spending anything. Parallel sessions, MCP servers, custom agents and SKILL.md workflows cover the features teams actually ask for after the first week, and the permissions layer plus /undo make autonomous edits less frightening on a real repository.
The trade-off is that OpenCode is a bring-your-own-model tool. You configure keys, you track spend across providers, and quality varies with whichever model you attach — the free models are fine for triage and small edits, not for the hardest refactors. Mobile is also uneven: iOS is on TestFlight, and the source review says Android has not shipped, even though the official site links a Google Play listing. Choose OpenCode if you want an open, hackable agent and are comfortable managing model access; choose a hosted agent if you want billing and support in one place.
What it does
- Terminal UI: A fast command-line interface that runs in any shell, editor or remote server, installed via curl, npm, bun, Homebrew or paru.
- Desktop app: Sessions, tabs, diffs, a built-in browser and extensions on macOS, Windows and Linux, with.deb,.rpm and AppImage builds.
- IDE extensions: Plugins for VS Code and Cursor that bring the agent into the editor you already use.
- Model flexibility: 200+ LLM providers through Models.dev, including OpenAI, Anthropic, GitHub Copilot and local models, plus free built-in models.
- Multi-session: Run several agents in parallel on the same project from one workspace.
- MCP servers: Connect local and remote MCP servers to give agents additional tools.
- Custom agents and skills: Define specialised agents with their own prompts, models and tools, and teach reusable workflows with SKILL.md files.
- Plugins and commands: Write plugins that hook into events, and turn repetitive tasks into slash commands.
- Permissions and undo: Choose which actions run automatically, which need approval, and roll back recent file and conversation changes with /undo.
- SDK and mobile: Drive OpenCode from scripts and CI jobs via the SDK, or start, steer and approve sessions from the iOS or Android app.
Best for
- Developers who want an open source alternative to Claude Code they can inspect, modify and self-host.
- Teams that already pay for model access through OpenAI, Anthropic or GitHub Copilot and want one agent across those providers.
- Privacy-sensitive projects where code and data must not be stored by the tool.
- Engineers who work primarily in the terminal or on remote servers.
- Developers running several tasks at once who need parallel agent sessions on one repository.
Not ideal for
- Users who do not want to obtain and manage their own provider API keys and billing.
- Teams that need a fully managed, single-invoice hosted service with vendor support.
- Android users who need a stable mobile client today, given the iOS-first TestFlight rollout described in the source review.
- Organisations that require a formal enterprise contract and published pricing before adoption.
Pros
- Open source and locally runnable, so the agent can be audited and modified.
- Four entry points — terminal, desktop, IDE extension and SDK — plus mobile apps.
- Free built-in models let you start without an account or a paid key.
- Model-agnostic: 200+ providers through Models.dev, including local models.
- Strong agent controls: parallel sessions, MCP servers, custom agents, SKILL.md skills, permissions and /undo.
Cons
- You configure provider keys yourself, and each provider bills its own fees and quotas.
- Output quality depends heavily on the model you attach; free models are limited for hard work.
- Mobile coverage is uneven, with iOS on TestFlight and Android availability disputed between sources.
- No published pricing for the paid OpenCode Go option in the sources reviewed.
Pricing and facts
| Pricing model | Freemium · from Free |
|---|---|
| Free tier | Yes, free built-in models such as GLM-4.7, MiniMax-M2.1, GPT-5 Nano and Big Pickle, with no account needed to start |
| Pricing detail |
|
| Platforms | macOS, Windows, Linux, iOS, Android, VS Code, Cursor, terminal, SDK |
| Developer | Anomaly |
| Website | https://opencode.ai/?utm_source=aibookmarks.net |
| Last reviewed | 2026-11-26 |
Example prompt
Read this repository, summarise the architecture in five bullets, then propose a plan to add rate limiting to the public API without changing any files yet.Alternatives to OpenCode
Questions about OpenCode
What is OpenCode?
OpenCode is an open source AI coding agent distributed by Anomaly (the Homebrew tap is named anomalyco/tap/opencode-v2). It is positioned as a free, open alternative to Claude Code: the code is public, can be modified and run locally, and the agent is not tied to a single model vendor. The official site describes it as "the open source coding agent" and states it is trusted by 22M+ developers.
The product ships in several forms. A terminal UI (TUI) works in any shell, editor or remote server and installs via curl, npm, bun, Homebrew or paru. A desktop app for macOS (Apple Silicon and Intel), Windows (x64 and ARM64) and Linux (.deb,.rpm and AppImage, x64 and ARM64) adds sessions, tabs, diffs, a built-in browser and extensions.
There are IDE extensions for VS Code and Cursor, a mobile app for iPhone (TestFlight) and Android (Google Play), and an SDK for driving OpenCode from your own scripts, CI jobs and tools.
Model access is the core design decision. OpenCode connects to 200+ LLM providers through Models.dev, including OpenAI, Anthropic, GitHub Copilot and local models. The source page lists free built-in models such as GLM-4.7, MiniMax-M2.1, GPT-5 Nano and Big Pickle, so a new user can start without an account. Paid provider keys are billed by each provider separately.
Agent behaviour is configurable rather than fixed. Users can run multiple sessions in parallel on the same project, write plugins that hook into events, connect local and remote MCP servers to give agents new tools, define custom agents with their own prompts, models and tools, and teach reusable workflows through SKILL.md agent skills.
Repetitive tasks can be turned into slash commands, and a permissions layer decides which actions run automatically and which need approval. An /undo command rolls back recent file and conversation changes.
The source page stresses privacy: code and data are not stored, which suits privacy-sensitive teams. The main caveats are practical. You supply your own provider keys and pay each provider's rates and quotas, and the mobile rollout is uneven — iOS is on TestFlight while Android is listed on Google Play on the official site but described as not yet available in the source review.
Is OpenCode free?
OpenCode is freemium. Yes, free built-in models such as GLM-4.7, MiniMax-M2.1, GPT-5 Nano and Big Pickle, with no account needed to start
What is OpenCode best for?
Developers who want an open source alternative to Claude Code they can inspect, modify and self-host.; Teams that already pay for model access through OpenAI, Anthropic or GitHub Copilot and want one agent across those providers.; Privacy-sensitive projects where code and data must not be stored by the tool.; Engineers
What are alternatives to OpenCode?
Alternatives reviewed on this site: Cline, Lovable, Agent.Space.
Listed in Vibe Coding Agents. Something out of date? Tell us.