OpenCode v2.2.0
OpenCode v2.2.0 adds experimental Desktop plugins you can create, install and share, a refreshed desktop app, experimental image and decision-model generation APIs for plugins and the SDK, and per-provider prompt cache TTLs. It also has breaking changes for SDK users and removes the OpenCode GitHub Action.
Why it matters
For developers using the open-source OpenCode coding agent or building plugins for it. Plugin authors get new hooks, and anyone using the SDK or the GitHub Action needs to update their setup.
What's new
- Desktop plugins (experimental): create, install and share plugins for the desktop app.
- Plugins can attach and update keyed session instructions (`ctx.session.instructions.entry.put/list/remove`) as small updates at the next step, which keeps the prompt cache intact; the entries survive compaction and reverts.
- Experimental image and decision generation APIs for plugins and the SDK, plus configurable prompt cache TTLs per provider or model.
- Breaking: the `@opencode/ai` package root now exports the Promise API, with the Effect API moved to `@opencode/ai/effect`; TUI plugins now require OpenTUI 0.7.
- Breaking: the OpenCode GitHub Action is no longer published and should be removed from workflows.
Taken from the project's own release notes. Claims about speed or accuracy are the maker's unless stated otherwise.
Worth knowing: Breaking changes for SDK imports, TUI plugins on OpenTUI 0.6, and workflows that use the OpenCode GitHub Action; read the release notes before upgrading.
Quick facts
| Pricing | Free; you pay your chosen model provider |
|---|---|
| Free or paid | Free (open source) |
| License | MIT |
| Language | TypeScript |
| Platform | Terminal on macOS, Linux and Windows (via npm, Homebrew, mise, Nix and others); desktop app (beta) for macOS, Windows and Linux |
| GitHub stars | ★ 222,192 (as of 2026-10-27) |
| Maker | anomalyco (GitHub) |
Links
- Official site: https://opencode.ai
- Repository: https://github.com/anomalyco/opencode
- Release notes: https://github.com/anomalyco/opencode/releases/tag/v2.2.0
- Docs: https://opencode.ai/v2/docs
Related ranking
See how established tools compare in Best AI Coding Tools for Developers. New releases aren't scored until we review them against the rubric.
Checked 2026-10-27 from the release notes's own pages. Prices and star counts change, so confirm on the official site. Listing here is not a ranking or an endorsement.
One email a week on AI that saves business owners time
Every Friday: one tool pick with the business use case, what changed in tools you already use, and the week's AI news in plain English. No spam.
Free. Unsubscribe any time. See our privacy policy.