Every AI plan and API account you pay for, on one screen - in your terminal. Plan quota, token volume, burn rate, time-to-reset, spend. Stdlib only.
pip install omnigauge==1.0.11 Copy PIP instructions
One gauge for every AI agent and API account you run. Plan quota · token volume · burn rate · exhaustion forecast · spend - in your terminal
One dashboard for every AI plan and API account you pay for - Claude Code, Codex, Grok, Aider, Goose, OpenAI, X, OpenRouter, Moonshot, DeepSeek - plan quota and token volume, side by side, in your terminal.
No keys for the part that matters - plan quota and token volume come from files those tools already write to your disk, and from each CLI's own quota panel. API dollar spend is optional and does need a key for whichever vendor you want it from: stored 0600, never passed as an argument, refused outright if the file is group- or world-readable. Leave spend off and no credential - and no network call - is involved at all. No telemetry either way.
Sample data - a rendering of the board as the terminal draws it (assets/readme-board.png), not a screenshot of anyone's machine.
The local-tracker space is well served - tokscale covers 50+ agents. Its own docs list what it does not do, and that list is this project's reason to exist:
The question every tracker answers is "how much have I used". The one that matters is "will I run out before it resets" - and answering it needs the quota series and the vendor's reset time together:
codex week ████████████████████▌ 98% 1.4%/h 1h 26m 5d 1h ▲ runs dry 4d 21h BEFORE the window resets Forecasting is deliberately conservative: two readings at least ten minutes apart or it says nothing, a detected reset truncates the series, and a flat or falling rate produces no estimate rather than a fabricated one.
The part the incumbents disclaim. omnigauge --check evaluates every window, notifies, and exits with a code so cron and CI can act on it:
omnigauge --check # 0 = fine · 1 = warning · 2 = will run dry early omnigauge --check --quiet # silent unless something fires WARNING: codex at 98% of its week window, resets in 5d 0h CRITICAL: codex runs dry in 1h 26m - 4d 21h BEFORE its window resets Every fifteen minutes, from cron:
*/15 * * * * $HOME/.local/bin/omnigauge --check --quiet >/dev/null 2>&1 Configure in ~/.local/share/omnigauge/alerts.json:
{ "pct_used": 85, "dry_before_reset": true, "notify": true, "webhook": "https://hooks.example.com/…", "quiet_hours": [23, 7] } Desktop notifications use whatever exists - notify-send, osascript, wsl-notify-send.exe - and failure is never fatal. A monitor that crashes the cron job it runs inside is worse than no monitor.
This is the whole design, and it is deliberate.
Codex reports percent remaining. Claude and Grok report percent used. Shown raw side by side, a Codex at "6%" looks healthier than a Claude at "23%" - when in fact Codex is nearly exhausted and Claude has three quarters left. OmniGauge normalizes everything to percent consumed and prints what the vendor actually said underneath, so you can check it.
Token volume is not the vendors' token count. Local transcripts record cache reads and per-turn context re-sends; vendors count something narrower. The figures differ by orders of magnitude and neither is wrong - they have different denominators. OmniGauge shows both kinds of number and never adds them together or reconciles them into one total.
Subscriptions have no dollar balance, so none is shown. Plan usage and API spend are different products; blending them into one "remaining" figure would be fiction.
pipx install omnigauge # from PyPI - Python 3.8+, no dependencies (Ubuntu/Debian: sudo apt install pipx first; bare pip is refused there by PEP 668) omnigauge --update # later: the latest release, with the tool that installed this one omnigauge --doctor # what is connected, what is missing, how to fix it omnigauge --refresh # pull your plan quota (~30s per agent) omnigauge # the board - press ? for keys From a clone instead: git clone https://github.com/omnigauge/omnigauge.git && cd omnigauge && ./install.sh
--doctor is the one to run first. It checks each agent CLI, tells you whether quota has ever been collected, shows which optional API credentials are set, and prints the exact next command for every gap. Nothing else needs to be memorised.
Transcripts do not have to live in ~. If yours sit on a dev SSD, a second profile, or anywhere else, point at the HOME-like directory that contains the stores (.claude, .codex, …): one path per line in ~/.local/share/omnigauge/roots, or OMNIGAUGE_ROOTS (path-separated). omnigauge --scan-roots hunts mounted drives for stores discovery is not already reading and prints the exact line to add.
Roots are scanned like a second home. When the drive is unplugged, the board and --check say its history is excluded this run - the numbers never just quietly shrink - and --doctor shows every root as mounted or missing.
Requires Python 3.8+ and tmux (only for quota scraping).
pipx install omnigauge # or: pip install omnigauge omnigauge --refresh From source: git clone https://github.com/omnigauge/omnigauge.git && cd omnigauge && ./install.sh (the file plus its provider mirrors, into ~/.local/bin and ~/.local/share/omnigauge/providers).
You stay logged in through your own CLIs - OmniGauge never sees or stores a credential. It only works for accounts you are already signed into on that machine.
Run it bare in a terminal and it is interactive - no flags to remember:
r refresh · w watch · t ink · s 24h · b full · ? help · q quit Key Does r refresh quota, all agents 1 2 3 refresh claude / codex / grok only w watch mode - auto redraw, and a quota re-scrape every 15m t cycle theme s cycle window (24h · 7d · 30d · today · all) b brief - hide lifetime and by-model l providers legend - what each source gets, and cannot d doctor y why this exists p privacy - what it refuses to do a about g donate ? key help q quit Piped, redirected or given any flag, it prints once and exits, so scripts are unaffected. --once forces that explicitly.
omnigauge # interactive board omnigauge --once # print and exit omnigauge --refresh # re-scrape quota from every installed CLI (~30s each) omnigauge --refresh claude # just one omnigauge --lifetime # all-time totals (incremental cache) omnigauge --since 7d # 24h | 7d | 30d | today | all omnigauge --watch # live redraw, 10s omnigauge --watch 5 --quota-every 10m omnigauge --json # machine-readable omnigauge --providers # the legend: what each source gets, could get, # and cannot get - with the reasons omnigauge --no-color Two clocks Token volume is read from local files (~2s) and can update every few seconds. Plan quota requires launching the vendor's TUI and reading its panel - ~30s per agent, and it spawns a real session - so it is cached and refreshed on a slow clock. Every quota row shows its own age, so a stale number looks stale, and the panel's foot says when quota was last scraped.
The rule, exactly: quota is re-scraped only by --refresh, the r / 1 2 3 / w keys, or --watch (every --quota-every, default 15m). A bare omnigauge board shows the last scrape and waits for a key; it does not re-scrape on its own. --check and --json read the last scrape too. If you want cron's verdicts fresh, scrape on the same schedule:
*/15 * * * * $HOME/.local/bin/omnigauge --refresh >/dev/null 2>&1 */15 * * * * sleep 120 && $HOME/.local/bin/omnigauge --check --quiet >/dev/null 2>&1 How it gets the numbers Agent Quota Tokens Claude Code /usage panel ~/.claude/projects/*/*.jsonl → per-message usage OpenAI Codex /status panel rollout info.total_token_usage Grok CLI /usage panel session updates.jsonl → totalTokens Goose - (key-based) sessions.db → usage_ledger, the vendor's own accounting Aider - (key-based) .aider.chat.history.md token lines, in the project roots you name via OMNIGAUGE_AIDER_DIRS Quota panels are rendered under tmux and read back with capture-pane. These CLIs draw character-by-character with cursor moves; stripping ANSI from a raw pty gives you garbage. tmux is a real terminal emulator, so it does the rendering and OmniGauge reads the finished screen.
On WSL, Codex keeps two separate stores - ~/.codex and /mnt/c/Users/ /.codex. Both are discovered. Searching only one and concluding "nothing here" is a real trap.
Launching Claude in a directory it has not seen raises a blocking trust prompt, which swallows the keystrokes. OmniGauge will not auto-accept it - trusting a folder is a real security decision and it persists. It instead reuses a directory the CLI has demonstrably run in before, read from Claude's own session registry, and detects the dialog explicitly if one still appears. Override with --cwd DIR.
Vendor TUIs change. OmniGauge treats a partial parse as a failure, because a plausible number with the headline missing is worse than no number:
claude scraping… PARTIAL - 2 row(s), missing [('week', 'all')] raw screen → ~/.local/share/omnigauge/last-scrape-claude.txt Each agent declares the windows it must produce. Miss one and you get a loud warning plus the raw screen dumped for inspection. Stale rows are never silently reused as fresh.
Everything lives in ${XDG_DATA_HOME:-~/.local/share}/omnigauge/ (override with OMNIGAUGE_HOME):
Separate panel, separate product - never merged into plan quota. A subscription window is a time-based percentage; these are real money.
omnigauge --setup # hidden input, written 0600, refuses to read looser modes Two things worth knowing:
Checking X usage does not consume your post cap. Verified empirically rather than from documentation - two consecutive calls to /2/usage/tweets left project_usage unchanged. It has its own limit of 50 per window, so it is polled on the slow clock, never per redraw.
X dollar balances are console-only. The developer console shows a balance; no public endpoint for it has been found, so OmniGauge reports post consumption and leaves the money figure to the console rather than inventing one.
API dollar spend. OpenAI (/v1/organization/costs) and Anthropic (/v1/organization/cost_report) both expose real spend, but they need an org admin key - a credential worth more than this tool. The schema already carries cost_usd and a source column, so it is a clean addition if you want it. It would be a separate panel, never merged into plan quota.
Optional, and it changes nothing about the tool - OmniGauge is MIT and always will be, with no paid tier and no telemetry.
Solana: HDDEfcYnLh4w8yG5Rn8chcm15xo1LavkvtRGeTRGAUGE
If you get more use out of this than it cost you to read the source, that is already the trade working.
There will be no OmniGauge token from the developer of OmniGauge. No presale, no airdrop, no community round, no Phase 3. You can launch one - someone always does. The ask is creator fees plus 3% of supply to the address above, and the token socials pointed at @OmniGauge and omnigauge.dev - the only two places this project exists. What you may not do is LARP as this project while you do it: no "official", no borrowed name, no invented team. Launch your own thing and be honest that it is yours.
X is the only place OmniGauge exists. No Discord, no Telegram, no Reddit, no group chat, no "community". If something calls itself OmniGauge anywhere other than @OmniGauge or omnigauge.dev, it is not us.
If you do launch one, come and say so. The email on the GitHub profile is the channel that counts. If it checks out - you are not a known scammer, and you met the terms above instead of pretending to be us - there is a good chance the contract address ends up on this page. A listing is not an endorsement. DYOR.
The package is published by PyPI trusted publishing (no token anywhere) and every file on PyPI carries a PEP 740 provenance attestation; a fresh build from the tag is compared with PyPI's digests on every release and they are byte-identical (the reproducible badge); pip-audit checks what a user installs on every change and weekly (the audit badge), which is also the check that the package has no third-party dependencies; CodeQL runs on every push; every GitHub Release attaches a CycloneDX SBOM; OpenSSF Scorecard reads the repository's practice continuously, and the project holds the OpenSSF Best Practices passing badge (every criterion answered with the file or workflow that makes it true). What to report and how (security@omnigauge.dev): SECURITY.md.
CHANGELOG.md - one section per version on PyPI.
Pull requests are open to anyone - you do not need permission, an invite, or to ask first. Fork it, change it, open a PR.
The shape of this project is that adding a source is one file. If you use a tool this does not read yet, the whole job is a single file in providers/ that answers four questions: are you installed, where are your files, how many tokens, and what does your quota panel say. Eight providers ship as worked examples in providers/ - five agents (claude.py, codex.py, grok.py, aider.py, goose.py) and three spend sources - each a different parsing shape; copy the closest one.
CONTRIBUTING.md has the contract, the three rules that are not style preferences, and what gets rejected. Read the last one before you start - it will save you the work.
Not a Python person? Chip in a Sol or two instead. It buys you nothing - no tier, no badge, no priority support, no role in a Discord that does not exist - which is precisely what makes it a donation and not a purchase. Details under Donations, and the address is right there in the terminal too: omnigauge → press F7.
A usage meter for AI tools, written by one. The source is right there either way.
MIT. Use it, fork it, ship it. The code is yours under that licence - and with it the look, which anyone may imitate. The name, the mark and the files under assets/ are not part of the grant - see TRADEMARK.md and assets/LICENSE.
ai aider claude codex goose grok openai openrouter quota terminal usage
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 15, 2026.




