How tools get usage data

Usage trackers differ most in where their numbers come from. Each source answers a different question, and none of them answers every question.

CLI usage commands
The tool asks the agent’s own CLI, through a command such as /usage or /status, how much of each limit is used and when it resets. The numbers are the provider’s own, so they match what the CLI shows you. They come without a token or cost breakdown, and reading them means starting the CLI. Agent Tank works this way, and ClaudeBar does by default.
Local log files
The agents write every session to disk, with token counts per model call. A tool can read those files and add up tokens and estimated cost per day, session, project or model, without signing in to anything. The logs do not contain the provider’s limit, so limit percentages from logs are estimates. ccusage, Claude Code Usage Monitor and CodeBurn work this way.
Provider web sessions and usage APIs
Some tools call a provider’s usage API with the credentials the CLI stored, or reuse your browser’s signed-in cookies to read the provider’s website. This reaches providers that have no CLI usage command and can add details such as credit balances, but it depends on endpoints that are not part of the CLI and, for cookies, on access to your browser’s session. CodexBar uses several of these per provider.

Many tools combine sources: a menu bar app may read limits from the CLI and cost from the logs. The table lists what each one uses.

Comparison

Last checked: . “Unknown” means the tool’s own documentation does not say.

Compared on Agent Tank[1] ccusage[2] Claude Code Usage Monitor[3] CodexBar[4] ClaudeBar[5] CodeBurn[6]
How usage is obtained CLI usage commands/usage in Claude Code and agy; Codex’s app-server rate-limit call, falling back to /status. Optional Anthropic OAuth usage API (--claude-api). Local log filesReads the session data the agent CLIs write to disk. Local log files, plus Claude Code’s status lineReads Claude Code’s JSONL logs; as a status line hook (--statusline) it captures the official rate_limits Claude Code reports. Provider usage APIs, CLIs, optional browser cookiesPer provider: Codex via OAuth API or the Codex CLI’s app-server RPC; Claude via OAuth API, browser cookies or the CLI; Antigravity via its local language server or the agy CLI. CLI usage commands by default, or provider usage APIsClaude: claude /usage or the OAuth usage API. Codex: codex app-server RPC or the ChatGPT usage API. Antigravity: its local language server, or the stored sign-in when it is not running. Local log files, plus provider limitsReads the session files tools write to disk. codeburn quota asks each provider for its live limits with the credential the tool already stores.
Coding agents covered Claude Code, Codex, Antigravity Claude Code, Codex, Antigravity, Gemini CLI and 14 other agent CLIs Claude Code Codex, Claude, Antigravity, Gemini and about 100 other providers Claude, Codex, Gemini, Antigravity and over 20 other providersPlus your own sources through script extensions. 42 tools, including Claude Code, Codex, Antigravity and Gemini CLI
Subscription limit windows and reset times Yes, as reported by the CLISession, 5-hour and weekly windows with used percentage and reset time. Estimated: Claude Code 5-hour blocksBlocks are worked out from log timestamps; the limit is a token count you set or your highest previous block (--token-limit). YesOfficial 5-hour and weekly percentages from the status line when fresh; otherwise labelled local estimates. YesSession, weekly and monthly windows with countdowns to the next reset. Yes5-hour, weekly and per-model limits with reset countdowns and a forecast. Yes, with codeburn quota5-hour and weekly windows with percentage used and reset time.
Token or cost analytics NoBy design: it reports limits, not token counts or prices. YesDaily, weekly, monthly and session reports with per-model cost and cache tokens. YesTokens, messages and cost with model pricing and cache tokens; daily and monthly views. YesLocal cost scans for Codex and Claude logs; spend and credits for API-billed providers. Daily cost and tokensToday against yesterday and a 30-day chart, read from local Claude Code (and some other) session logs. YesCost by tool, model, project, task and branch, priced at published API rates.
Local HTTP/JSON API for integrations Yes, on port 3456GET /status, /status/:id, /history/:id; POST /refresh. One canonical JSON shape for every provider. No server documentedJSON output with --json. No serverOne-shot JSON (--once --output json) and an atomically written state file (--write-state). Yes, codexbar serveA localhost HTTP server with usage and cost JSON (GET /usage); the CLI also prints JSON. No server documentedWrites ~/.claudebar/status.json for scripts, sends webhooks and has claudebar:// URL actions. No JSON API documentedA localhost web dashboard (codeburn web), JSON from codeburn quota --format json, and a local MCP server.
Multiple accounts per provider YesSeveral accounts per provider, each with its own config directory. No per-account viewCLAUDE_CONFIG_DIR can list several Claude data directories, which are combined into one report. Several data directories--data-paths scans multiple Claude data directories without merging accounts into one 5-hour window. YesToken accounts, managed Codex accounts and claude-swap accounts. Yes, for Claude and CodexEach login has its own quotas, refreshes and errors. Unknown
Usage history Yes, 14 days by defaultSQLite, Node.js 22.5+. Yes, from the logs on diskFilter by date range with --since and --until. Opt-inA local warehouse (--warehouse) keeps history past Claude’s 30-day cleanup; JSON and CSV export. YesUtilization history and quota burndown from recorded snapshots; Codex cost history in SQLite. Daily usage, last 30 daysFrom local session logs. YesDaily cost and tokens kept for ten years, even after Claude Code deletes old sessions.
Runs entirely locally YesTalks to the CLIs on your machine. --claude-api calls Anthropic’s usage API; the dashboard reads providers’ public status pages. YesReads local files; fetches model pricing unless run with --offline. UnknownIt reads local files and the README calls it privacy-first, but does not list its network requests. Runs on your machineParses on-device and calls providers’ own APIs and websites for usage. An opt-in setting shares data between your own Macs. Runs on your MacRuns the CLIs or calls the providers’ usage APIs. An opt-in leaderboard uploads daily token totals. Reads local filesFetches prices from LiteLLM daily; quota reads contact providers. Its privacy page lists every request.
Platforms Linux, macOS, WindowsNode.js 18+; node-pty must build. Wherever Node.js or Bun runsRun with npx or bunx, or install globally; also a Nix package. Linux, macOS, WindowsPython 3.9+; install with uv, pip or pipx. macOS 14+, LinuxLinux desktop app and CLI for x86_64 and ARM64; Windows only through community ports. macOS 15+ macOS, Windows, LinuxCLI needs Node.js 22.13+. Menu bar app on macOS, tray app on Windows, GNOME Shell extension on Linux.
License MIT MIT MIT MIT Apache-2.0 MIT
  1. [1] Agent Tank: README.md (checked 22 October 2026)
  2. [2] ccusage: apps/ccusage/README.md, docs/guide/blocks-reports.md, docs/guide/claude/index.md (checked 22 October 2026)
  3. [3] Claude Code Usage Monitor: README.md (checked 22 October 2026)
  4. [4] CodexBar: README.md, docs/codex.md, docs/cli.md, docs/configuration.md (checked 22 October 2026)
  5. [5] ClaudeBar: README.md, docs/providers/claude/README.md, docs/features/usage-history/daily-usage/README.md, docs/features/alerting/touch-bar/README.md, docs/features/providers/multi-account/README.md, docs/features/leaderboard/README.md (checked 22 October 2026)
  6. [6] CodeBurn: README.md, docs/plans-and-quota.md, docs/web.md, docs/menubar.md (checked 22 October 2026)

