Unofficial extension for Cursor and VS Code: plan and usage in the status bar (Pro included spend, Auto %, API %, spend caps) plus an optional local context estimate.
Not affiliated with Cursor. Uses undocumented APIs that may change without notice.
- Open Extensions (
Ctrl+Shift+X) - Search Cursor Token Usage
- Install
Download the latest .vsix from Releases, then:
Ctrl+Shift+P → Extensions: Install from VSIX...
- Plan line: e.g.
Pro · $12 left · Auto 5% · API 0%(same data source as Settings → Plan & Usage) - Context line: local estimate from rules + open editors
- Click plan item for breakdown; command Cursor Token Usage: Refresh All
- Signed in to Cursor
- Network access to
api2.cursor.sh(configurable)
Search cursorTokenUsage in settings. Key options:
| Setting | Default |
|---|---|
displayMode |
both (plan, context) |
planPollIntervalSeconds |
300 |
contextWindowSize |
200000 |
git clone https://github.com/sagarchive/cursor-token-usage.git
cd cursor-token-usage
npm install
npm run compileOpen folder in Cursor → Run Extension (F5) or npm run package for a VSIX.
MIT — see LICENSE.