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โ
| Field | Description | Where to find it |
|---|---|---|
| Team ID | Your Cursor team ID (numeric) | Cursor dashboard โ Settings โ Team ID |
| Admin API Key | Enterprise Admin API key | Cursor dashboard โ Settings โ Advanced โ Admin API Keys |
Connect your Cursor accountโ
-
Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrations โ Assets.
-
Select Cursor from the left-hand menu, and then select Connect new account.
-
Enter your Team ID and Admin API Key.
-
Select Test connection to verify DoiT can access your Cursor data.
-
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.
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 dimension | Cursor value | Example |
|---|---|---|
| Provider | Cursor | Cursor |
| Billing Account | Team ID | 16757373 |
| Project/Account ID | User email | [email protected] |
| Service | Cursor (fixed) | Cursor |
| SKU | AI model name | claude-3.5-sonnet, gpt-4o |
In addition to standard dimensions, the following Cursor-specific labels are available:
| Label | Description |
|---|---|
| User | The developer's email address |
| Model | The AI model used for the request |
| Billing Category | Request type (e.g. completions, chat) |
| Max Mode | Whether Max mode was enabled |
| Headless (Background Agent) | Whether the request was from a background agent |
| Chargeable | Whether the request incurred a charge |
Delete your Cursor connectionโ
-
Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrations โ Assets.
-
Select Cursor from the left-hand menu.
-
Select the three dots menu (โฎ) at the rightmost end of the account you want to remove and select Delete.
-
Select Delete to confirm.