Burnrate

Software

Burnrate

Know your burn before it burns you.

All Projects

Claude's API plans have usage caps that reset on rolling windows — a 5-hour session limit and 7-day model-specific limits. The only way to check consumption is to log into the web dashboard, which breaks flow when you're deep in a coding session and need to know if you're about to hit a wall.

Burnrate puts that information where it belongs: on your home screen and in your menu bar. The iOS widget uses a sunset color metaphor — as usage climbs from 0% to 100%, the background shifts through 8 distinct palettes, from calm sky blues through golden hour into deep crimson. At a glance, you know exactly where you stand.

Both platforms authenticate by embedding claude.ai's own login page in a WKWebView, then injecting JavaScript to call the internal usage API with the captured session cookie. No API keys to manage, no separate auth flow — just sign in once and the data flows to your widgets automatically.

0
To Exhaustion
Reported time for Max plan users to burn a full session window
GitHub #41788
$0
Plan, No Gauge
Most expensive tier still has no built-in usage visibility
Anthropic pricing
0
Reset Window
Rolling session timer — invisible without a dedicated monitor
Anthropic docs
0
Businesses
On Claude with opaque consumption limits
Anthropic Oct 2025

Sources: GitHub issue #41788, Anthropic pricing, Anthropic Oct 2025 disclosure

iOS Widgets

Home screen widgets in small and medium sizes. The background color palette shifts dynamically through 8 sunset tiers based on current usage — a visual burn indicator you can read from across the room.

9:41
12%
SESSION
7D
8%
SON
5%
OPS
3%
12% — Clear skies

Widget cycles through sunset tiers as usage increases

Widget cycles through sunset tiers as usage increases

macOS Menu Bar

The macOS companion lives in the menu bar as a percentage readout. Click to see a popover with all usage tiers, progress bars, and reset countdowns. Configurable poll interval, launch-at-login support, and no Dock icon footprint.

FinderFileEditViewGoWindowHelp
64%Mon May 5 10:03 AM0%
Current session

Resets in 2h 15m

0%
All models (7d)
0%
Sonnet only (7d)
0%
Updated 2 min ago
SettingsQuit

Menu bar popover showing session and 7-day usage tiers

Sunset Tier System

Eight distinct color palettes mapped to usage thresholds. Each tier has separate light and dark mode variants — the dark mode palettes are atmospheric rather than inverted, with muted deep tones that feel like actual twilight.

0-10%
Clear skies
10-25%
Warm morning
25-40%
Golden hour
40-55%
Amber glow
55-70%
Sunset
70-85%
Deep dusk
85-95%
Twilight
95-100%
Burnrate

Usage thresholds with their corresponding color band palettes

Authentication Architecture

Rather than requiring users to generate and paste API keys, Burnrate embeds claude.ai directly in a WKWebView. After login, JavaScript bridge calls fetch usage data through the authenticated session — the same technique a browser extension would use, packaged as a native app.

WKWebView
Embed claude.ai login
Session Cookie
Capture auth token
JS Bridge
Inject fetch() calls
Widget
Display on home screen

WebView-based auth flow from login to widget display

Built With

Zero third-party dependencies across both platforms. Pure SwiftUI with WidgetKit for iOS and MenuBarExtra for macOS. XcodeGen for project generation. Data shared between app and widget via App Group UserDefaults.

SwiftSwiftUIWidgetKitWKWebViewXcodeGenmacOSiOS

Source: ~/Documents/Code-Projects/ai-token-usage-widget/