For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Setup Cursor

Revenium tracks Cursor IDE usage by syncing data from the Cursor Admin API. Setup is through the Revenium dashboard, where the backend handles syncing automatically. On Cursor Enterprise, you can also turn on the telemetry export to record every request as a transaction.

Requirements

  • Cursor IDE with an active subscription (Pro, Business, or Enterprise)

  • A Cursor Admin API key, created by a team admin at cursor.com/dashboard → API Keys with admin access (admin:*). This is different from a personal user key.

  • Revenium account with access to the Providers page

Connect your provider first: see Connecting Providers.

1. Add Cursor as a provider

  1. In the Revenium dashboard, go to Integrations > Providers.

  2. Select Cursor from the list of available providers.

  3. Enter your Cursor Admin API key. A team admin creates it at cursor.com/dashboard → API Keys, and it grants access to the team usage API.

  4. Save the configuration.

Once saved, Revenium syncs Cursor usage data automatically every 5 minutes. No CLI installation or local configuration is required.

Admin API key required. Revenium reads team usage events through Cursor's Admin API, which needs a team-level key, not a personal one. Cursor API keys carry scopes: create the key with admin access (admin:*), which covers the usage data Revenium reads. A key without access to team usage is refused when you link it.

2. Verify data is flowing

After saving, allow up to 10 minutes for the first sync cycle to complete. Then check Intelligence > AI Assistants > Cursor in the dashboard to confirm usage data is appearing.

Telemetry export (Enterprise)

The Admin API connection brings in what Cursor invoiced. The telemetry export adds every request on top of it: Cursor streams each request from its own servers to Revenium with the model, the tokens and cache, the conversation it belongs to and the developer who made it, and each one lands as a transaction. A Cursor team admin turns it on once in Cursor, and nothing is installed on developer machines. Keep the Admin API connection from step 1: the invoiced figures come from it.

You need:

  • A Cursor Enterprise team. Cursor does not offer OpenTelemetry Export on the Business plan.

  • A Cursor team admin, to open Team Settings.

  1. In the Revenium AI assistant setup, choose Cursor and open the Telemetry (Enterprise) tab. It shows the base URL and your Revenium metering key (rev_mk_), each with a copy button. The key appears masked on screen, so use the copy button to get the full rev_mk_ key.

  2. In Cursor, open Team Settings > OpenTelemetry Export and create a destination with the Revenium base URL:

    Cursor adds /v1/logs and /v1/metrics itself, so enter the base URL as shown. Turn the Metrics signal off and keep Logs on. Revenium reads only logs and answers the metrics signal with HTTP 410, so Test connection can fail while Metrics is on.

  3. Add this request header so Revenium files the data under your account, with the key from the Telemetry (Enterprise) tab as its value:

  4. Select Test connection, then Enable. Keep Logs on with the Model usage family on. Revenium does not read the other families or conversation content.

Requests appear on Intelligence > AI Assistants > Cursor within a few minutes. Cursor documents the export itself in OpenTelemetry Export.

Both routes, no double counting. The telemetry export and the Admin API connection measure the same usage in two ways. The dashboard shows the telemetry usage, valued at list API rates, beside what Cursor invoiced, and never adds the two together. On Cursor Business, use the Admin API connection alone: it already shows Cursor's spend by person and by model.

On the dashboard

Open Intelligence > AI Assistants > Cursor to see the Cursor dashboard. It has Overview and People tabs. Overview sets the usage Cursor's telemetry reports, valued at list API rates, beside what Cursor invoiced, and lists Invoiced by person and Invoiced by model. The two figures are never added together. The first sync may take up to 10 minutes.

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:

  1. Confirm you used a Cursor Admin API key created by a team admin, not a personal user key.

  2. Verify the key in Integrations > Providers > Cursor is correct and has not been regenerated.

  3. Confirm your Cursor subscription (Pro, Business, or Enterprise) is active.

No requests appear after enabling the telemetry export

  1. If the Metrics signal is on, turn it off, run Test connection again, then make sure the destination is enabled. Revenium answers the metrics signal with HTTP 410.

  2. Confirm the destination URL is the base URL ending in /meter/v2/otlp, without /v1/logs added to it.

  3. Confirm the header name is exactly x-api-key and its value is the full rev_mk_ key from the Telemetry (Enterprise) tab, not a Cursor key and not the masked ...abcd shown on screen. Use the copy button.

  4. Confirm Logs and the Model usage family are on in Cursor's OpenTelemetry Export settings.

  5. Run Test connection again in Cursor. A failure there means Cursor cannot reach Revenium, the key was rejected, or the metrics signal is on.

Cursor API key rejected

  • The key must be a Cursor Admin API key, created by a team admin at cursor.com/dashboard → API Keys.

  • Personal user API keys do not have access to the team usage endpoint.

  • Cursor API keys carry scopes. Create the key with admin access (admin:*). A key that cannot read team usage is refused when you link it.

  • Regenerate the key in Cursor if in doubt and update it in Integrations > Providers.

Last updated

Was this helpful?