SuperAPIAI Directory

ai-meter

github.com · Other AI tools

AI Meter is a free and open-source usage monitoring tool that stays resident in the Mac menu bar or Windows taskbar to display the remaining usage and reset time for Claude Code and Codex, helping users avoid hitting usage limits midway through long tasks. It reads the login credentials already saved on the local machine directly, refreshes every five minutes, requires no account registration, and contains no analytics; tokens are sent only to the corresponding Anthropic or OpenAI endpoints.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Windows · Linux

About this tool

AI Meter is a usage monitoring tool for Claude Code and Codex users that stays resident in the Mac menu bar or Windows taskbar in the form of a "fuel gauge," and is free and open source. Its main purpose is to show how much quota remains in the current Claude Code or Codex usage window and when it resets, so users can plan larger refactors or long tasks in advance and avoid being interrupted by rate limits halfway through.

Main capabilities: display the remaining AI quota of the selected provider resident in the menu bar or taskbar; show the reset time of the usage window; refresh automatically every five minutes; support switching between the Codex and Claude providers; require no account, contain no analytics, and have no GuruHat server.

How to use: On macOS 13 and later (Apple silicon), install via Homebrew (brew install --cask getguruhat/tap/ai-meter), or download the DMG installer from the latest release and drag it into Applications; because the app is not yet notarized, the first time you open it you need to select "Open Anyway" in "System Settings › Privacy & Security." On Windows 10/11, install via the Microsoft Store, Scoop (scoop bucket add guruhat https://github.com/getguruhat/scoop-bucket then scoop install guruhat/ai-meter), or the installer in the Windows releases. The app reads the locally saved Claude Code or Codex CLI login information and sends tokens only to the corresponding provider's usage endpoint: Claude uses https://api.anthropic.com/api/oauth/usage,Codex uses https://chatgpt.com/backend-api/wham/usage。

How it works: The macOS version reads existing local login information through the system curl command. For Codex, it reads the ChatGPT session in ~/.codex/auth.json; for Claude, it reads Claude Code-credentials from the macOS keychain, and if not found, reads ~/.claude/.credentials.json. Claude Code only renews the saved login information while the claude command is running, so when the saved login expires, AI Meter runs claude doctor in the background (at most once every ten minutes) to trigger CLI renewal; this operation sends no prompts and consumes no quota. The first time Claude usage is read, macOS may ask whether to allow access to the keychain item; selecting "Always Allow" avoids repeated prompts. If credentials are missing or the endpoint response changes, the menu bar displays AI —.

Use cases: Developers who need to use Claude Code or Codex for programming, refactoring, or batch tasks over long periods and want to keep track of remaining quota at all times and arrange their work rhythm reasonably.

Limitations: Currently only supports macOS 13+ (Apple silicon) and Windows 10/11; only supports the two providers Claude Code and Codex; the refresh interval is fixed at five minutes; the macOS app is not yet notarized; the Windows source code is in a separate repository, getguruhat/ai-meter-windows; the project is under the MIT license and is not affiliated with Anthropic or OpenAI. Support for other platforms, pricing models, and more feature details are not yet provided.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools