Skip to content

About

Dependency-free CLI to check your Cursor usage from the terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

cursor-usage-status

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.

Why this exists

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.

Security model

  • No telemetry.
  • No third-party network calls.
  • Only calls https://cursor.com/api/usage-summary by default.
  • Stores the session cookie locally with 0600 file 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.

Install from a checkout

python3 -m pip install .

Or run without installing from the checkout:

PYTHONPATH=src python3 -m cursor_usage_status.cli status

Login

Open 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 WorkosCursorSessionToken cookie value, or
  • the full Cookie request header

Then run:

cursor-usage-status login

The 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'

Usage

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.

Environment variables

CURSOR_USAGE_COOKIE='WorkosCursorSessionToken=...'
CURSOR_WORKOS_TOKEN='USER_ID::ACCESS_TOKEN'
CURSOR_USAGE_STATUS_CONFIG='~/.config/cursor-usage-status/config.json'

Auth resolution order:

  1. --cookie or --token
  2. CURSOR_USAGE_COOKIE or CURSOR_WORKOS_TOKEN
  3. saved config from cursor-usage-status login

Config path

Linux:

~/.config/cursor-usage-status/config.json

macOS:

~/.config/cursor-usage-status/config.json

Windows:

%APPDATA%\cursor-usage-status\config.json

Notes

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.

About

Dependency-free CLI to check your Cursor usage from the terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages