You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my cursor account shows that this month i spent about 1.5B tokens but on the codeburn web dashboard it shows only spent about a a few M tokens, is this tool must be installed before use cursor?
Taking your literal question first: no, codeburn does not need to be installed before you use Cursor. It reads Cursor's own local database after the fact, so sessions from before you installed it still show up.
The gap you are seeing is real, expected, and structural rather than a parsing bug. codeburn reads ~/Library/Application Support/Cursor/User/globalStorage/state.vscdb, and that file was never meant to be a complete ledger of billed tokens. Three things are missing from it, and they compound:
Cache-read tokens are not stored locally at all. The parser hardcodes cacheReadInputTokens: 0 because the figure only exists server side. On agentic coding sessions cache reads are usually the majority of total token volume, and your account dashboard counts them.
Input is a snapshot, not a running sum. The only real input figure on disk is promptTokenBreakdown.totalUsedTokens, which is the in-app context-window meter at a point in time. It gets credited once per conversation. It is not the sum of every request's prompt, so a long tool-heavy session under-reports heavily.
Cursor Tab and autocomplete are not in there at all. codeburn reads chat bubbles, composer metadata and agent-stream blobs. There is no local record of Tab completions to read. At 1.5B tokens a month, Tab is a very likely large share of your number, and it is structurally invisible.
On top of that, tokenCount.inputTokens/outputTokens on the per-message rows sits at {0,0} on current Cursor builds, so even the per-bubble figures that used to exist are gone.
This is documented in the provider table in the README ("Output is a reply-text estimate and cache tokens are server-side only, so figures are marked estimated and undercount the Cursor admin console for long conversations"), though a difference of the size you are describing is easy to read as a bug rather than a known limitation.
Closing the gap properly would need the opt-in Cursor Admin API (POST api.cursor.com/teams/filtered-usage-events), which is referenced in a code comment as the parity path but is not wired up today. Worth noting that it is a team/admin endpoint, so it would not help every user.
One suggestion for the maintainers, since this is the second report of this shape after #326: docs/providers/cursor.md does not mention the local-versus-dashboard gap at all, only the README provider table does. Stating it in the provider doc would make this quicker to triage next time.
Closing: what this report observes is Cursor's local storage, not a codeburn defect. Cursor's state.vscdb records no cache-read tokens, no Tab/autocomplete usage, and stores a context-window snapshot rather than a cumulative total, so codeburn (and any local tool) cannot reconstruct the numbers Cursor's own subscription page shows. Details in the comment above; #575/#578 already made codeburn use the best data Cursor does expose. Reopen if you see a discrepancy codeburn audit attributes to codeburn itself.
Activity
ozymandiashh commentedon Aug 2, 2026
Taking your literal question first: no, codeburn does not need to be installed before you use Cursor. It reads Cursor's own local database after the fact, so sessions from before you installed it still show up.
The gap you are seeing is real, expected, and structural rather than a parsing bug. codeburn reads
~/Library/Application Support/Cursor/User/globalStorage/state.vscdb, and that file was never meant to be a complete ledger of billed tokens. Three things are missing from it, and they compound:Cache-read tokens are not stored locally at all. The parser hardcodes
cacheReadInputTokens: 0because the figure only exists server side. On agentic coding sessions cache reads are usually the majority of total token volume, and your account dashboard counts them.Input is a snapshot, not a running sum. The only real input figure on disk is
promptTokenBreakdown.totalUsedTokens, which is the in-app context-window meter at a point in time. It gets credited once per conversation. It is not the sum of every request's prompt, so a long tool-heavy session under-reports heavily.Cursor Tab and autocomplete are not in there at all. codeburn reads chat bubbles, composer metadata and agent-stream blobs. There is no local record of Tab completions to read. At 1.5B tokens a month, Tab is a very likely large share of your number, and it is structurally invisible.
On top of that,
tokenCount.inputTokens/outputTokenson the per-message rows sits at{0,0}on current Cursor builds, so even the per-bubble figures that used to exist are gone.This is documented in the provider table in the README ("Output is a reply-text estimate and cache tokens are server-side only, so figures are marked estimated and undercount the Cursor admin console for long conversations"), though a difference of the size you are describing is easy to read as a bug rather than a known limitation.
Closing the gap properly would need the opt-in Cursor Admin API (
POST api.cursor.com/teams/filtered-usage-events), which is referenced in a code comment as the parity path but is not wired up today. Worth noting that it is a team/admin endpoint, so it would not help every user.One suggestion for the maintainers, since this is the second report of this shape after #326:
docs/providers/cursor.mddoes not mention the local-versus-dashboard gap at all, only the README provider table does. Stating it in the provider doc would make this quicker to triage next time.ozymandiashh commentedon Aug 3, 2026
Closing: what this report observes is Cursor's local storage, not a codeburn defect. Cursor's
state.vscdbrecords no cache-read tokens, no Tab/autocomplete usage, and stores a context-window snapshot rather than a cumulative total, so codeburn (and any local tool) cannot reconstruct the numbers Cursor's own subscription page shows. Details in the comment above; #575/#578 already made codeburn use the best data Cursor does expose. Reopen if you see a discrepancycodeburn auditattributes to codeburn itself.