Claude Usage Widget
Shows today's Claude Code token usage and estimated cost for your Anthropic organisation.
Requirements
- An Anthropic API key with organisation admin permissions
- Your Anthropic Organisation ID
Getting your credentials
API Key:
- Go to console.anthropic.com
- Open API Keys and create a new key
Organisation ID:
- Go to Settings → Organisation
- Copy the Organisation ID (format:
org-xxxxxxxxxxxxxxxxxxxxxxxx)
Configuration
| Key | Type | Description |
|---|---|---|
apiKey | string | Anthropic API key |
organizationId | string | Anthropic Organisation ID |
Displayed data
- Total input and output tokens for today
- Estimated cost in USD for today
- Breakdown by model (if multiple models used)
API access
The usage report endpoint requires organisation-level API access. Personal API keys scoped to a single project will not work.