OpenCode
by Anomaly
At a glance
Open-source coding agent with terminal, desktop and web interfaces, supporting hosted and local model providers.
ai-coding coding-agent cli open-source local-models
- Licence
- MIT
- Category
- Coding & Developer Tools
- Business model
- Open (open weights/source)
- Availability
- Not recorded
- Launched
- Not recorded
Overview
OpenCode is an open-source coding agent from Anomaly for working on existing repositories and writing code with a model provider of your choice. The current V2 documentation covers terminal, desktop and web interfaces, with downloads for macOS, Windows and Linux. Providers can be hosted services or local runtimes such as Ollama, LM Studio and vLLM. The code is MIT-licensed, while model access has separate terms and costs. Before switching from V1, check the migration guide: plugin contracts, the server API and terminal configuration changed. Local model support alone does not establish an entirely offline workflow.
Compare this tool Suggest a correction
Key features
- Terminal, desktop and web entry points for coding tasks
- Provider configuration for hosted models and local runtimes
- Separate planning and implementation agent roles
- An experimental V2 HTTP API for controlling agent instances
Use cases
- Explore an unfamiliar repository before changing it
- Implement or refactor code while choosing the model provider
- Integrate coding-agent sessions into developer tooling
Pricing
The core software is free under MIT. The vendor advertises some free model options and optional paid model services; external provider usage or subscriptions can cost extra. Software access does not include unlimited paid-model inference.
Record details
Provenance, dates and links are kept here so the main sections stay about the product itself.
Links, dates and provenance
- Record updated
- 2026-11-02
- Documentation
- opencode.ai ↗
- Canonical URL
- https://globalaiproductindex.com/products/opencode/
Selection profile
Every field says where its value comes from. "Unknown" means we have not confirmed it — it does not mean the product lacks the feature.
Selection profile11 fields3 unknown
- Tasks it fits
- Writing new code Editing an existing codebase Running an agent from the terminal
Mapped from documented coding workflows; no product performance test was conducted.
Suggest a correction - How you use it
- Command line
Classified by the entry point used in this record; other documented surfaces are described in the overview.
Suggest a correction - Runs on
- Terminal Windows macOS Linux Web
The linked official documentation lists these supported surfaces or operating systems.
Suggest a correction - Where it runs
- Vendor cloud Local machine
Model execution depends on the selected provider; the documentation includes hosted services and local model runtimes.
Suggest a correction - Works offline
- Not recorded
A fully offline workflow was not established from the reviewed pages.
Suggest a correction - Official service region
- Not recorded
A comprehensive list of supported service regions was not established; model providers can impose separate restrictions.
Suggest a correction - Public API
- Yes
The V2 documentation publishes an experimental HTTP API for agent-instance control, separate from model-provider inference APIs.
Suggest a correction - Licence
- MIT
The linked repository licence grants MIT permissions for the repository code.
Suggest a correction - Commercial use
- Permitted
The repository licence permits commercial use subject to its notices; it does not grant rights to third-party models or services.
Suggest a correction - Interface languages
- Not recorded
The product interface languages were not established from the reviewed pages; translated documentation is not proof of interface support.
Suggest a correction - Billing
- Open source Free Usage-based Subscription Free allowance: Yes Subscription required: No
Prices are the vendor’s advertised entry price and exclude taxes; always confirm on the vendor’s own page.
Suggest a correction
Where each value comes from
- Tasks it fits
- Our inference
- How you use it
- Our inference
- Runs on
- Verified 2026-11-02 opencode.ai ↗
- Where it runs
- Verified 2026-11-02 opencode.ai ↗
- Works offline
- Unknown
- Official service region
- Unknown
- Public API
- Verified 2026-11-02 opencode.ai ↗
- Licence
- Verified 2026-11-02 github.com ↗
- Commercial use
- Verified 2026-11-02 github.com ↗
- Interface languages
- Unknown
Key facts and their evidence
Each fact lists the conditions it holds under, the page it was read from and the day it was checked.
-
Licence: MIT Verified 2026-11-02 github.com ↗
Applies to: Repository code; connected models and hosted services retain their own terms.
Suggest a correction -
Platform support: windows, macos, linux Verified 2026-11-02 opencode.ai ↗
Suggest a correction -
API: yes Verified 2026-11-02 opencode.ai ↗
Applies to: The V2 documentation publishes an experimental HTTP API for agent-instance control, separate from model-provider inference APIs.
Suggest a correction -
Pricing: Core software is free; optional model services can incur separate charges. Verified 2026-11-02 opencode.ai ↗
Suggest a correction
Frequently asked questions
Does OpenCode require a paid subscription?
No subscription is required for the core software. Model providers and optional hosted services can charge separately.
Can I use local models?
Yes. The provider documentation covers Ollama, LM Studio and vLLM. This record does not establish that every workflow works without internet.
Is V2 a drop-in replacement for V1?
Not in every area. The official migration guide identifies changes to plugins, the server API and terminal configuration; the two versions share the default command name.
Similar products
- Kilo Code — Open-source coding agent for VS Code, JetBrains and the terminal, with optional hosted model access and team services.
- Aider — Open-source command-line tool for AI pair programming that edits code in your local git repository.
- Amp — Agentic coding tool from Sourcegraph that runs locally or in remote orbs, writing and shipping code from the terminal, editors, web, and phone.
- Claude Code — Anthropic's agentic coding tool that works in the terminal, editing files, running commands, and completing tasks across a codebase.
- Gemini CLI — Google's open-source terminal agent that brings Gemini models to the command line for coding, research, and task automation.
- Muse Code — Meta's terminal-native coding agent, now generally available, that plans, edits, and coordinates multi-agent engineering work with Muse Spark models.
All OpenCode alternatives → · All Coding & Developer Tools products →
Related guides
Sources
- Official product and model-cost FAQ ↗
- V2 documentation and supported downloads ↗
- V2 provider configuration ↗
- V2 experimental HTTP API ↗
- V1 to V2 migration guide ↗
- Official source repository ↗
- Repository MIT licence text ↗
This record was last reviewed on 2026-11-02.
Machine-readable record: /api/products/opencode.json · Spot an error? Suggest a correction