Skip to main content

Connect Cursor

Cursor is an AI-powered code editor that uses large language models to help developers write, edit, and understand code. The Cursor integration imports your team's usage and spending data into DoiT Cloud Intelligence so you can analyze Cursor AI costs in Cloud Analytics.

Prerequisitesโ€‹

  • A Cursor Enterprise plan (Admin API access requires the Enterprise plan).
  • Admin role on the Cursor team.
  • A DoiT account with the Billing Profiles Admin permission.

Required credentialsโ€‹

FieldDescriptionWhere to find it
Team IDYour Cursor team ID (numeric)Cursor dashboard โ†’ Settings โ†’ Team ID
Admin API KeyEnterprise Admin API keyCursor dashboard โ†’ Settings โ†’ Advanced โ†’ Admin API Keys

Connect your Cursor accountโ€‹

  1. Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrations โ†’ Assets.

  2. Select Cursor from the left-hand menu, and then select Connect new account.

  3. Enter your Team ID and Admin API Key.

  4. Select Test connection to verify DoiT can access your Cursor data.

  5. If the test is successful, select Save to complete the setup.

    If the test fails or you need further assistance, please open an expert inquiry.

Note

Upon initial connection, DoiT ingests up to 30 days of historical usage data. The import process can take a few hours. You'll receive an email when the data is available in Cloud Analytics.

Data refreshโ€‹

DoiT refreshes your Cursor data every 6 hours. Data typically becomes available within 24โ€“26 hours of being generated by Cursor.

Reporting dimensionsโ€‹

Once connected, Cursor data maps to the following standard Cloud Analytics dimensions:

Cloud Analytics dimensionCursor valueExample
ProviderCursorCursor
Billing AccountTeam ID16757373
Project/Account IDUser email[email protected]
ServiceCursor (fixed)Cursor
SKUAI model nameclaude-3.5-sonnet, gpt-4o

In addition to standard dimensions, the following Cursor-specific labels are available:

LabelDescription
UserThe developer's email address
ModelThe AI model used for the request
Billing CategoryRequest type (e.g. completions, chat)
Max ModeWhether Max mode was enabled
Headless (Background Agent)Whether the request was from a background agent
ChargeableWhether the request incurred a charge

Delete your Cursor connectionโ€‹

  1. Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrations โ†’ Assets.

  2. Select Cursor from the left-hand menu.

  3. Select the three dots menu (โ‹ฎ) at the rightmost end of the account you want to remove and select Delete.

  4. Select Delete to confirm.