Skip to content

About

Windows taskbar widgets and a macOS menu-bar app that show how much of your weekly Claude and Codex allowance is used, and when it runs out at your pace.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

63 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Weekly Usage Widgets

Tests Latest release Website Windows 10 and 11 macOS 13+ GNOME 42-49

See how much of your weekly Claude, Codex and Antigravity allowance is used, and when it runs out at your current pace, right on the Windows taskbar. A native macOS menu-bar app covers Claude on a Mac, and a GNOME top-bar extension covers all 3 on Linux. Everything runs on your own computer: no server, no telemetry, nothing to sign up for.

Website · Download the latest release · Mac version · Linux (GNOME) · Changelog

Claude usage card: 55% left this week, pace box saying On pace and when it would run out, weekly and 5-hour limit bars Codex usage card: 10% left this week, credits line, red pace box saying Too fast with the run-out time, weekly limit bar

Claude pill on the taskbar: ring at 55%, '55% claude' over 23h until the reset Codex pill on the taskbar: ring at 10% with an orange border, '10% codex' over 5d 1h

Quick start

  • Windows: download ai-usage-taskbar-widgets.zip, unzip it, double-click Install Claude widget.cmd, Install Codex widget.cmd and/or Install Antigravity widget.cmd. Details in Install.
  • macOS 13+: clone this repo and run ./macos/install.sh in Terminal. Details in macos/README.md.
  • Linux (GNOME 42–49): clone this repo and run sh linux/install.sh. Details in GNOME top bar (Linux).

