claudeers.
// Developer Tools

aiusage

macOS menu bar app: Claude quota with pace

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up aiusage (release-binary project) into my current project.
Found on https://claudeers.com/aiusage
Repo: https://github.com/CogFlux/aiusage
Homepage/docs: https://aiusage.cogflux.io
Detected install method: release-binary → inspect the README
Category: devtools. Platforms: cli, api, web.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
unknown; community-verified: false. Confirm the source before running anything.
// or install directly (release-binary)

Grab the latest release asset from GitHub.

# download a build from https://github.com/CogFlux/aiusage/releases
// or clone
git clone https://github.com/CogFlux/aiusage

// compatibility

Platformscli, api, web
Operating systems—
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguageSwift

Get your FREE $2.50 API credits to access TickAtlas financial data ↗

AIUsage

English · 中文

A macOS menu bar app that shows your Claude subscription quota (5-hour and 7-day windows) — and, optionally, your DeepSeek balance and burn rate — together with pace: assuming you want to land at exactly 99% when the window resets, how much should be used by now, how much actually is, whether you are ahead or behind, and when you would run out at the current rate.

5h 42% ▲9      ← 42% used, 9 points above the even-pace budget (red)
5h 42% ▼3      ← 3 points under budget (green)
5h 1% ○        ← window just started; too early to judge pace
5h 42% ●       ← within tolerance of budget (±5 for 5h, ±3 for 7d)
5h 0% ↺        ← window has reset, waiting for fresh data
5h ↺           ← no active window; your next message starts one
5h 42% ● ⧗     ← data is more than 30 minutes old

Where the data comes from

SourceCostFreshness
Claude Code statusline hook (default)nonelive while a session is running; refreshed every 60s when idle
Query now (button in the menu)one tiny Haiku request, ~500 tokens ≈ $0.001 API-equivalent; covered by a Pro or Max subscriptioninstant

Both paths use interfaces Claude Code exposes officially. No OAuth tokens, no web scraping. Details in docs/data-contract.md.

Side effect of Query now: if no 5-hour window is currently active, the request starts a new one.

Re-pace from now (7-day row). Burnt 60% by Tuesday? The even-pace line will say ▲30 until Sunday, which tells you nothing you can act on. Pressing the button treats what is used as spent and paces only the remainder over the time left: the bar gains a dashed tick at the checkpoint and a faint one where the original budget would be, and Budget / Delta / Projected, the menu bar marker and the notifications all switch to the new line. It expires when the window resets; Clear removes it earlier.

Updates

Packaged releases check for updates through Sparkle (EdDSA-signed appcast at aiusage.cogflux.io/appcast.xml). Toggle automatic checks or check manually in Settings → General.

Settings

Gear icon in the menu → Settings window.

  • General: language, which window the menu bar shows (5h / 7d), compact menu bar (just 42%), launch at login, notifications (over pace, running out before the reset, 5-hour window reset) with a test button, update checks.
  • Claude Code: hook status and install, whether the hook also prints a usage line into Claude Code's own status line (only when you had none of your own; toggles at the next refresh, no restart), claude path.

DeepSeek

Settings → DeepSeek. Paste an API key and the app polls the free balance endpoint every 5 minutes, derives today's / this month's spend and a per-day burn rate from balance changes, and estimates when the balance runs out. Set a monthly budget to pace the month exactly like a Claude window (markers, notifications, menu bar DS 42% ▲6). The key is stored owner-only under ~/Library/Application Support/AIUsage/ and is sent only to api.deepseek.com/user/balance.

Language

The UI defaults to English. The menu offers English / 中文 / System (Chinese when the system's preferred language starts with zh). All strings live in the Strings table in Sources/AIUsage/Localization.swift, one entry per language; a missing key is a compile error. AIUsageCore contains no user-facing text.

Install

Download AIUsage.zip from the latest release (universal, macOS 14+) and move AIUsage.app to Applications. The build is not yet signed, so on first launch macOS blocks it: open System Settings → Privacy & Security → Open Anyway, or run xattr -dr com.apple.quarantine /Applications/AIUsage.app.

Build and run

Requires macOS 14+ and a Swift toolchain (the one bundled with Command Line Tools is enough; Xcode is not needed).

swift run AIUsageCoreChecks   # run the checks
scripts/build-app.sh          # → build/AIUsage.app (add --universal for arm64 + x86_64)
scripts/release.sh 0.1.0      # tag, build universal, zip, GitHub release
open build/AIUsage.app

After the first launch, click Install in the menu to set up the hook, or from the command line:

hook/install.sh               # install / update
hook/install.sh --uninstall   # remove and restore the previous statusLine

Installing backs up ~/.claude/settings.json (settings.json.aiusage-backup-<timestamp>). A previously configured status line command is saved to ~/Library/Application Support/AIUsage/chain-command and keeps running.

Layout

Sources/AIUsageCore/     Pure logic, no UI dependencies: models, pace math, both parsers, text formatting (the portable part)
Sources/AIUsage/         Menu bar app: file watching, claude -p probe, hook installer, string tables, SwiftUI views
Sources/AIUsage/Resources/aiusage-statusline.sh   The hook script itself
Tests/AIUsageCoreChecks/ Checks (a standalone executable, since Command Line Tools ship no XCTest)
hook/install.sh          Command-line hook installer
scripts/build-app.sh     Builds the .app bundle
docs/data-contract.md    Data format and algorithm spec

License

MIT — see LICENSE.

Roadmap

  • Claude: passive statusline + active claude -p
  • In-app updates (Sparkle)
  • Show 5h and 7d side by side in the menu bar
  • DeepSeek balance, burn rate and monthly budget pace
  • Customizable popover: choose which provider blocks are shown and in what order (e.g. Claude only, or DeepSeek above Claude)
  • Other providers (Codex / Cursor …)
  • Launch at login, notifications (over pace / running out / window reset)

// faq

What is aiusage?

macOS menu bar app: Claude quota with pace. It is open-source on GitHub.

Is aiusage free to use?

aiusage is open-source under the MIT license, so it is free to use.

What category does aiusage belong to?

aiusage is listed under devtools in the Claudeers registry of Claude-compatible tools.

6 views
★ 10 stars
unclaimed
updated 12 days ago

// embed badge

aiusage on Claudeers
[![Claudeers](https://claudeers.com/api/badge/aiusage.svg)](https://claudeers.com/aiusage)

// retro hit counter

aiusage hit counter
[![Hits](https://claudeers.com/api/counter/aiusage.svg)](https://claudeers.com/aiusage)

// reviews

// guestbook

0/500

// related in Developer Tools

🔓

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Curs…

// devtoolsaffaan-m/⟨JavaScript⟩★ 267,519◷ MIT[ claude ]
🔓

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

// devtoolsDietrichGebert/⟨JavaScript⟩★ 148,251◷ MIT[ claude ]
🔓

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

// devtoolsgarrytan/⟨TypeScript⟩★ 134,274◷ MIT[ claude ]
🔓

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// devtoolssafishamsi/⟨Python⟩★ 123,348◷ MIT[ claude ]
→ see how aiusage connects across the ecosystem