Unofficial, dependency-free Python CLI for checking your personal Cursor usage summary from the terminal.
This tool calls the same dashboard endpoint your browser uses:
https://cursor.com/api/usage-summary
It is not affiliated with Cursor or Anysphere.
Cursor does not appear to provide an official CLI for personal Pro usage status. The official SDK API key used by tools like pi-cursor-sdk can list models and user metadata, but it does not authenticate to the dashboard usage endpoint.
This tool uses a browser dashboard session cookie instead.
- No telemetry.
- No third-party network calls.
- Only calls
https://cursor.com/api/usage-summaryby default. - Stores the session cookie locally with
0600file permissions on Unix-like systems. - Never prints the cookie or token.
- Raw JSON output is redacted by default.
Treat the saved cookie like a password. Do not paste cookies, tokens, raw state.vscdb files, or unredacted API responses into GitHub issues.
python3 -m pip install .Or run without installing from the checkout:
PYTHONPATH=src python3 -m cursor_usage_status.cli statusOpen Cursor in the Brave profile where you are already signed in, then open DevTools, Network, and load:
https://cursor.com/api/usage-summary
Copy either:
- the
WorkosCursorSessionTokencookie value, or - the full
Cookierequest header
Then run:
cursor-usage-status loginThe prompt uses hidden input so the cookie is not echoed.
You can also pass it explicitly if you are careful with shell history:
cursor-usage-status login --token 'USER_ID::ACCESS_TOKEN'cursor-usage-status
cursor-usage-status status
cursor-usage-status status --json
cursor-usage-status status --raw
cursor-usage-status logout
cursor-usage-status config-path--raw prints the Cursor response with likely sensitive fields redacted. To print the exact response, use --raw --no-redact only in a private terminal.
CURSOR_USAGE_COOKIE='WorkosCursorSessionToken=...'
CURSOR_WORKOS_TOKEN='USER_ID::ACCESS_TOKEN'
CURSOR_USAGE_STATUS_CONFIG='~/.config/cursor-usage-status/config.json'Auth resolution order:
--cookieor--tokenCURSOR_USAGE_COOKIEorCURSOR_WORKOS_TOKEN- saved config from
cursor-usage-status login
Linux:
~/.config/cursor-usage-status/config.json
macOS:
~/.config/cursor-usage-status/config.json
Windows:
%APPDATA%\cursor-usage-status\config.json
The dashboard cookie expires or rotates. If you get HTTP 401 or 403, run cursor-usage-status login again with a fresh cookie from your browser.
This tool intentionally does not read Cursor Desktop local auth by default. The current target use case is browser dashboard auth, because that matches pi users who authenticate Cursor SDK separately with a Cursor SDK API key.