What you get

  • A pill on the taskbar. A ring shows the share of the weekly allowance used, with the time until the weekly reset (or today's budget). The edge turns orange or red when little is left.
  • A card on hover. On Windows it is exactly 80% of the screen wide and 80% tall, in 2 columns from 760 DIP wide; the chart grows into any spare height. It shows the share used and 2 pace boxes (side by side on a wide screen), Pace this week and Pace this 5-hour session: On pace, Cutting close or Too fast, with the time each limit runs out at your current rate (No session when no 5-hour session is running). It also has a bar for every limit (weekly, 5-hour session, every per-model limit) with its reset time in local time ("Resets Tue 23:15") and its change over the last 24 hours, a burn-up chart of the week with day names and the reset marked, plus credits or extra usage when your plan has them. Click the pill to pin the card and refresh it.
  • Alerts. Windows notifications fire at 75% and 90% used, when the limit is reached, and when you are on track to run out before the reset. Thresholds are adjustable, and alerts can be snoozed for 1 hour, until tomorrow morning or until the weekly reset.
  • A right-click menu. It has Refresh now, Open usage page, Sign in again, Snooze alerts, Alerts, Pill shows, Refresh every, Compact pill, Show details (the full pace breakdown), Show on every taskbar, Reset position, Start with Windows, Open data folder, Uninstall, About (version and website) and Exit.
  • Light and dark themes, following Windows. Per-monitor DPI. The pills hide while a full-screen app is in front. On the shared top strip the strip places every Solarity widget's pill in 1 fixed order (Claude, then Codex, then Antigravity, right to left), so the pills never hop; drag a pill there to change the order. On the taskbar, drag the main pill sideways to move it; the Codex pill sits next to the Claude pill, and the Antigravity pill next to the Codex pill (or the Claude pill).
  • Antigravity's 2 pools. Antigravity has 2 separate allowances. The ring, the main weekly bar and the 5-hour bar show the Gemini pool; the Claude and GPT pool gets its own 2 rows on the card (Claude and GPT · week and Claude and GPT · 5 hours).

The Claude card in the light theme Right-click menu with refresh, sign-in, snooze, alerts and display settings

Requirements

  • Windows 10 or 11, with the built-in Windows PowerShell 5.1. Nothing to install, no admin rights.
  • Claude widget: Claude Code signed in on this PC with a Claude subscription (Pro, Max, Team or Enterprise).
  • Codex widget: the Codex app or CLI signed in on this PC with a ChatGPT plan.
  • Antigravity widget: Antigravity signed in and running on this PC. The widget asks Antigravity's own local language server, so while Antigravity is closed the card keeps the last reading, marked as not up to date, and says to open Antigravity (with no reading yet the pill says open Antigravity).

Install any of the widgets; they are independent.

On a Mac? The Claude widget also comes as a native menu-bar app: see macos/README.md. The Codex and Antigravity widgets are not on macOS.

On Linux with GNOME? See GNOME top bar (Linux).

Install

  1. Download ai-usage-taskbar-widgets.zip from the latest release, or claude-usage-widget.zip or codex-usage-widget.zip for just one widget. Unzip it anywhere. To check the download, compare Get-FileHash with the release's SHA256SUMS.txt.
  2. In the unzipped folder, double-click Install Claude widget.cmd, Install Codex widget.cmd and/or Install Antigravity widget.cmd. If Windows asks whether to run a file from the internet, choose Run (or More info → Run anyway).

Prefer a terminal? Open the unzipped folder in one: on Windows 11, right-click an empty spot and choose Open in Terminal; on Windows 10, hold Shift, right-click an empty spot and choose Open PowerShell window here. Then run the installer for each widget you want:

powershell -NoProfile -ExecutionPolicy Bypass -File .\claude-usage-widget\install.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File .\codex-usage-widget\install.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File .\antigravity-usage-widget\install.ps1

Each installer copies the widget to %LOCALAPPDATA%\ClaudeUsageWidget (or CodexUsageWidget, AntigravityUsageWidget). It adds a Startup shortcut, a Start menu entry and a per-user watchdog task (every 5 minutes it restarts the widget if it stopped or hung, but never after Exit or with Start with Windows off), starts the widget, and checks that live data arrives. Running it again updates the widget in place and keeps your settings. An update keeps the installed version until the new one has started: if the update fails part-way, or the new widget does not stay running, the previous version is put back and restarted. -ExecutionPolicy Bypass applies to that one command only; it changes no system setting.

Updates: the installer adds a daily 00:00 check, the per-user task "Claude usage widget release update" (or "Codex …", "Antigravity …"). It installs a new release when there is one, after checking it against SHA256SUMS.txt, and keeps your settings. If the PC is off at 00:00, it runs at the next sign-in or wake. Its log is %LOCALAPPDATA%\Solarity\widget-updates\claude-usage-widget\update.log. Turn it off with the command below (running the installer again turns it back on):

schtasks /Delete /TN "Claude usage widget release update" /F

Uninstall

Right-click a pill → Uninstall…, or run:

powershell -NoProfile -ExecutionPolicy Bypass -File .\claude-usage-widget\uninstall.ps1

This stops that widget and removes its watchdog task, daily release check, folder, Startup shortcut and Start menu entry. Add -KeepData to keep settings and history. Your Claude, Codex or Antigravity sign-in is never touched.

GNOME top bar (Linux)

A GNOME Shell extension (linux/, GNOME 42–49) puts 1 pill in the top bar with a cell per tool: the share of the weekly allowance used, red at 90%. Claude's cell is always there; the Codex and Antigravity cells appear when their folder exists in your home. Click the pill for a card with each tool's week, then open a tool's details for the same rows as the macOS menu: the 2 pace rows (On pace, Cutting close, Too fast, No session), a bar for every limit with its reset time, extra usage or credits, and when it was updated. The menu also has Refresh now, Refresh every (1, 2, 5 or 10 minutes), an Alerts at 75% and 90% used switch (GNOME notifications, also when the limit is reached or the week is on track to run out), Open data folder and the version.

Linux source Status
Claude ~/.claude/.credentials.json (or CLAUDE_CONFIG_DIR), then api.anthropic.com/api/oauth/usage As on macOS; an expired sign-in is renewed by Claude Code (claude -p "/usage", at most every 10 minutes)
Codex ~/.codex/auth.json (or CODEX_HOME), then chatgpt.com/backend-api/wham/usage Without a ChatGPT sign-in it reads the newest limits in ~/.codex/sessions/; the Codex CLI app-server backup and Sign in again are not ported
Antigravity ~/.gemini/antigravity/daemon/hub_<port>.json, then its language server on 127.0.0.1 Unconfirmed on Linux: the path is the Windows one; if Antigravity keeps it elsewhere, its cell does not appear (unavailable)

Install from a clone (no root needed):

sh linux/install.sh

The installer copies the extension to ~/.local/share/gnome-shell/extensions/aiusage@solarity-ai (a converted copy on GNOME 42–44) and enables it; on Wayland, log out and back in once. sh linux/uninstall.sh removes it and its settings and history in ~/.config/aiusage (settings.json, history.json, alerts.json). Tokens are read per poll, sent only to the vendor's endpoint (Antigravity's only to 127.0.0.1), and never saved, logged or passed on a command line. GNOME starts enabled extensions, so there is no Start at login or Quit; gnome-extensions disable aiusage@solarity-ai turns it off.

