# OpenCode

Open-source coding agent with terminal, desktop and web interfaces, supporting hosted and local model providers.

- Company: Anomaly
- Category: Coding & Developer Tools
- Business model: Open (open weights/source)
- Availability: unknown
- Launched: Not recorded
- Tags: ai-coding, coding-agent, cli, open-source, local-models
- Website: https://opencode.ai/
- Documentation: https://opencode.ai/v2/docs
- Pricing page: Not recorded
- License: MIT
- Canonical URL: https://globalaiproductindex.com/products/opencode/
- Record updated: 2026-11-02

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.

## 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.

## FAQ

**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.

## Sources

- [Official product and model-cost FAQ](https://opencode.ai/)
- [V2 documentation and supported downloads](https://opencode.ai/v2/docs)
- [V2 provider configuration](https://opencode.ai/v2/docs/providers/)
- [V2 experimental HTTP API](https://opencode.ai/v2/docs/api)
- [V1 to V2 migration guide](https://opencode.ai/v2/docs/migrate-v1/)
- [Official source repository](https://github.com/anomalyco/opencode)
- [Repository MIT licence text](https://github.com/anomalyco/opencode/blob/dev/LICENSE)

---
Data from the [Global AI Product Index](https://globalaiproductindex.com/), licensed CC BY 4.0.
