opencode

Open-source terminal coding agent that runs on whichever model you point it at.

opencode is MIT-licensed and model-agnostic: you supply the API key, it supplies the agent loop. That makes it the usual answer for people who do not want the tool and the model vendor to be the same decision. It has become the most-starred open-source coding agent, which matters mainly as a signal that the plugin and config ecosystem around it is active.

Nobody arrives at opencode by accident. You are here because something made vendor independence a requirement — a policy against single-vendor dependency, a need to switch models per task, or a bill you want to own directly. The cost is rarely stated up front: nobody has tuned the prompts for the model you picked, so quality varies more between setups than it does with a first-party tool, and you will spend configuration time you would not have spent elsewhere.

Our take

The right default when vendor independence is an actual requirement rather than a preference — you can move to a different model without changing how you work. The cost of that freedom is that nobody has tuned the prompts for the model you chose, so quality varies more between setups than it does with a first-party tool. Budget some time for configuration you would not spend elsewhere.

Last checked 2026-09-02

Best for

  • Teams with a policy against depending on a single model vendor
  • Anyone routing work between models by cost or capability
  • Self-hosted or air-gapped setups with a local model endpoint

Limitations

  • Quality depends heavily on which model you point it at
  • More configuration than a first-party tool before it feels good
  • You pay model costs directly, so budgeting is on you

When to pick something else

  • People who want it to work well without reading any configuration docs
  • Teams without anyone to own model selection and cost
  • Anyone who would rather have one vendor to hold accountable

Key features

  • Bring your own model; not tied to one vendor
  • MIT licensed, self-hostable workflow
  • Terminal-native, scriptable
  • Active plugin and configuration ecosystem

opencode alternatives

If opencode is not the right fit, these solve similar problems.

opencode alternatives →