Setup Cursor
Revenium tracks Cursor IDE usage by syncing data from the Cursor Admin API. The recommended setup is through the Revenium dashboard, where the backend handles syncing automatically. A CLI is also available for backfilling historical data and debugging.
Requirements
Cursor IDE with an active subscription (Pro, Business, or Enterprise)
Cursor team API key (from your Cursor team settings — this is different from a personal user key)
Revenium account with access to the Providers page
1. Add Cursor as a provider
In the Revenium dashboard, go to Settings > Providers.
Select Cursor from the list of available providers.
Enter your Cursor team API key. This key is issued from your Cursor team settings and grants access to the team usage API.
Save the configuration.
Once saved, Revenium syncs Cursor usage data automatically every 5 minutes. No CLI installation or local configuration is required.
Team API key required. Cursor has both personal user keys and team keys. Revenium uses the /teams/filtered-usage-events endpoint, which requires a team API key. A personal key will not work.
2. Verify data is flowing
After saving, allow up to 10 minutes for the first sync cycle to complete. Then check AI Assistants > Cursor in the dashboard to confirm usage data is appearing.
CLI (optional)
The Revenium CLI provides additional tools for backfilling historical data and diagnosing connectivity issues. It is not required for standard operation.
Install
Requires Node.js >= 20.19.0. Check with node --version.
CLI setup
Run the setup wizard to configure local credentials before using any CLI command:
The wizard prompts for your Cursor team API key, Revenium API key, subscription tier, and optional attribution fields. Configuration is saved to ~/.cursor/revenium/revenium.env.
Backfill historical data
To import Cursor usage data from before you enabled the integration:
Diagnose connectivity
Checks that both the Cursor API and Revenium endpoint are reachable with the provided credentials, and prints the current sync state.
Send a test metric
Sends a zero-cost synthetic event to verify the pipeline. Check AI Assistants > Cursor > Integration Logs to confirm receipt.
Command reference
revenium-cursor setup
Interactive setup wizard for CLI credentials
revenium-cursor status
Verify connectivity to Cursor and Revenium
revenium-cursor test --verbose
Send a synthetic test event
revenium-cursor backfill --since <date> --to <date>
Import historical data
revenium-cursor backfill --dry-run
Preview backfill output without sending
revenium-cursor reset
Remove CLI configuration and start fresh
Troubleshooting
No data appears after adding the provider
The backend syncs every 5 minutes. Allow up to 10 minutes for the first data to appear. If nothing shows after that:
Confirm you used a team API key, not a personal user key.
Verify the key in Settings > Providers > Cursor is correct and has not been regenerated.
Confirm your Cursor subscription (Pro, Business, or Enterprise) is active.
Cursor API key rejected
The key must be a Cursor team API key from your Cursor team settings.
Personal user API keys do not have access to the team usage endpoint.
Regenerate the key in Cursor if in doubt and update it in Settings > Providers.
Revenium API key issues (CLI only)
Cursor telemetry authenticates with a Revenium API key (
hak_orrev_prefix), not a Cursor key.Get one from Settings > API Keys in the Revenium dashboard.
Run
revenium-cursor setupto update credentials.
Last updated
Was this helpful?