Changes Made
- Runs on OpenCode 2 with the sidebar panel, toasts, compact line, prompt bar and slash commands rebuilt on OpenCode 2's plugin API, via #196, thanks @dmmop and @ransagy, with testing and diagnosis from @christian-taillon and @gdevenyi, closes #229.
- Inside OpenCode, logins come from OpenCode 2's official login API and expired tokens renew themselves; the terminal command reads logins read-only from OpenCode's database and works with OpenCode closed, thanks @ransagy, closes #182.
- Token reports read OpenCode 2's session history, via #196, thanks @ransagy, closes #291.
- TUI slash commands open a popup with a single title,
/quotagrouped into quota and spending tables, and tables that fill the popup width (full column names when there is room), never start an AI turn, and don't flash in the chat or open a new session from Home, closes #296, closes #272. - The sidebar, status line and popups use OpenCode's theme colors: bold titles, muted labels and accent-colored table headers.
- OpenCode Zen and Go use the OpenCode Console sign-in (
opencode auth login opencode); Zen shows the organization budget, or this month's spend when there is no limit, based on #294, thanks @vmvarela and @ransagy. - Token reports use clearer section titles such as "Model breakdown" and "Models without pricing".
- Cursor works with
cursor-opencode-provider, Gemini CLI and Google AGY work with their OpenCode 2 login plugins, and Cursor model prices are updated. - GitHub Copilot shows the plan GitHub reports, via #196, thanks @dmmop.
initandupdatedetect OpenCode 1 and keep it on@4, andinitsetup reminders link to the right provider guide sections.
New Features
- Web and Desktop get the quota slash commands: the report appears in the chat, the AI never answers it, and it is kept out of AI requests, closes #114. Native Web/Desktop panels need anomalyco/opencode#43132.
- Every OpenCode login for a provider gets its own rows,
(active)marks the one OpenCode uses when there are several, and headers keep the provider name, via #196, thanks @dmmop and community contributors. - Kimi Code has separate global and China plans, via #196, thanks @dmmop.
Breaking Changes
- Requires OpenCode
2.0.16+ and Node.js^22.13.0 || >=23.4.0for the terminal command. On OpenCode 1, use@slkiser/opencode-quota@4. - OpenCode's
auth.jsonis no longer read; OpenCode 2 copies it once, so log in again in OpenCode 2 if a provider is missing. - OpenCode Zen no longer uses the cookie file or
OPENCODE_WORKSPACE_ID/OPENCODE_AUTH_COOKIE. initno longer writestui.json,tuiCommandDisplaynow defaults to"dialog", andtuiCompactStatus.suppressWhenNativeProviderQuotais removed.- Cursor and Google AGY need their OpenCode 2 login plugins (
cursor-opencode-provider,@anthonyhaussman/opencode-agy-auth@alpha).
Full Changelog: v4.10.5...v5.0.0