Skip to main content

macOS menu bar app for Anthropic API usage and cost tracking

Project description

Claude Usage Mac Menu

doctordoc logo

A macOS menu bar app that shows your Anthropic API spend and token usage in real time - like a battery indicator for your API budget.


Get started

$ pip install claude-usage
$ claude-usage

Pre-requsite: Having authenticated with Claude Code:

$ claude

How it works

The data is retrieved by sending a request to Anthropic's Messages API and reading the rate-limit headers from the response. The input token is hi and the output token is capped to 1. This is achieved with the OAuth token that Claude Code stores in the macOS Keychain. By default the app polls every 60 seconds but it can be configured in the menu bar.

Recommended usage is to run the app when needing to closely monitor usage in real-time and not as a permanent fixture.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_usage-0.0.15.tar.gz (84.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_usage-0.0.15-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file claude_usage-0.0.15.tar.gz.

File metadata

  • Download URL: claude_usage-0.0.15.tar.gz
  • Upload date:
  • Size: 84.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for claude_usage-0.0.15.tar.gz
Algorithm Hash digest
SHA256 6a7ab1a91e8a3233fd3873d442bffb961850e9090cadfd25a983723c2958321e
MD5 3def438499b373287d3e625c8a32c9fc
BLAKE2b-256 cfc9a008d02440b7c5afdb7d4b6ee2b1360c53dc208a6bf535aace7bd1bc5f6a

See more details on using hashes here.

File details

Details for the file claude_usage-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: claude_usage-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for claude_usage-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 dea61f64f4d53a3f0a9c95a92126b5b520d2f733e0b6330952efa24211bed3c9
MD5 23e815d3b3893724efaff67de4d8e340
BLAKE2b-256 2fa0ee3248171efd3cd9ff122966d3dd8d2b7c5fee13c40f957d52f9619bd71d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page