Estimate sources
What a source covers
Vendors only publish usage for organizations: a Claude Console or Claude Enterprise org, an OpenAI Platform org, a Cursor team, a Grok API team, or an OpenRouter account. Personal subscriptions such as Claude Pro or Max, ChatGPT, the Gemini app and The X Subscription have no usage API from any vendor, so we can't measure them. For those, pick a band.
Not covered
Connect a source
- 1Create a read-only key at the vendor. The steps for each are further down this page; follow the link for yours: Claude, OpenAI, Cursor, Grok API, OpenRouter.
- 2Open Settings, Estimate sources and click Connect on the provider under Add a source. Cursor and the Grok API sit together under SpaceXSI; they take different keys, so connect either or both.
- 3Paste the key and submit. We check its format straight away and tell you if it's the wrong kind, for example an OpenAI project key (
sk-proj-…) where an Admin key is needed. - 4The source shows Sampling last 90 days… while we verify the key with the vendor and pull its history. This takes seconds to a few minutes. You can leave the page.
- 5When it finishes, the source reads Included and the Estimate group shows the new total with a button to set your offset to it.
You can also connect from the Adjust estimate dialog on the dashboard and from onboarding. All three use the same form.
Sample window per source
One key per provider. Connecting a new key for a provider you already have replaces the old connection and its usage.
Source states
Each source carries one of these pills on the dashboard's running estimate and on SettingsEstimate sources.
Re-sample, replace, disconnect
Each connected source on SettingsEstimate sources shows the start of its key, the org or team name when the vendor provides one, and when it was last sampled.
Connected sources
Estimate
Weekly refresh
Every Sunday at 08:00 UTC each source re-reads its last 10 days so late billing adjustments land. Usage from a refresh replaces the same days from the previous sample, so nothing is counted twice. Your offset amount never changes on its own.
How sources add up
- 1For each source we total the tokens it reported over the last 90 days.
- 2We count the days that source covers: from the latest of 90 days ago, the start of its sample, or its first day with usage, up to today. The count is clamped between 7 and 90. A team that started two weeks ago is projected from its 14 days of history.
- 3Monthly tokens for the source are its total × 30 ÷ covered days.
- 4The sources are added together. That sum is the running estimate.
- 5For pricing, every token is weighted by type first: output 100%, fresh input and cache writes 25%, cache reads 2%. The suggested offset is priced on those output-equivalent tokens (see Billing). An agent that leans on caching gets a lower price than the same raw token count of chat. Details in Token weights.
Keys and data
Claude (Anthropic)
Anthropic's Usage and Cost Analytics API reports org-wide tokens and cost and takes two kinds of key. A Claude Console org uses an Admin key made by an org admin; it covers the Messages API, batches, Managed Agents and Claude Code billed to the API. A Claude Enterprise org uses an Analytics key with the read:analytics scope, made by the primary owner; it also covers claude.ai chat, Cowork and Claude Code seats. Ordinary API keys can't read usage.
sk-ant-admin01-…) or Enterprise Analytics key (sk-ant-api01-…)Set it up
- 1Console org: open Claude Console, Settings, Admin keys and click Create Key. Enterprise org: open claude.ai, Organization settings, API, enable API access and create an Analytics key.
- 2Copy the key. It's shown once.
- 3In Token Offset, open Settings, Estimate sources, click Connect next to Claude, and paste the key.
What we read
GET /v1/organizations/meGET /v1/organizations/analytics/usageGET /v1/organizations/analytics/costGET /v1/organizations/usage_report/messages, /cost_reportOpenAI Platform API
OpenAI reports per-organization Platform usage through its Usage and Costs API. That needs an Admin key made by an org owner. Project keys (sk-proj-…) and standard keys can't read org-wide usage, and the form tells you if you paste one.
sk-admin-…)Set it up
- 1Open platform.openai.com, Settings, Admin keys and click Create new admin key.
- 2Copy the key. It's shown once.
- 3In Token Offset, open Settings, Estimate sources, click Connect next to OpenAI, and paste the key.
What we read
GET /v1/organization/usage/completionsGET /v1/organization/usage/embeddingsGET /v1/organization/costsCursor (SpaceXSI)
Cursor reports every request a team makes, with tokens and cost, through its team Admin API. Only a team admin can create the key. It covers agent, Composer and Grok-in-Cursor usage. Cursor has been part of SpaceXSI (formerly xAI) since August 2026, but its Admin API is separate from the Grok API, so the two connect with different keys.
crsr_…)Set it up
- 1Open the Cursor dashboard, go to API Keys and click New API Key.
- 2Copy the key.
- 3In Token Offset, open Settings, Estimate sources, click Connect next to Cursor, and paste the key.
What we read
GET /teams/membersPOST /teams/filtered-usage-eventsGrok API (SpaceXSI)
SpaceXSI (renamed from xAI in 2026) reports Grok API usage through the billing endpoints of its Management API. That needs a management key scoped to your team, separate from your inference keys. It covers apps you build on the Grok API and Grok Build when it runs on an API key.
Set it up
- 1Open console.x.ai, go to SettingsManagement Keys and create a key scoped to your team.
- 2Copy the key. It's shown once.
- 3In Token Offset, open Settings, Estimate sources, click Connect next to Grok API, and paste the key.
What we read
GET /auth/management-keys/validationPOST /v1/billing/teams/{team}/usageOpenRouter
OpenRouter's activity API returns daily tokens and spend per model for the last 30 days. It needs a management key; inference keys are refused.
sk-or-…)Set it up
- 1Open OpenRouter, Settings, Management keys and create a key.
- 2Copy the key.
- 3In Token Offset, open Settings, Estimate sources, click Connect next to OpenRouter, and paste the key.
What we read
GET /api/v1/activityGoogle Gemini API
Google added usage, spend and rate-limit dashboards to AI Studio in March 2026, but there is still no API behind them that returns daily tokens for a Gemini API key. Vertex AI reports tokens through Cloud Monitoring, which needs a GCP service-account file instead of a pasted key.