Claude Code usage

Claude Codex Battery

macOS menu bar widget showing Claude Code & Codex usage limits as battery icons

104 stars 16 forksUsage & cost trackers Source

Install

From source
git clone https://github.com/dennykim123/claude-codex-battery.git

From the README

🔋 Claude & Codex Usage Battery
A menu-bar and system-tray widget that shows your remaining Claude Code and Codex usage limits as battery icons — so you never have to open /usage again.

C = Claude · X = Codex. Each battery shows the remaining % of a limit window — full & green means plenty left, red means almost out. Click for a detailed breakdown with reset times.

Ships two ways: a notarized native app (double-click install, zero prerequisites) and a single SwiftBar plugin — one self-contained script, no third-party libraries. The battery icons are rendered as PNGs from scratch in pure JavaScript (node:zlib only), so there's no image library and no npm install. Network calls: two official usage endpoints — Anthropic's and OpenAI's — each fetched with your own local Claude Code / Codex login (the same data /usage and Codex's /status show — see Privacy), plus an optional once-a-day update check (see Updating). (ccusage is an optional extra for the cost breakdown.)

What it shows

Click the widget for a dropdown with, per limit:

Colors follow a traffic-light scale: green ≥ 50 % left, amber  Using the native app? Skip this table — it has no prerequisites (Claude Code just needs to be logged in; ccusage optional). The table below is for the SwiftBar-plugin variant.

Note: This widget shows *your own account's* limits — via your local Claude Code login and your local Codex session logs. If you don't use Claude Code (or Codex), there simply won't be any data to display.

Install

Windows (experimental)

The native Windows 10/11 system-tray port lives in windows/. It compiles with the .NET Framework tools included with Windows and requires no Node.js, package manager or Visual Studio installation.

See the Windows documentation for optional start-at-login, privacy controls…
Read the full README on GitHub

Details

Language
Swift
License
MIT
Last updated
3 August 2026
Topics
anthropicbunclaude-codecodexdeveloper-toolsmacosmenu-bar-widgetmenubarswiftbarusage-tracker

FAQ

What is Claude Codex Battery?

macOS menu bar widget showing Claude Code & Codex usage limits as battery icons It is a usage for Claude Code, from dennykim123/claude-codex-battery on GitHub.

How do I install Claude Codex Battery?

Clone dennykim123/claude-codex-battery from GitHub and follow the setup steps in its README.

Is Claude Codex Battery popular?

dennykim123/claude-codex-battery has 104 GitHub stars and 16 forks. It was last updated on 3 August 2026.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.