AI Plan Usage Monitor
See how much of your AI plans you have used and where your tokens go, without leaving VS Code.
AI Plan Usage Monitor shows:
- Plan limits with colored bars and the time of the next renewal:
- Claude: 5-hour session, weekly (all models), weekly limits per model, weekly usage by area, extra usage;
- ChatGPT: limits of the plan read through Codex (
codex app-server) or from the last Codex response;
- Gemini: weekly and 5-hour quotas read from Antigravity while it is open.
- Tokens used by project, for Claude Code (CLI, VS Code, desktop app), Codex and Gemini (Antigravity, Gemini CLI): total, output, cache hit, prevailing model, client, sessions, last activity. Periods: all time, today, last 7 days, current week, current 5-hour session.
Privacy
- Usage and limits are read from local files of the AI clients, which are opened read-only and never modified.
- The extension sends nothing over the internet and has no telemetry.
- The Gemini quotas are asked to the local server of Antigravity on
127.0.0.1, using the port and token that Antigravity writes in its own files; nothing leaves the computer.
- Re-reading the limits starts Claude Code (
claude /usage) or Codex (codex app-server) without a window. They query their own servers with your existing sign-in and do not use plan tokens. The executables are found in the usual installation folders or set in the user settings (never in workspace settings).
Use
- The status bar shows the Claude 5-hour and weekly usage (amber from 60%, red from 80%); hover for all limits, click to open the panel.
- The Refresh button of the panel re-reads the token usage and, through Claude Code and Codex when installed, the plan limits; this can take up to a minute and a half, and the mouse pointer shows the wait. Changing the period only reads local files.
- The automatic refresh reads local files and, every 30 minutes, asks Claude Code and Codex for new plan limits; turn off
aiUsageMonitor.autoRereadLimits to ask them only at startup (Codex) and on request.
- Command Palette: AI Plan Usage Monitor: Open Panel, Refresh (local files only, fast), Re-read Plan Limits (like the panel button).
- Keyboard:
Ctrl+Alt+U (Cmd+Alt+U on macOS) opens the panel; you can change it in Keyboard Shortcuts.
- Extensions view: Open Panel is also in the gear menu of the extension page and in the right-click menu of the extension.
- In the panel, click a column header to sort the table, or move to it with Tab and press Enter or Space.
Languages
English (US, default), English (UK), Italian, French, German, Spanish and Portuguese. With aiUsageMonitor.language set to auto the extension follows the VS Code display language; for English, the region (US or UK) comes from the operating system locale. Dates, times and numbers follow the chosen locale. Command titles and setting descriptions always follow the VS Code display language.
Settings
| Setting |
Default |
Description |
aiUsageMonitor.language |
auto |
auto, en-US, en-GB, it, fr, de, es, pt |
aiUsageMonitor.refreshInterval |
30 |
Seconds between two readings of the local data (only while the window is focused) |
aiUsageMonitor.autoRereadLimits |
true |
Re-read the limits by itself when the saved reading is older than 30 minutes |
aiUsageMonitor.claudeExecutable |
empty |
Claude Code executable (also CONSUMI_CLAUDE_EXE) |
aiUsageMonitor.codexExecutable |
empty |
Codex executable (also CONSUMI_CODEX_EXE) |
aiUsageMonitor.showStatusBar |
true |
Show the status bar item |
Data sources
| Service |
Files |
| Claude |
~/.claude.json (cachedUsageUtilization), plan-usage-history.json of the desktop app, ~/.claude/projects/**/*.jsonl |
| ChatGPT |
~/.codex/sessions/**/rollout-*.jsonl, ~/.codex/archived_sessions (CODEX_HOME changes the folder) |
| Gemini |
~/.gemini/antigravity/conversations/*.db, ~/.gemini/tmp/*/chats/session-*.json |
The formats of Claude Code, Codex, Antigravity and Gemini CLI are internal and undocumented: they can change with updates. Antigravity databases are read with the SQLite module of Node.js 22, included in VS Code 1.101 and later (the minimum version required). Editors based on older runtimes show a warning and skip only the Antigravity usage.
| |