How it works and what it reads

Each widget runs a small collector script in a hidden PowerShell process every 1–2 minutes (adjustable).

Claude Codex Antigravity
Sign-in it reads %USERPROFILE%\.claude\.credentials.json (or CLAUDE_CONFIG_DIR) %USERPROFILE%\.codex\auth.json (or CODEX_HOME) none: the running app's %USERPROFILE%\.gemini\antigravity\daemon\hub_<port>.json (its local port and per-run token)
Usage it asks for api.anthropic.com/api/oauth/usage chatgpt.com/backend-api/wham/usage Antigravity's language server on 127.0.0.1 (RetrieveUserQuotaSummary)
Backup source Claude Code's own /usage command (claude -p "/usage"), when the service rate-limits, errors or is unreachable the Codex CLI's app-server, when the sign-in is rejected none: the last reading, marked as not up to date, with a note to open Antigravity
Expired sign-in Claude Code renews it (claude -p "/usage") right-click → Sign in again (codex login) sign in inside Antigravity
  • Tokens are read only inside the collector, sent only to the vendor's own usage endpoint, and never logged, cached or passed as command-line arguments. The Antigravity collector sends its local token only to 127.0.0.1 and never leaves the PC.
  • The widget never signs in, refreshes or edits your credential files itself; renewal and sign-in go through the official CLIs.
  • Rate limits and server errors back off automatically (from 2 minutes up to 30); the last reading is shown, marked as not up to date.
  • Local files live in %LOCALAPPDATA%\<widget>:
    • settings.json (the menu's choices; a hand edit applies at the next refresh, and an edit that can't be read keeps the last good settings and says so in the card)
    • history.json (15 days of % used and reset times, which drive the pace forecast)
    • alerts.json
    • widget.log
    • a 60-second usage cache

The usage endpoints are the ones the Claude, Codex and Antigravity apps use themselves. They aren't public APIs and may change; when one does, the widget says so instead of showing wrong numbers.

