Tracks your AI usage limits for Claude (Anthropic) and Codex/ChatGPT (OpenAI) and displays remaining percentages in your desktop panel. Available for both GNOME Shell and KDE Plasma.
- Session and weekly usage tracking for Claude and Codex
- Color-coded progress bars (green / yellow / red) based on remaining percentage
- Configurable panel label: show minimum across all, or a specific window
- Desktop notifications when usage drops below 20%
- Auto-refresh every 3 minutes with manual refresh option
- Dark theme with modern card-based popup design
- GNOME Shell 45–49, or KDE Plasma 5 / 6
- Active Claude and/or Codex accounts with OAuth credentials on disk:
- Claude:
~/.claude/.credentials.json - Codex:
~/.codex/auth.json
- Claude:
These credential files are created automatically when you sign in to the respective CLI tools (Claude Code, Codex CLI).
-
Download the latest
brainusage@altairinglorious.shell-extension.zipfrom Releases -
Install via terminal:
gnome-extensions install --force brainusage@altairinglorious.shell-extension.zip
-
Restart GNOME Shell:
- Wayland: log out and log back in
- X11: press
Alt+F2, typer, press Enter
-
Enable the extension:
gnome-extensions enable brainusage@altairinglorious
git clone https://github.com/AltairInglorious/brainusage.git
cd brainusage
bash scripts/gnome/pack.sh
bash scripts/gnome/install.sh
# Restart GNOME Shell (see above), then:
bash scripts/gnome/enable.sh-
Download the
.plasmoidmatching your Plasma version from Releases:- Plasma 6:
brainusage-plasma6.plasmoid - Plasma 5:
brainusage-plasma5.plasmoid
- Plasma 6:
-
Install it:
# Plasma 6 kpackagetool6 --type Plasma/Applet --install brainusage-plasma6.plasmoid # Plasma 5 kpackagetool5 --type Plasma/Applet --install brainusage-plasma5.plasmoid
-
Add the widget: right-click your panel or desktop → Add Widgets → search Brain Usage.
git clone https://github.com/AltairInglorious/brainusage.git
cd brainusage
bash scripts/kde/install.sh # auto-detects Plasma 5 vs 6 and installs the matching variantBuilding the KDE widget requires
bun(used to bundle and transpile the shared core to ES2015 for the QML engine).
Once enabled, a percentage indicator appears in the top panel. Click it to see a detailed breakdown:
- Session and Weekly usage for each provider
- Progress bars with color-coded status
- Time until each window resets
- Next automatic update countdown
On GNOME, open the popup and select Panel display; on KDE, right-click the widget → Configure → Panel label. Choose what the panel label shows:
| Mode | Description |
|---|---|
| All (minimum) | Lowest percentage across all windows |
| Claude Session | Claude session usage only |
| Claude Weekly | Claude weekly usage only |
| Codex Session | Codex session usage only |
| Codex Weekly | Codex weekly usage only |
bun test # Run unit tests (shared core)
bash scripts/gnome/pack.sh # Pack GNOME extension zip
bash scripts/gnome/install.sh # Install GNOME extension locally
bash scripts/kde/pack.sh # Build both .plasmoid packages
bash scripts/kde/install.sh # Install KDE widget for the running Plasma
journalctl --user -f /usr/bin/gnome-shell # GNOME live logs
journalctl --user -f plasmashell # KDE live logsThe platform-agnostic core lives in shared/; GNOME and KDE each vendor it at build time. See CLAUDE.md for architecture and KDE-specific notes.
MIT