macOS menu bar app for Anthropic API usage and cost tracking
Project description
Claude Usage Mac Menu
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 is capped to 1 token. 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_usage-0.0.16.tar.gz.
File metadata
- Download URL: claude_usage-0.0.16.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3df8fecfbeafd95a629bc14bd483a771cb0131a8fc748dc9e4feeb4ebbeb06a
|
|
| MD5 |
7d01b04b616575a9a53f36bddfd02447
|
|
| BLAKE2b-256 |
8504cbf50bc1609fc0271f2e14dced8d703c8c0c720f38b77458e1c91930acb4
|
File details
Details for the file claude_usage-0.0.16-py3-none-any.whl.
File metadata
- Download URL: claude_usage-0.0.16-py3-none-any.whl
- Upload date:
- Size: 11.1 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9334c5ff869013a177b6ee9ed5b3b7c179d93d7826714386467be6df0ebea585
|
|
| MD5 |
9a07d4262183891e8109cec185dfbd8d
|
|
| BLAKE2b-256 |
3614c4f39fedaf9957917e2b3a5d2ceea08bc6410b3f4c093308c750147740dc
|