Skip to content

HopIT-Hub/UsageScout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UsageScout — Helping you keep an eye on your Claude usage

Compliance Note (Dashboard Auth Only): Dashboard Auth mode, which reads /api/organizations/{orgUuid}/usage using your authenticated session, is a potential terms violation risk. We still have not received a written response from Anthropic, but other more visible tools appear to use the same mechanism. Our current assumption is Anthropic likely does not object to this approach. You should still treat Dashboard Auth as use at your own risk and a potential violation of Anthropic's Terms of Service. Core UsageScout behavior (local/cache mode) does not use Anthropic dashboard endpoints, but is significantly less accurate than Dashboard Auth.

Latest Release macOS License Ko-Fi

What It Shows

UsageScout is a lightweight macOS menu bar app that shows:

  • current session usage
  • next session reset time
  • current weekly usage
  • next weekly reset time

Install

  1. Download the latest release zip from GitHub Releases.
  2. Unzip it.
  3. Move UsageScout.app to Applications (or another trusted folder).
  4. Launch UsageScout.app.

Current release binaries are built for Apple Silicon (arm64).

Signed Release Notes

Current release builds are signed and notarized.

If macOS still warns on first launch, verify:

  • app was downloaded from official GitHub release assets
  • you are running the latest release build
  • the downloaded zip was not modified after release

First Run

When running, a UsageScout item appears in the macOS menu bar.

Setup flow (Dashboard Auth > Setup Wizard...):

  1. Choose usage type:
  • API (Pay As You Go), or
  • Plan (Free/Pro/Max)
  1. API path:
  • open Claude usage settings (Open Claude Usage Page)
  • copy org UUID from request URL (/organizations/{orgUuid}/usage)
  • optionally auto-extract desktop cookies for dashboard mode
  1. Plan path:
  • choose dashboard auth extraction, or
  • choose ToS-compliant local/cache mode (less accurate)

In the menu:

  • use Refresh Now for an immediate data refresh
  • use Auto Start at Login if desired
  • use Check for Updates... to manually query new releases

Build From Source

swift build
swift run

Optional packaging command (for local release testing):

./scripts/build_release_app.sh 0.9.0 1

Outputs:

  • ../non-GitHub/dist/UsageScout.app (local builds)
  • ../non-GitHub/dist/UsageScout-macOS.zip (local builds)

Operational Notes

Auto Start at Login

Toggle Auto Start at Login in the menu.

If macOS requires approval, enable it in: System Settings > General > Login Items

Automatic Update Checks

The app checks GitHub Releases at launch and every 6 hours.

Menu behavior:

  • Check for Updates... checks immediately
  • if a newer release exists, it changes to Update Available: vX.Y.Z...
  • selecting it opens the release page

Reset Assumptions

Defaults are in Sources/main.swift (MonitorConfig):

  • sessionWindowHours = 5
  • weekly reset = Friday at 20:00 local time
  • sessionBillableTokenLimit = 200000
  • weeklyAllBillableTokenLimit = 2000000
  • weeklySonnetBillableTokenLimit = 1500000

These assumptions apply to local-log mode only.

Optional Dashboard Auth (Use At Your Own Risk)

Dashboard mode may violate Anthropic terms depending on account context and policy enforcement. Do not enable this mode unless you understand and accept that risk.

Enable flow:

  1. Open the menu bar app.
  2. Open Dashboard Auth.
  3. Run Setup Wizard... (recommended), or enable dashboard mode directly.
  4. For desktop-based auth, use Re-auth from Claude Desktop.
  5. Use Refresh Now.

Manual auth options:

  • Enter Session Key... (cookie value only)
  • Enter Cookie Header... (for example sessionKey=...; lastActiveOrg=...)
  • Set Org UUID (Optional)... if org discovery is wrong

Automatic refresh behavior:

  • if dashboard auth fails (missing/expired key, 401/403/404, org mismatch), UsageScout attempts one auto re-extract from Claude Desktop
  • auto re-extract is rate-limited (default every 15 minutes)

Environment overrides (take precedence over saved settings):

export CLAUDE_SESSION_KEY='...'

or

export CLAUDE_COOKIE_HEADER='sessionKey=...; otherCookie=...'

Optional override:

export CLAUDE_ORG_UUID='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

Data Sources

UsageScout supports two modes:

  1. Local JSONL mode (default, approximate):
  • ~/.claude/projects/**/*.jsonl
  • ~/Library/Application Support/Claude/local-agent-mode-sessions/**/.claude/projects/**/*.jsonl
  • ~/Library/Application Support/Claude/local-agent-mode-sessions/**/audit.jsonl
  1. Optional Dashboard mode (exact values):
  • endpoint: /api/organizations/{orgUuid}/usage
  • auth from env vars or saved app settings
  • requires explicitly enabling Dashboard Auth mode

If dashboard mode is off, UsageScout stays in local/cache mode.

Accuracy Notes

If dashboard auth is not configured or fails, UsageScout falls back to local cache logs. In that mode, values can differ from Claude dashboard values because dashboard values include:

  • usage from other clients/devices
  • server-side accounting not exposed in local files

When source shows Dashboard API (/usage), values should match dashboard values more closely.

Support the Project

If UsageScout is useful to you, support is appreciated:

Support on Ko-Fi

License

This project is licensed under:

  • LICENSE (HopIT Noncommercial License v1.0 (Qualified Organization Cap))

Quick summary:

  • Free for personal/noncommercial use
  • Free for internal company use only when both are true: fewer than 150 workers and less than USD 100,000,000 annual gross revenue
  • Commercial license required for above-threshold internal use
  • Commercial license required for commercial distribution or closed-source distribution

Commercial licensing: licensing@hopit.co

UsageScout is an independent project and is not affiliated with or endorsed by Anthropic.

About

Monitor your Claude subscription usage in your macOS menu bar

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors