Claude Code Usage, Codex Usage & Gemini CLI Usage Meter

Claude Code Usage, Codex Usage & Gemini CLI Usage Meter, a VS Code extension by Zovo

See your Claude Code 5-hour and weekly limit, plus today's Claude Code, Codex and Gemini CLI tokens and estimated cost, in the VS Code status bar. Everything is read offline from files on your own computer.

Install in VS CodeOpen the Marketplace page

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.ai-usage-meter, version 0.2.3.

The usage dashboard in VS Code with tiles for today's Claude Code, Codex and Gemini CLI tokens and cost, the Claude Code 5-hour and weekly limit in percent, the Codex limits and a 30-day stacked bar chart

The screenshots show the extension running in VS Code 1.142 on synthetic data made by scripts/make-fixtures.js. No real session or account was used.

Why use it

  1. Your real Claude Code limit, with no login and no network. Claude Code saves its own last reading of your plan usage (the numbers on claude.ai/settings/usage) in its config file. The meter reads that reading, so the status bar shows Claude 5h 34% wk 61% without an API call, a cookie or a token.
  2. Three tools in one place. Claude Code, Codex and Gemini CLI usage sit side by side in the status bar and in one dashboard, so you don't need three meters.
  3. More than one Claude Code account. If you run several accounts with CLAUDE_CONFIG_DIR (for example ~/.claude and ~/.claude-work), each folder is found and shown as its own account, with its own limits.
  4. Your prompts stay private. The extension reads only token counts, model ids, times, folder paths and limit numbers. It never shows or stores prompt or reply text, never reads your login token, makes no network calls and needs no API key.
  5. It stays light. It remembers where it stopped in each file and reads only the new lines, so a 2 GB history doesn't get read again every minute.

Not affiliated with Anthropic, OpenAI or Google. Claude Code, Codex and Gemini CLI are their makers' products, named here only to say what this extension reads.

Quick start

  1. Install the extension. The status bar item appears at the bottom right once it has read your session folders.
  2. Click it to open the dashboard, or run "AI Usage: Open Usage Dashboard".

Questions people ask

Is Claude Code Usage, Codex Usage & Gemini CLI Usage Meter free?

Yes. Claude Code Usage, Codex Usage & Gemini CLI Usage Meter is free and MIT licensed.

How do I install Claude Code Usage, Codex Usage & Gemini CLI Usage Meter?

Click "Install in VS Code" above, or search for zovo.ai-usage-meter in the Extensions view.

The status bar

The status bar tooltip with today's split per tool, the Claude Code 5-hour, weekly and weekly Opus limits with their reset times, the 5-hour block and the Codex limits

The item reads like Claude 1.2M $3.40 · Codex 410k $0.62 · Gemini 64k $0.03 · Claude 5h 34% wk 61% · Codex 5h 43% wk 71%. Hover for the full split, every limit with its reset clock time, and the time since Claude Code saved the reading. The item turns yellow when any limit reaches 90%. Before Claude Code has saved a reading, a clock shows the time left in the current 5-hour block instead.

The dashboard

The dashboard table that splits Claude Code usage by config folder, here ~/.claude and ~/.claude-work
The dashboard in a light theme showing the tables by project folder and by model

In a narrow editor the tiles stack, the chart redraws to fit and wide tables scroll sideways.

The dashboard in a narrow editor with stacked tiles and the 30-day chart fitted to the width

Where the numbers come from

ToolFiles readWhat is used
Claude Code~/.claude/projects/<folder>/<session>.jsonl, or <CLAUDE_CONFIG_DIR>/projects, plus other ~/.claude-* and ~/.config/claude foldersusage on each assistant message
Claude Code limits~/.claude.json, or <CLAUDE_CONFIG_DIR>/.claude.jsononly the cachedUsageUtilization key that Claude Code saves
Codex~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl, or <CODEX_HOME>/sessionstoken_count events and their rate limits
Gemini CLI~/.gemini/tmp/<project>/chats/session-*.json (and .jsonl)tokens on each Gemini reply, and ~/.gemini/projects.json for folder names

Cost is an estimate

Cost is tokens times a price table in US dollars per million tokens. The built-in prices were taken on 2026-11-06. Gemini rows use Google's paid-tier prices for prompts up to 200k tokens. Change any row, or price a model the table doesn't know, in the aiUsageMeter.prices setting. Models without a price still count tokens and are listed under the dashboard. On a Pro, Max, ChatGPT or Gemini plan you aren't billed per token, so treat the cost as what the same work would cost on the API.

Settings

SettingDefaultWhat it does
aiUsageMeter.showClaudeCodetrueShow Claude Code usage and limits.
aiUsageMeter.showCodextrueShow Codex usage and limits.
aiUsageMeter.showGeminitrueShow Gemini CLI usage when its session files are found.
aiUsageMeter.statusBartrueShow the status bar item.
aiUsageMeter.statusBarCosttrueShow the estimated cost in the status bar.
aiUsageMeter.refreshSeconds60Read new lines at least this often. File changes trigger a read within 2 seconds.
aiUsageMeter.historyDays90Days of history to read. Older files are skipped.
aiUsageMeter.prices{}Your price rows, by model id or prefix.
aiUsageMeter.claudeRoots[]Claude Code project folders. Empty means $CLAUDE_CONFIG_DIR/projects, else every Claude Code config folder found in your home folder.
aiUsageMeter.findClaudeAccountstrueWith no folder set, also read ~/.claude-* and ~/.config/claude folders that hold projects.
aiUsageMeter.codexRoots[]Codex session folders. Empty means $CODEX_HOME/sessions, else ~/.codex/sessions.
aiUsageMeter.geminiRoots[]Gemini CLI project folders. Empty means ~/.gemini/tmp.
aiUsageMeter.askForRatingtrueAsk once for a Marketplace rating after a few days of use.
aiUsageMeter.showSupportLinkstrueShow the Sponsor and More free viewers links under the dashboard.

Privacy

The extension only reads files. It doesn't write, move or delete session or config files, it sends nothing anywhere and it has no telemetry. From the Claude Code config file it keeps only the limit numbers and reset times: not your email, not your account id and not your login token. Lines that can't hold usage data are skipped before they're parsed. The dashboard runs under a strict Content Security Policy with no remote content.

Known limits

Install Claude Code Usage, Codex Usage & Gemini CLI Usage Meter

Click the button to open VS Code and install it, or press Ctrl+P (Cmd+P on macOS) in VS Code and run ext install zovo.ai-usage-meter.

Free, MIT license. Needs VS Code 1.90.0 or newer. Extension ID zovo.ai-usage-meter, version 0.2.3.

Source code and issues are on GitHub.

All our VS Code extensions

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.