-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cursor Extra Usage is inaccurate for Business plans #2903
Copy link
Copy link
Open
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Cursor Extra Usage is inaccurate for Business plans —
usage-summary.usedexcludes Cursor Token FeeProblem
The Cursor Extra Usage displayed in CodexBar is inaccurate for Cursor Business plans.
The issue comes from this Cursor API:
https://cursor.com/api/usage-summaryThe
limitreturned by this endpoint is correct, butuseddoes not include charges from Cursor Token Fee.As a result, requests that incur Cursor Token Fee are not reflected in Extra Usage, causing CodexBar to report a lower usage amount and percentage than the actual amount charged by Cursor.
Comparison with another Cursor API
Cursor also provides:
https://cursor.com/api/dashboard/get-team-spendThe
spendCentsreturned by this endpoint includes Cursor Token Fee and matches the actual Extra Usage charges.However, the response from this endpoint is quite large, so it may not be ideal if the only goal is to retrieve Extra Usage.
A more accurate approach
Another solution is to calculate Extra Usage by aggregating the current month's Usage Events / usage history.
Cursor's usage history indicates whether each request is included in the Business plan:
USAGE_EVENT_KIND_INCLUDED_IN_BUSINESS: included in the Business plan and should not count toward Extra UsageBy aggregating the actual costs of all billable events for the current month, the resulting Extra Usage matches the actual charges shown on the Cursor Dashboard.
Reproduction
After using a model that incurs Cursor Token Fee:
spendCentsfromget-team-spendincreases accordingly.usedreturned byusage-summarydoes not include the Cursor Token Fee.The
usage-summary.usedfield does not represent the complete Extra Usage billing amount for Cursor Business plans.I suggest using either
get-team-spend.spendCentsor aggregating the current month's Usage Events to calculate Cursor Extra Usage.CodexBar:
Actually accurate: