OpenCode v2.2.7
OpenCode v2.2.7 adds a GitHub Copilot Auto model option, new tab shortcuts and read/unread marks for sessions, and fixes MCP logins that signed users out when refresh tokens rotated.
Why it matters
For developers who run OpenCode with GitHub Copilot or remote MCP servers, this release cuts down on surprise sign-outs and lets Copilot's own router pick the model for each session.
What's new
- GitHub Copilot Auto: choose Auto in the model picker when the Copilot account has an Auto pool, and Copilot's router picks the model per session; OpenCode falls back to the account's default chat model if routing fails.
- Remote MCP servers that rotate refresh tokens no longer sign you out when several clients refresh at once, and a brief token-endpoint failure no longer marks the server needs_auth.
- The read tool accepts a negative offset (for example -50 for the last 50 lines) and suggests close file names when a path isn't found.
- Shell results now end with an exit code line, and timeouts say how long they waited.
- Breaking changes: @opencode/ai removes ImageResponse.image (use response.images[0]), and several SDK endpoints no longer wait for plugins to finish loading.
Taken from the project's own release notes. Claims about speed or accuracy are the maker's unless stated otherwise.
Worth knowing: Includes breaking changes for code that imports @opencode/ai or the SDK directly.
Quick facts
| Pricing | Free (bring your own model provider or subscription) |
|---|---|
| Free or paid | Free (open source) |
| License | MIT |
| Language | TypeScript |
| Platform | Terminal (TUI), desktop app and SDK |
| GitHub stars | ★ 225,802 (as of 2026-11-10) |
| 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.7
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-11-10 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.