💰 Cursor Usage & Cost Tracker
Monitor your Cursor AI usage, token consumption, and costs in real-time

Track your Cursor AI spending with comprehensive usage monitoring directly in VS Code. Never be surprised by your AI usage costs again!

🚀 Quick Setup
1. Get Your Session Token
- Go to cursor.com/dashboard (make sure you're logged in)
- Press
F12
→ Application tab → Storage → Cookies → https://cursor.com
- Find
WorkosCursorSessionToken
and copy its value
- Paste the token when the extension prompts you
2. Install & Use
- Install from VS Code Marketplace
- Extension activates automatically
- View usage in the "Cursor Price Tracking" panel
- Check costs in the status bar
✨ Features
- Real-time usage tracking for last 24 hours
- Cost monitoring with color-coded indicators (✅ Low, ⚠️ Medium, 🚨 High)
- Model breakdowns (Claude, GPT, etc.) with token counts
- Status bar integration with click-to-refresh
- Privacy first - token stays local, direct API communication only
🛠️ Commands
Command |
Description |
Refresh Usage Data |
Update panel with latest data |
Configure Session Token |
Set up your token |
Debug API |
Test connectivity |
⚙️ Configuration
Setting |
Description |
Default |
cursorPriceTracking.sessionToken |
Your Cursor session token for API access |
"" |
To configure:
- Open VS Code Settings:
Ctrl+,
(Windows/Linux) or Cmd+,
(Mac)
- Search for "cursor price tracking"
- Paste your session token in the "Session Token" field
🚨 Troubleshooting
"No session token configured" → Follow setup guide above
"Error fetching data" → Check internet, verify you're logged into cursor.com, get fresh token
"No usage data" → Use Cursor AI first, or check if all usage was free/included
🤝 Contributing
We welcome contributions!
- Fork the repository
- Create feature branch:
git checkout -b feature/amazing-feature
- Make changes and test with
F5
in VS Code
- Commit:
git commit -m 'feat: add amazing feature'
- Push and create Pull Request
Development Setup
git clone https://github.com/Ittipong/cursor-price-tracking.git
cd cursor-price-tracking
npm install
npm run watch # Start development
# Press F5 to test
📄 License
MIT License - see LICENSE file.
Privacy: Your session token stays local. Extension communicates only with Cursor's official API.
☕ Support This Project
If this extension helps you save money and track your AI costs, consider buying me a coffee! ☕

Or scan the QR code:
Or use the widget:
Your support helps maintain and improve this free extension! 🙏
⭐ Star the repo if this helps track your AI costs!
🐛 Report issues: GitHub Issues