Glad the breakdown helped.
On the API question, in short: there isn’t a REST endpoint right now that returns token usage split by GitHub repo or workspace for individual Pro accounts.
A few details to make the full picture clear:
- Programmatic usage data is only available via the Admin API
/teams/filtered-usage-events,/teams/daily-usage-dataand the Analytics API. These are Team and Enterprise features and require a team admin API key. Those endpoints aren’t available on Pro solo. Docs: Admin API | Cursor Docs and Analytics | Cursor Docs - Even there, usage is attributed by user, model, and day, not by a specific repo or workspace. A per-repo breakdown isn’t available on any plan yet.
- The API you found at api.cursor.com/v1/… is the Cloud Agents API for managing agents. It doesn’t provide usage or token breakdown.
So for a personal repo-level dashboard, there isn’t a ready data source yet. On Pro, you can only view usage in the Dashboard.
This is exactly what several users have already requested. If you want, you can upvote or add your use case in these threads to help give it more signal:
- We need a deterministic way to attribute Cursor token usage to local IDE sessions, features, and subagents
- Chat/Agent Session Metadata for Client, Task, and Cost Attribution
Let me know if you want me to expand on any part of this.