Catalog · AI

OpenCode

OpenCode is an open-source AI coding agent that runs in the terminal, with a desktop app and web interface as alternatives. The tool itself is free under MIT, but it needs an AI model: you connect a hosted provider or a local model server such as Ollama or LM Studio. OpenCode's own service offers some hosted models free for a limited time; paid plans are optional.

Code Fireworks render of the OpenCode repository, as of Nov 2026
As of Nov 2026Code Fireworks ↗

Why it fits

The agent is free and open source and runs on your own machine. Whether your use is entirely free and self-run depends on the model: local models keep everything on your hardware, free hosted models cost nothing but send code to a provider, and paid providers are optional.

Screenshot of OpenCode
Screenshot: Screenshot from the OpenCode repository, MIT · terms · source

Getting started

4 steps · clarity 4/5

Prerequisites (from the official docs):

  • A modern terminal on macOS, Linux or Windows (a desktop app is also offered)
  • An AI model. OpenCode itself is free, but it does nothing without one. Options: (a) some hosted models offered free by OpenCode for a limited time (terms and the list can change); (b) a local model server such as Ollama, LM Studio or vLLM, which needs strong hardware (plenty of RAM or GPU memory) to be practical; (c) optional paid providers or OpenCode subscriptions
  • A project directory with your code

Steps:

  1. Install OpenCode with the official install script, Homebrew or npm, as shown in the docs.
  2. Start opencode in your project directory.
  3. Connect a provider with /connect, or configure a local model server such as Ollama.
  4. Pick a model with /models and start working in the terminal UI.

Official docs (current version): https://opencode.ai/v2/docs/

Models and local providers: https://opencode.ai/v2/docs/models/

Notes

Model dependence: per the official docs, OpenCode works with many hosted providers and discovers local models from Ollama, LM Studio and vLLM automatically. In practice, local models work but need strong hardware (enough RAM or GPU memory for the model) to be pleasant to use. OpenCode's own model service lists several models as free "for a limited time" (for example Big Pickle, GLM-5.3-Flash Free and DeepSeek V4.1 Flash Free at the time of checking); availability, regions and data handling differ per model (some providers use the free period to collect feedback, others state zero retention; some, such as Crouton Alpha Free and Pulse Alpha Free, are not available in the European Union), and the list can change at any time. Free models can be hidden with OPENCODE_DISABLE_FREE_MODELS=1. OpenCode Console (pay-as-you-go) and OpenCode Go (subscription) are optional. The current docs describe OpenCode 2 (opencode.ai/v2/docs); OpenCode 1 docs remain at opencode.ai/docs. Not tested with a model provider here.

Sources

  1. opencode.ai
  2. github.com/anomalyco/opencode/blob/dev/LICENSE
  3. github.com/anomalyco/opencode/blob/dev/README.md
  4. opencode.ai/v2/docs
  5. opencode.ai/v2/docs/models
  6. opencode.ai/v2/docs/console/models
  7. opencode.ai/v2/docs/console/go
  8. opencode.ai/docs/providers
  9. opencode.ai/brand
← Back to the catalog