Version 0.2.0 - A clean, command-line tool to check your remaining "Fast" (GPT-4) request credits for your Cursor account directly from your terminal.
- 🚀 Auto-Detection: Automatically detects your Cursor installation - no configuration needed!
- 📊 Usage Statistics: Shows your up-to-the-minute Fast (GPT-4) request usage with percentages.
- 🔐 Secure Authentication: Automatically extracts authentication tokens from Cursor's local database.
- 🌍 Cross-Platform: Works seamlessly on Windows, macOS, and Linux.
- 🎨 Clean Output: Color-coded, emoji-enhanced display for a pleasant user experience.
- ⚡ Fast & Reliable: Direct API integration with proper session token handling.
- 🛠️ Zero Configuration: Works out-of-the-box with standard Cursor installations.
You can install the tool directly from PyPI.
Prerequisites:
- Python 3.13+
piporuvfor installation.
# Using uv (recommended)
uv pip install cursor-credits
# Or using pip
pip install cursor-creditsSimply install and run - no configuration needed!
# Install
uv pip install cursor-credits
# Run
cursor-creditscursor-creditscursor-credits --help # Show help
cursor-credits --version # Show version
cursor-credits -v # Verbose output with debug infoNormal output:
👤 User ID: user_01JYA111KEE9Q4PE54ZA6LR4SG
⭐ Fast: 46/500 (9.2%)
📝 Slow: Not available
With verbose flag:
cursor-credits -vDEBUG: Found Cursor data at standard location
DEBUG: Token found in SQLite database
DEBUG: Created session token for user ID: user_01JYA111KEE9Q4PE54ZA6LR4SG
DEBUG: Successfully retrieved usage information
👤 User ID: user_01JYA111KEE9Q4PE54ZA6LR4SG
⭐ Fast: 46/500 (9.2%)
📝 Slow: Not available
Error cases:
❌ Error: Could not find Cursor authentication token.
Please make sure:
1. Cursor is installed and you're logged in
2. Cursor application has been opened at least once
- Python 3.13+
- Cursor AI editor installed and configured
- Internet connection for API requests
src/cursor_credits/
├── __init__.py # Package initialization and version info
├── api.py # Handles communication with the Cursor API
├── auth.py # Manages token extraction from storage
├── cli.py # Command-line interface entry point
├── display.py # User-facing output formatting
├── main.py # Core application logic
└── paths.py # Cross-platform path discovery
tests/
├── __init__.py # Test package initialization
└── test_main.py # Main functionality tests
The tool works by:
- Auto-Detection: Automatically detects your Cursor installation location based on your operating system
- Token Extraction: Extracts JWT authentication tokens from Cursor's SQLite database (
state.vscdb) - Token Processing: Converts JWT tokens into proper session tokens for API authentication
- API Requests: Makes authenticated requests to Cursor's usage API to fetch current usage statistics
- Display: Shows your Fast (GPT-4) request usage with clean, color-coded output
The tool only reads data and never modifies any files or account settings.
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Clone the repository
- Install dependencies:
uv pip install -e .[dev] - Run tests:
uv run pytest - Run linting:
uv run ruff check
See CHANGELOG.md for a detailed history of changes.
This is an unofficial, third-party tool and is not affiliated with, endorsed, or supported by Cursor. It is intended for personal use only. The tool only reads local data and makes read-only requests to public APIs; it does not modify any of your files or account data. Use at your own risk.
This project is licensed under the MIT License. See the LICENSE file for details.