cursor-quickstart
Connecting Cursor brings your Cursor spend into Harness Cloud & AI Cost Management alongside your cloud costs. The connector uses a Cursor Team API key with Admin scope to pull usage and cost data from your Cursor account, so you can analyze AI spend in Cost Explorer, attribute it with Views and Cost Categories, and govern it with budgets and anomaly detection, the same workflow you already use for cloud.
Before You Begin
Cursor Team API key: A Team API key with Admin scope from your Cursor account. Go to the Cursor documentation on creating API keys to generate one. You cannot use an individual Cursor account to generate a Team API key.
Set Up the Cursor Connector
To connect Cursor, go to Cloud & AI Cost Management > Account Settings > AI Providers and click AI Provider, and then select Cursor.
Step 1: Name the Connector
- On the Overview panel, enter a Name for the connector.
- Optionally, add a Description and Tags to organize and filter connectors.
- Click Continue.
Step 2: Add the API Key
On the Connector Details panel, provide the Cursor Team API key as a Harness secret. Do the following:
-
In the API Key field, click Create or Select a Secret.
-
To use an existing secret, select it from the list, then click Apply Selected.
-
To add a new secret, click New Secret Text, enter a Secret Name, and provide your Cursor Team API key as the Secret Value.
Go to Add and reference text secrets to review all secret creation options.
-
-
Click Continue.
Step 3: Verify the Connection
On the Connection Test panel, Harness validates the API key against your Cursor account. Once the verification is successful, click Finish to create the connector.
