Estimate sources

Optional. Connect a read-only key from Claude, OpenAI, Cursor, the Grok API or OpenRouter and we size your offset from real usage instead of a band. This page covers every connector, the key it needs, exactly what we read, and what each status means.
Open in dashboard

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

Anthropic
Personal Claude Pro / Max plans. Claude Team plans. Claude Code on a personal subscription.
OpenAI
ChatGPT (Free / Plus / Pro / Team / Enterprise). Codex on a ChatGPT plan.
Google
Gemini app (gemini.google.com) chat. Google AI Pro / Ultra subscriptions. Gemini API usage (no usage API yet).
Cursor
Personal Cursor accounts and individual X Subscription plans (team Admin API only).
SpaceXSI
Grok chat, Grok Bot and Grok Build on The X Subscription.
OpenRouter
Usage older than 30 days (OpenRouter's limit).
To get personal plans covered, ask the vendors for a usage API: Anthropic, OpenAI or Google.

Connect a source

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

Claude
Up to 90 days, or since the org first had usage.
90 days
OpenAI Platform API
Up to 90 days, or since the org first had usage.
90 days
Cursor
Capped at 30 days to stay inside Cursor's rate limit.
30 days
Grok API
Up to 90 days, or since the org first had usage.
90 days
OpenRouter
OpenRouter only keeps 30 days of activity.
30 days

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.

Included
Usage found and counted. The row shows the tokens per month it adds and how many days that projection is based on.
Included · refresh failed
The latest weekly refresh failed, so the estimate still uses the previous sample. Usually the key was revoked or lost its permissions. Replace the key or re-sample.
Sampling last N days…
First sample in progress. Nothing from this source counts yet.
No usage in last N days
The key works but the vendor reported zero tokens for the window. Usually the org hasn't been billed for anything yet, or the key belongs to a different org or team than the one you use.
Sync timed out
The first sample ran for more than 12 minutes and was stopped. Click Re-sample. If it times out again, check that the key is the kind listed for that provider below.
Needs attention
The vendor rejected the key or the sync failed, and nothing from this source counts. The error from the vendor is shown on the row. Click Replace key.

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

Re-sample
Re-reads the last 10 days now instead of waiting for Sunday. If the first sample never finished, it runs the full sample again. Disabled while a sample is running.
Replace key
Shown when a source needs attention. Paste a new key; the old key and its usage are deleted and a fresh sample starts.
Disconnect
Asks you to confirm, then deletes the stored key and every usage row from that source. It stops counting toward your estimate immediately. Your offset amount doesn't change until you change it.

Estimate

Monthly estimate
The combined projection from every included source, the output-equivalent tokens it's priced on, and your projected provider spend.
Your offset
Set offset to $X/mo switches your plan to the estimate. Update offset appears when a refresh has moved the number since you adopted it.

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

  1. 1For each source we total the tokens it reported over the last 90 days.
  2. 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.
  3. 3Monthly tokens for the source are its total × 30 ÷ covered days.
  4. 4The sources are added together. That sum is the running estimate.
  5. 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.
No double counting. OpenRouter and Cursor can route requests through your own Anthropic, OpenAI or Grok API key. When you've connected that provider directly too, we skip those bring-your-own-key requests on the OpenRouter or Cursor side.

Keys and data

Key storage
Encrypted with AES-256-GCM and a server-side key before it's stored, with a random IV per key. The plaintext only exists in memory while we call the vendor for you. The dashboard only ever shows its first few characters.
What we store
Daily token counts by type and spend, per model, for each source; the projection built from them; and when each sample ran. No prompts, responses or conversation content. The usage APIs don't expose them.
How we use it
To show your dashboard and charge the right amount; to check our published coefficients and band sizes against real usage; and, only in aggregated and de-identified form, in research and partner work that fits the mission. We don't sell identifiable data. Details are in the Privacy Policy.
The sample is an estimate. Live, per-request tracking needs data partnerships with each model company. If you can help, email partnerships@tokenoffset.com.

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.

Key
Admin key (sk-ant-admin01-…) or Enterprise Analytics key (sk-ant-api01-…)
Sample window
Last 90 days on first connect, then the last 10 days every Sunday.

Set it up

  1. 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.
  2. 2Copy the key. It's shown once.
  3. 3In Token Offset, open Settings, Estimate sources, click Connect next to Claude, and paste the key.

What we read

GET /v1/organizations/me
Verify an Admin key and label the connection with your org name.
GET /v1/organizations/analytics/usage
Daily input, output, cache-read and cache-write tokens by model, service tier and context window.
GET /v1/organizations/analytics/cost
Daily spend with the same grouping.
GET /v1/organizations/usage_report/messages, /cost_report
The older reports, used only if the analytics API rejects an Admin key.
Not covered. Personal Pro and Max plans and Claude Team plans have no usage API. On seat-based Enterprise plans Anthropic only reports usage credits, so the sample can read low. Ask Anthropic

OpenAI 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.

Key
Admin key (sk-admin-…)
Sample window
Last 90 days on first connect, then the last 10 days every Sunday.

Set it up

  1. 1Open platform.openai.com, Settings, Admin keys and click Create new admin key.
  2. 2Copy the key. It's shown once.
  3. 3In Token Offset, open Settings, Estimate sources, click Connect next to OpenAI, and paste the key.

What we read

GET /v1/organization/usage/completions
Daily uncached, cached and cache-write input plus output tokens by model, service tier and batch. Covers Chat Completions, Responses, Realtime and Batch.
GET /v1/organization/usage/embeddings
Embedding input tokens by model.
GET /v1/organization/costs
Daily spend by line item, matched back to the model each line item names.
Not covered. ChatGPT plans, and Codex when it runs on a ChatGPT plan instead of an API key. Ask OpenAI

Cursor (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.

Key
Team API key (crsr_…)
Sample window
Last 30 days on first connect, then the last 10 days every Sunday.

Set it up

  1. 1Open the Cursor dashboard, go to API Keys and click New API Key.
  2. 2Copy the key.
  3. 3In Token Offset, open Settings, Estimate sources, click Connect next to Cursor, and paste the key.

What we read

GET /teams/members
Verify the key and show team size on the connection.
POST /teams/filtered-usage-events
Per-request input, output, cache-read and cache-write tokens and cost, rolled up by day and model.
Not covered. Personal Cursor accounts and individual X Subscription plans, which have no admin API. Ask Cursor

Grok 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.

Key
Management key, team-scoped
Sample window
Last 90 days on first connect, then the last 10 days every Sunday.

Set it up

  1. 1Open console.x.ai, go to SettingsManagement Keys and create a key scoped to your team.
  2. 2Copy the key. It's shown once.
  3. 3In Token Offset, open Settings, Estimate sources, click Connect next to Grok API, and paste the key.

What we read

GET /auth/management-keys/validation
Verify the key and find the team it belongs to.
POST /v1/billing/teams/{team}/usage
Daily prompt, cached prompt, completion and reasoning tokens plus spend, by model.
Not covered. The X Subscription: Grok chat, Grok Bot, and Grok Build or Cursor signed in with a plan. SpaceXSI has no usage API for it yet. Connect Cursor separately for your Cursor team. SpaceXSI docs

OpenRouter

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.

Key
Management key (sk-or-…)
Sample window
Last 30 days on first connect, then the last 10 days every Sunday.

Set it up

  1. 1Open OpenRouter, Settings, Management keys and create a key.
  2. 2Copy the key.
  3. 3In Token Offset, open Settings, Estimate sources, click Connect next to OpenRouter, and paste the key.

What we read

GET /api/v1/activity
Daily prompt, cached and completion tokens plus spend per model and provider.
Not covered. Anything older than 30 days, which OpenRouter doesn't keep. OpenRouter docs

Google Gemini API

Coming soon

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.

We're waiting on a Gemini API usage endpoint, or enough Vertex AI demand to build a service-account flow. If you run Gemini on Vertex and want this, email hello@tokenoffset.com.