Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Cursor Token Usage

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.

Install

Cursor (Open VSX)

  1. Open Extensions (Ctrl+Shift+X)
  2. Search Cursor Token Usage
  3. Install

Manual (VSIX)

Download the latest .vsix from Releases, then:

Ctrl+Shift+P → Extensions: Install from VSIX...

Features

  • 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

Requirements

  • Signed in to Cursor
  • Network access to api2.cursor.sh (configurable)

Settings

Search cursorTokenUsage in settings. Key options:

Setting Default
displayMode both (plan, context)
planPollIntervalSeconds 300
contextWindowSize 200000

Development

git clone https://github.com/sagarchive/cursor-token-usage.git
cd cursor-token-usage
npm install
npm run compile

Open folder in Cursor → Run Extension (F5) or npm run package for a VSIX.

See DOCS.md and DEBUG.md.

License

MIT — see LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages