Who sees usage
| Subscriber type | Usage display |
|---|---|
| Claude Pro | Shown — 5-hour and 7-day windows |
| Claude Max | Shown — 5-hour and 7-day windows |
| Claude Team | Shown — 5-hour and 7-day windows |
| API users | Not shown — API billing is pay-per-token, not rate-limited |
| AWS Bedrock | Not shown — displays Bedrock label; usage is managed in AWS |
How it works
Claude HUD reads OAuth credentials from~/.claude/.credentials.json. These are created automatically when you log in to Claude Code. The credentials are used to call the Anthropic usage API at api.anthropic.com/api/oauth/usage.
Two time windows are tracked:
- 5-hour window — short-term rate limit, resets every 5 hours
- 7-day window — weekly usage, shown only when above
sevenDayThreshold
What you see
Configuration options
Enable or disable the usage display entirely. Set to
false to hide usage for all subscriber types.Controls the visual style of the usage display:
true— visual bar:██░░░░░░░░ 25% (1h 30m / 5h)false— text only:5h: 25% (1h 30m)
The 7-day usage bar is only shown when your 7-day usage percentage is at or above this value. Set to
0 to always show the 7-day bar. Range: 0–100.Minimum usage percentage before the usage bar appears at all.
0 means always show. Range: 0–100.How many seconds to cache a successful usage API response before fetching fresh data.
How many seconds to cache a failed usage API response before retrying. Reduces noise when there is a temporary connectivity issue.
Environment variables
Timeout in milliseconds for the usage API request. Default is 15000 (15 seconds). Increase this in high-latency environments if usage data is not loading reliably.
Proxy support
Claude HUD respects standard proxy environment variables for the usage API request:| Variable | Purpose |
|---|---|
HTTPS_PROXY | Proxy for HTTPS requests (recommended) |
HTTP_PROXY | Proxy for HTTP requests |
ALL_PROXY | Proxy for all requests |
NO_PROXY | Comma-separated list of hosts to bypass the proxy |
Troubleshooting
Usage not showing at all?- Confirm you are logged in with a Pro, Max, or Team account — not an API key
- Check that
display.showUsageis not set tofalsein your config - API users see no usage display because they are billed per token, not rate-limited
- If
ANTHROPIC_BASE_URLorANTHROPIC_API_BASE_URLis set to a non-default value, usage display is skipped because the Anthropic OAuth usage API may not apply
HTTPS_PROXY (or HTTP_PROXY / ALL_PROXY) and optionally NO_PROXY before launching Claude Code. See the proxy table above.
Slow or inconsistent usage data?
Increase CLAUDE_HUD_USAGE_TIMEOUT_MS to give the API more time to respond. You can also increase usage.cacheTtlSeconds to reduce how often fresh data is fetched.
Using AWS Bedrock?
Bedrock models display Bedrock in the plan label and hide usage limits. Usage for Bedrock is managed in your AWS account.