Repository navigation
Releases
Releases · slkiser/opencode-quota
v6.3.0
Changes Made
- The GUI quota panel no longer stays on
not checked yet: OpenCode's app calls to the plugin (snapshot, Home notice, refresh, settings) all answered400, via #462, thanks @niheaven - OpenCode Go: a Console sign-in without a Go plan adds no Go line instead of "Unexpected reply". OpenCode Zen: the "Provider error 404" is gone, and the monthly budget row reads the Console's current budgets, via #469 and #481, thanks @niheaven, closes #438, #460
- After /reload, a plugin update or opening another folder, a provider's rows come back at the next check (within about a minute) instead of after up to 5 minutes, via #470, closes #456
- With TUI tabs from two folders, sessions no longer stay on "Loading quota…" after switching between the folders, via #471, closes #455
- On OpenCode Desktop 2.2.6 and newer, Desktop keeps the Quota side panel narrow and remembers the width you drag it to; a Quota width set before carries over once, via #476, closes #435
- Settings say "free space" where they said "free room", and the layout presets are named compact, normal and large; saved settings read the same, via #468
- Kimi Code shows its monthly quota rows, and a window reported both under limits and as a usages ratio shows once, via #479, thanks @neyasbltb88, closes #452
- Alibaba Coding Plan reads the CLI's JSON reply from its error output, including a pretty-printed one, and the sign-in hints name the
BAILIAN_*keys (bailian-cli 2.8.0+), via #480, thanks @niheaven - Antigravity quota requests name AGY CLI 1.5.8, matching opencode-agy-auth 1.5.8, via #464, closes #427
- Cost estimates price 7 more models: Claude Fable 5.2, Gemini 4 Carbon and Hydrogen, Gemma 4 26B and 31B, ChatGPT Image latest and GPT Image 1.5, via #466; Cursor prices Claude Fable 5.2 and DeepSeek V4.1 Flash and counts them in the API allowance row, via #474, closes #433
New Features
- The Limits tab shows how long ago each provider was last checked successfully, for example "checked 4 min ago": per provider in the TUI's /quota window and on each card in the GUI, via #472, closes #431, #434
- New provider Command Code: a 5h row and a Weekly row with reset times when OpenCode has a Command Code key, via #473, closes #250
- OpenAI accounts with Codex credits show a "Codex credits" row (the exact balance, or "Unlimited credits"). New opt-in provider Claude API shows the prepaid balance of a Claude Console API organization, set up with
ANTHROPIC_CONSOLE_COOKIE, via #475, thanks @pnpwin - A custom provider definition can set
minIntervalMs: automatic checks of that definition wait at least that long and keep its last rows; a manual refresh and /quota_status check at once, via #477, closes #428 - The Usage tab and /quota_usage show a Requests total that follows the selected provider, via #478, thanks @ils15, closes #442
Full Changelog: v6.2.2...v6.3.0
v4.10.13
Changes Made
- Antigravity quota requests name AGY CLI 1.5.8, matching opencode-agy-auth 1.5.8, via #467
- Cost estimates price 7 more models: Claude Fable 5.2, Gemini 4 Carbon and Hydrogen, Gemma 4 26B and 31B, ChatGPT Image latest and GPT Image 1.5, via #465
Full Changelog: v4.10.12...v4.10.13
v6.2.2
Changes Made
- Alibaba Token Plan on Windows: a
blinstalled withbun install -g bailian-clino longer opens a new console window on every quota check, via #430, thanks @Bearmancer, closes #429
Full Changelog: v6.2.1...v6.2.2
v6.2.1
New Features
- Desktop: a separate switch for the quota pill above the message box (
statusLine.composerPill, Pill above the message box in Settings > Quota). Turn it off to keep only the bottom status strip. closes #425
Full Changelog: v6.2.0...v6.2.1
v6.2.0
Changes Made
- With OpenCode TUIs open in more than one folder on the same background service, the sidebar's Session line keeps updating; each TUI now uses only its own folder's quota updates (a regression since v6.0.0), closes #405
- GUI settings: the Reset times examples match what each style shows
- Lighter over long days: sessions you left more than 5 minutes ago stop receiving every quota update, session token totals are reused between nearby refreshes instead of recounted, and OpenCode's config files are read once per quota check
- The npm package is about 40 KB smaller (no TypeScript declaration maps)
New Features
- New Reset times choice
"percent"(words.reset): the share of the window's time left next to the quota left, then the time to reset in its largest unit, e.g.0%/91% 28d. Withwords.percent: "used"it shows time used; when the window's start is unknown, only the time, closes #357
Full Changelog: v6.1.0...v6.2.0
v4.10.12
Changes Made
- The sidebar and status line refresh a couple of times per burst of messages instead of twice per message, and keep refreshing during long replies
- Session token totals are reused between nearby refreshes instead of recounted each time
- A provider that fails is asked again after its retry time or 30 s, instead of on every refresh, on every system
- Rendered toasts no longer pile up in memory over many sessions
- The npm package is about 44 KB smaller (no TypeScript declaration maps)
Full Changelog: v4.10.11...v4.10.12
v6.1.0
New Features
- Experimental OpenCode Desktop plugin (OpenCode 2.2.0+): a Quota side tab, pills, a bottom strip, toasts, a usage window (Quota command) and a settings page. Turn it off in Settings → Extensions → Plugins. Via #392
- Optional pace-based bar colors:
colors.levelBy: "pace"colors each bar by how fast you use that limit, via #350, thanks @leinardi - Alibaba Token Plan and Coding Plan read their quota from Alibaba's official
blCLI, also on Windows. Token Plan shows every window it reports (5h, Hourly, 3h, 2d, Monthly) and one Credits row per team seat; Coding Plan shows 5h, Weekly and Monthly. Via #348 and #366, thanks @niheaven, and #367, thanks @Bearmancer, closes #362 - Claude quota works with OpenCode's built-in
claude-agentprovider, including Enterprise plans, via #365, thanks @StephanDollberg, closes #370, and with OpenChamber'sclaude-codeprovider, via #356, thanks @ransagy
Changes Made
- Claude plans with no 5-hour limit (Ultra) or no weekly limit (Enterprise) show their rows instead of an error, via #375, thanks @Pr0xS, closes #374
- On Windows, a
claudefound through PATH or a.cmdfile works again, via #378, thanks @ransagy, closes #377 - Fewer Claude usage checks: plugin copies share one check, and a good reply is reused for up to a minute, via #373, thanks @davdroman, closes #372
- With
words.percent: "used", bars fill by the share used, the ┃ mark flips with them, and the word shows once in the title, via #380, thanks @danieliyahu1, closes #379 - Turning off Even-use mark also hides it in the Limits window, via #387, closes #381
- The session tokens line shows cached input again, via #376, thanks @vmvarela, closes #364
- The status line under the message box no longer stays blank when OpenCode's folder name is long, via #391
- Google AGY finds logins saved under the
googleid and the companion's new entry file, via #369, thanks @Bearmancer, closes #368, and follows AGY companion 1.4.12, via #385, closes #351 - Built and tested against OpenCode 2.2.5; older OpenCode 2 versions still work, via #389
Breaking Changes
- Alibaba Coding Plan no longer uses a local estimate, and its
providers.customtuning is gone. Log in withbl auth login --consoleto see its quota.
Full Changelog: v6.0.0...v6.1.0
v4.10.11
Changes Made
- Claude plans with no 5-hour limit (Ultra) or no weekly limit (Enterprise) now show their rows, including Fable and Usage Credits, instead of an error. Same fix as v6 #375, thanks @Pr0xS, via #388 and #393
- On Windows, a
claudefound through PATH or a.cmdfile works again. Same fix as v6 #378, thanks @ransagy - Fewer Claude usage checks: plugin copies share one check, and a good reply is reused for up to a minute, which cuts "too many requests" errors. Same fix as v6 #373, thanks @davdroman
- Alibaba's
bltool no longer checks for its own updates on every run, so Alibaba quota loads faster. Same fix as v6 #367, thanks @Bearmancer - Google AGY follows the AGY companion 1.4.12, and the plugin is built and tested against OpenCode 1.19.5, via #386
Full Changelog: v4.10.10...v4.10.11
v6.0.0
Changes Made
- All settings live in one file,
opencode-quota/settings.jsonc, and the new window edits it live. Your 5.x and 4.x global settings convert on the first start;/quota_statuslists what was converted. /tokens_*commands become/quota_usage <range>(today,24h,7d,30d,90d,all,session,between). The old names keep working; switch them off with Old command names on the Plugin tab./quota_announcementsmoves to the Plugin tab./pricing_refreshbecomespon the Usage tab, and prices older than 7 days download on their own.- New defaults: the status line shows only when the sidebar is off screen, a toast follows a reply only once a limit is getting low, no toast follows a question, toasts use the grouped layout (
toast.layout: "detailed"is the 5.x look), and every bar has the even-use mark. - OpenRouter shows this month's spend instead of all-time spend.
- Every provider uses the same error words ("Sign in again", "Rate limited, retry in 5m", "Timed out"…), and a provider's Retry-After sets the wait before the next check.
- DeepSeek and Ollama Cloud show each stored API key as its own account.
- The Usage tab names each provider as OpenCode does, for example "Z.AI Coding Plan" instead of
zai-coding-plan. - Windows: Claude checks no longer flash a console window, closes #343. Quota results are cached on Windows too, so a refresh no longer asks Claude again each time, closes #344.
- Switching workspace or panel reloads the plugin without forgetting the last check, so Claude's rate-limit wait carries over instead of looping, closes #339.
- Custom providers: dollar values show like built-in money (
$0.31,$1,234.57), andusdin any case counts as dollars, closes #336. - Cursor: prices follow cursor-opencode-provider 0.8.5. GPT-5.4, GPT-5.5 and GPT-5.6 requests over 200k tokens, and the
-1mversions of those and of Claude Haiku 5.5 and Fable 5 / 5.1, now have a price, closes #341. - Google Antigravity: quota requests match opencode-agy-auth 1.4.7, and model-specific Gemini groups such as Gemini 4 Argon stay separate, closes #335.
- The bundled OpenTelemetry API stays on 1.9.x, so a host's quota metrics keep working with
@opentelemetry/sdk-metrics2.x. - Bundled prices are refreshed.
- Includes every fix in 5.0.3.
New Features
/quotaopens a window above the message box with Usage, Limits and Plugin tabs, plus Settings tabs (Layout, Colors, Providers) that change the sidebar, collapsed sidebar, status line and toasts as you edit./quota_usage,/quota_statusand/quota_settingsopen it on their tab.- Usage tab: cost or tokens, by model or by day, model details, and a Cache column that warns when a model with 200K+ input tokens reads less than half of them from the cache. The sidebar shows the same warning under the session line.
- The sidebar, status line and toasts say "runs out in" when a limit, used at your pace, runs out before it resets. The even-use mark shows where even use would be (Even-use mark on Layout → All places).
- Pick which window to show (for example 5h or weekly) once for all providers.
con the Limits tab copies the limits as text.- Ask your agent to add, test or remove a custom provider.
Breaking Changes
- Needs OpenCode
2.0.26or newer. - Project settings files (
<your-repo>/opencode-quota/quota-toast.jsonc) are no longer read;/quota_statuslists any it finds. - The
init,updateandprovider addterminal commands are gone. Useopencode plugin add @slkiser/opencode-quota,opencode plugin update, or ask your agent to add a custom provider.showandstatusstay. - JSON output and the export file use schema version
3. Scripts that read version2may need changes; see External integration. - Chutes AI, NanoGPT, Synthetic and Kilo Gateway are no longer built in. Settings that name them still load. Add them as a custom provider; see Providers.
Full Changelog: v5.0.3...v6.0.0
v4.10.10
Changes Made
- Synthetic: plans without a 5-hour limit show their weekly window instead of "missing rollingFiveHourLimit quota window", via #342, closes #340
- Windows: Claude checks no longer flash a console window, and quota results are cached on Windows too, so a refresh no longer asks Claude again each time or gets stuck on "rate limited". A cached Claude rate-limit error clears when its wait ends or a retry succeeds, via #347 (#343, #344)
- Google Antigravity: model-specific Gemini quota groups such as Gemini 4 Argon stay separate, via #334, and quota requests match opencode-agy-auth 1.4.7 via #347 (#335)
- The bundled OpenTelemetry API stays on 1.9.x, so a host's quota metrics keep working with
@opentelemetry/sdk-metrics2.x.
Full Changelog: v4.10.9...v4.10.10