The alternatives

Each of these is open source, publicly available and does something Agent Tank does not. Descriptions are from each project’s own README and docs.

ccusage

A command-line tool that reads the local session logs of Claude Code, Codex and many other coding agent CLIs and reports token usage and cost by day, week, month and session.

Best at: Token and cost reports from local logs: per day, per session, per model and per project, including cache tokens.

Choose it over Agent Tank when: You want to know how many tokens you used and what that would cost, broken down by day, session or model, or you use agents Agent Tank does not cover.

Claude Code Usage Monitor

A live terminal monitor for Claude Code (claude-monitor on PyPI) that tracks tokens, messages and cost in the current 5-hour session, with burn-rate forecasts and warnings.

Best at: A live, full-screen terminal view of the current Claude Code session: burn rate, forecasts and cost, with each number labelled as official or a local estimate.

Choose it over Agent Tank when: You only use Claude Code and want a live terminal monitor with burn-rate forecasts and cost, or Python is easier to install than Node.js on your machine.

CodexBar

A macOS menu bar app (with a Linux desktop app and CLI) that shows usage limits and reset countdowns for Codex, Claude, Antigravity, Gemini and around a hundred other AI providers.

Best at: Broad provider coverage (over 100) in one menu bar, including credit balances and spend for API-billed services next to coding-agent limits.

Choose it over Agent Tank when: You are on a Mac and want limits in the menu bar, or you also need providers Agent Tank does not cover, such as Cursor or Copilot.

ClaudeBar

A macOS menu bar app that shows how much AI coding quota is left for Claude, Codex, Gemini, Antigravity, Copilot, Cursor and others, with reset countdowns and a notification before you run out.

Best at: A native Mac menu bar view of many providers’ quotas, with alerts, pace forecasts and daily cost from local logs.

Choose it over Agent Tank when: You work on a Mac and want quotas in the menu bar with notifications, or you need providers beyond Claude Code, Codex and Antigravity.

CodeBurn

A CLI, desktop app and menu bar app that reads the session files of 42 AI coding tools and breaks token spend down by project, model, task and git branch, with suggestions to reduce it.

Best at: Finding where token spend goes: per session, project, branch, task and model, plus optimisation findings and spending caps for Claude Code.

Choose it over Agent Tank when: You want to understand and reduce what your sessions cost (per project, branch or task), or cap spend per Claude Code session.

When Agent Tank is the right choice

  • You want the limit percentages and reset times that Claude Code, Codex and Antigravity report themselves, not an estimate worked out from logs.
  • You use more than one of those three agents and want them in one place, in one JSON shape.
  • You want to read usage from scripts, status bars, CI jobs or containers over a local HTTP API (API reference).
  • You have several accounts for the same provider (multiple accounts).
  • You do not want a tool to read your browser cookies or scrape provider websites. Agent Tank does neither.
  • You work on Linux, macOS or Windows and already have Node.js.

When it is not

  • Pay-as-you-go API spend. Agent Tank tracks subscription usage limits in the CLIs. It does not track what you spend through API keys.
  • Per-session token and cost breakdowns. Agent Tank reports limits, not tokens or prices. A log-based tool such as ccusage or CodeBurn answers “what did this session cost?”.
  • Agents other than Claude Code, Codex and Antigravity. CodexBar, ClaudeBar and the log-based tools cover Cursor, Copilot, Gemini CLI and many others.
  • A native Mac menu bar app. Agent Tank’s dashboard runs in the browser; CodexBar and ClaudeBar live in the macOS menu bar.
  • A live terminal monitor for one Claude Code session. Claude Code Usage Monitor shows burn rate and forecasts as you work.

Using tools together

Spotted something out of date?

These tools change quickly. If a cell is wrong or a tool’s documentation has changed, open an issue with a link to the tool’s own source and we will update the page.