The pace forecast compares your use with even use over the week. It takes your speed over the last 2–6 hours (or the week's average), works out when the allowance runs out at that speed, and calls it Too fast when that is before the reset. It is an estimate from readings on your PC, not an official forecast.

Troubleshooting

  • Nothing appears after installing. Run the installer again and read its last lines; it checks the process, the window and the data. widget.log in the widget's folder (right-click → Open data folder) has the details.
  • "Sign-in needed". Right-click → Sign in again. This opens the official CLI's sign-in; the widget refreshes when that window closes.
  • "Not up to date" for a while. The usage service is rate limiting. The widget retries by itself; right-click → Refresh now forces a try.
  • Antivirus quarantined a script. Restore it from quarantine, or run the installer again; it reinstalls only what is missing.
  • Installed from an app's built-in terminal (for example the Claude desktop app). Some app terminals redirect %LOCALAPPDATA% into a private sandbox. The installer notices and re-runs itself through a temporary Windows scheduled task, so the widget lands in your real profile and starts with Windows.

Develop

The three widgets share one codebase. claude-usage-widget\ is the source. In codex-usage-widget\ and antigravity-usage-widget\, everything except the collector (codex-usage.ps1, antigravity-usage.ps1) and the product block at the top of the widget is generated:

Command What it does
powershell -NoProfile -ExecutionPolicy Bypass -File tools\sync.ps1 Regenerates the Codex and Antigravity widgets, installers, uninstallers and watchdogs from the Claude ones, and copies the release updater shared\widget-release-update.ps1 into each widget folder; checks that every script parses and has a UTF-8 BOM
powershell -NoProfile -ExecutionPolicy Bypass -File tools\package.ps1 Builds the release zips and checksums in dist\; checks that the version matches CHANGELOG.md
powershell -NoProfile -ExecutionPolicy Bypass -File tools\verify.ps1 What CI runs: tests\run-tests.ps1, then tools\lint.ps1 (lint is skipped with a warning when PSScriptAnalyzer is missing locally)
powershell -NoProfile -ExecutionPolicy Bypass -File tests\run-tests.ps1 The tests alone: sync.ps1 -Check, the version and packaging check, the release updater test (tests\widget-release-update-test.ps1), then the 3 test suites (simulated: fake sign-ins, CLIs and a fake local Antigravity server, no network)
powershell -NoProfile -ExecutionPolicy Bypass -File tests\run-tests.ps1 -Suite Claude The same shared checks, then only the Claude suite (-Suite Codex or -Suite Antigravity for the others)
powershell -NoProfile -STA -ExecutionPolicy Bypass -File claude-usage-widget\claude-usage-widget.ps1 --render <folder> [--monitor <W>x<H>] [--work-area <W>x<H>] [--scales <n>,<n>] PNG renders of the pill (100%, 150%, 200%) and the card (125%, or each of --scales) for fixture readings in both themes, the card sized for a monitor of W x H DIP (default 1536x960) with a work area of W x H DIP (default 1536x872), plus render.txt and card-sizes.txt (each card's size and whether it was clipped); draws nothing on screen and writes nothing to the widget's folder
powershell -NoProfile -STA -ExecutionPolicy Bypass -File claude-usage-widget\claude-usage-widget.ps1 --probe [<file.json>] Runs the collector once with -Diagnostics and reports the settings file, exit code, time, reading and diag:/warn: lines as JSON (stdout without a file); exit 0 for a fresh reading, 5 otherwise
powershell -NoProfile -ExecutionPolicy Bypass -File tools\lint.ps1 PSScriptAnalyzer with PSScriptAnalyzerSettings.psd1 (CI runs it too); needs Install-Module PSScriptAnalyzer -RequiredVersion 1.25.0 -Scope CurrentUser once

Edit the Claude files, run tools\sync.ps1, then tools\verify.ps1. Exit an installed widget (right-click › Exit) before running tests from a checkout. Scripts must stay compatible with Windows PowerShell 5.1 and saved as UTF-8 with BOM.

The macOS app lives in macos/ (Swift, built with the Command Line Tools, no Xcode). Run these on a Mac:

Command What it does
./macos/build.sh Builds macos/build/Claude Usage.app with swiftc
./macos/test.sh Builds the app, then runs its self-tests, the version check and one-shot readings against a local mock of the usage endpoint (details)

The GNOME extension lives in linux/ (GJS, no build step). sh linux/tests/run-docker.sh runs its tests in Docker on Debian trixie (GNOME 45+, libsoup 3) and Ubuntu 22.04 (GNOME 42, libsoup 2.4): the parsers, pace and alert rules, the readers against a fake home and a local mock of the 3 usage services (no network), the GNOME 42–44 conversion and the installer; PNG renders land in linux/tests/out/.

CI: every pull request runs the Windows test check unless it changes only macos/. Pull requests that change macos/ or CHANGELOG.md also run the macOS app check (./macos/test.sh on a macOS runner).

Releasing a version:

  1. Raise $script:Version in claude-usage-widget\claude-usage-widget.ps1, appVersion in macos/Sources/Core.swift and version-name in linux/gnome-extension/aiusage@solarity-ai/metadata.json, and add a section for it at the top of CHANGELOG.md.
  2. Run tools\sync.ps1 and tests\run-tests.ps1, then merge.
  3. Tag the merge commit v<version> and push the tag.

The Release workflow tests again, builds the zips and SHA256SUMS.txt (tools\package.ps1), and publishes the release with that version's changelog section as its notes.

License

Free to download and use, personally or inside your organization, under the Solarity AI Use License. Selling, redistributing or publishing modified versions needs written permission from Solarity AI LLC.

Not affiliated with Anthropic, OpenAI or Google; Claude, Codex, Antigravity and Gemini are their respective trademarks.

About

Windows taskbar widgets and a macOS menu-bar app that show how much of your weekly Claude and Codex allowance is used, and when it runs out at your pace.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages