Battery
A native macOS menu bar app that monitors your Claude Code usage in real time - now with iPhone and Android companions. Session and weekly gauges, forecasts, streaks and multi-account support, on your Mac and your Lock Screen.
Features
Everything you need to understand and pace your Claude Code usage, on your Mac and your phone.
What It Tracks
Every usage dimension your plan reports, each with its own gauge and detailed metrics.
Utilization %Current usage as a percentage of your session limitTime remainingCountdown until the 5-hour window resetsTime since resetHow long since your last session window startedWeekly %Usage across the full 7-day rolling windowReset dateExact day and time your weekly limit resetsRemainingPercentage of weekly capacity still availableOpus %Current Opus-specific utilizationFable %Fable's own 7-day window, when reportedAvailabilityShown only when your plan has the limitAmount spentCurrent month's extra usage chargesSpending limitYour configured monthly maximumRemainingBudget left before hitting the capPredictive Intelligence
Battery doesn't just show current usage - it predicts the future. Linear regression on recent snapshots calculates your burn rate and projects when you'll hit limits.
Battery adjusts its polling frequency based on whether you're actively coding. Integrates with Claude Code hooks for automatic session detection.
80%Early warning - start pacing90%Caution - limit approaching95%Critical - almost at limitAll thresholds are customizable. Notifications reset when utilization drops.
On Your Phone
Battery now runs on iPhone and Android too: the same sign-in, the same usage data, the same terracotta - on your Lock Screen.
Home ScreenSmall, medium and large widgets, with the forecast on the large oneLock ScreenCircular, rectangular and inline accessories, and StandByLive ActivityAppears only while a session is worth watching, escalates near the limit, ends itself on resetPush relayOptional: your Mac keeps the Live Activity current through your own Cloudflare WorkerLive cardNow Bar pill, status-bar chip, expanded lock-screen card and always-on displayWidgetsHome screen widgets, each bound to an accountAccountsSwitch from the app header, the live card or a Quick Settings tileUpdatesChecks GitHub Releases for new versions and opens the release pageWhen none of your Macs is awake, your own Worker can poll every 5 minutes and keep the Lock Screen live. It uses a separate sign-in that can read usage but can't make calls billed to your account, stored encrypted in your own Cloudflare account. An awake Mac always takes over, since it's faster and costs nothing.
How It Works
Battery runs as a lightweight menu bar app with no Dock icon. Usage history stays local on your machine.
Get Started
Install via Homebrew or download the DMG directly. Battery authenticates via OAuth using the same credentials as Claude Code.
Native Swift and Kotlin apps. No Electron. No web views. On the Mac it runs as a menu bar extra with minimal resource usage, and updates itself.
View on GitHub↗For smarter polling, install the Battery hook in your Claude Code hooks configuration. This enables automatic fast/slow polling based on whether you're actively coding.
SessionStartSwitches to fast polling when Claude Code startsSessionEndReturns to idle polling when session endsPostToolUseKeeps session active during tool useStopMarks session end on explicit stop