No description
  • QML 77.4%
  • JavaScript 21.5%
  • Shell 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-06 13:37:03 -04:00
fixtures second commit 2026-11-06 13:37:03 -04:00
package second commit 2026-11-06 13:37:03 -04:00
install.sh second commit 2026-11-06 13:37:03 -04:00
README.md first commit 2026-11-06 13:36:32 -04:00

AI Quotas — Plasma 6 widget

Shows per-provider AI quota windows (% left, reset countdown, pace) using the quota-axi CLI's --json output. Works in a panel (compact % + popup) and on the desktop (full view).

Install

./install.sh

Then right-click the desktop or panel → Add Widgets… → AI Quotas.

Remove with kpackagetool6 -t Plasma/Applet -r org.kde.plasma.quotaaxi.

How it works

Every Refresh every minutes the widget runs

quota-axi --json --max-age <N>s [--no-credential-refresh] [--provider …]

--max-age lets several widget instances share one vendor read. Refresh Now (header button or context menu) passes --max-age 0s. Countdowns tick locally every 30 s without re-running the CLI.

~/.npm-global/bin, ~/.local/bin and ~/bin are added to PATH, since plasmashell often starts without them. Otherwise set the full command path in the settings (~/ is allowed).

Settings

Setting Default
quota-axi command quota-axi
Refresh every 5 min
Reuse readings younger than 60 s
Providers all set up
Panel shows provider with least left
Show providers not set up off
Never refresh expired vendor sessions off
Display → hidden providers / entries none hidden

Right-click the widget for the standard menu (Refresh Now, Configure, Edit Mode, Remove…). Hiding in Display settings only affects the view; the Providers field in General limits the CLI query itself (--provider).

A provider's overall % stays based on all its windows, so hiding the limiting window does not inflate the number. Hidden entries use provider/window-id keys (e.g. claude/five_hour, claude/model:fable).

Testing

plasmawindowed org.kde.plasma.quotaaxi       # after install
plasmoidviewer -a package                    # from plasma-sdk

To try it against fixed data, set the command to a script that runs cat /path/to/fixtures/sample.json.