Cursor Integration
Connect your Cursor Enterprise account to track AI coding assistant spending in Grafient.
Overview
Grafient connects to your Cursor Enterprise account using the Admin API to pull spending and usage data. This integration tracks your team's AI-assisted coding costs.
The Cursor Admin API is only available on Enterprise plans. Teams and Business plans do not have Admin API access.
Prerequisites
Before you begin, make sure you have:
- A Cursor Enterprise subscription.
- Team admin access to create API keys.
- A Grafient account on the Free, Pro, or Ultimate plan.
Permissions and Security
Grafient requires a Cursor Admin API key. This key is used exclusively to read usage data. Grafient will never perform any actions on your Cursor account beyond reading billing metrics.
Your API key is encrypted before storage and is never exposed after the initial connection.
Create a Connection
Step 1: Create an Admin API Key
- Go to cursor.com/dashboard and sign in with your team admin account.
- Click the Settings tab.
- Scroll down to Advanced and find the Admin API Keys section.
- Click Create New API Key.
- Give your key a descriptive name (e.g.,
Grafient Integration). - Copy the generated key immediately - it won't be shown again.
The key starts with key_ and is only shown once. If you lose it, you'll need
to create a new one.
Step 2: Add the Key to Grafient
- In Grafient, navigate to the Integrations page from the sidebar.
- Click Add Integration.
- Select Cursor as the provider.
- Enter a label (e.g.,
Engineering Team - Cursor). - Paste the Admin API key.
- Click Add Integration to save.
What Happens Next
Once you add the integration, Grafient will:
- Validate your API key against the Cursor API.
- Backfill historical costs - up to 30 days on Free, or 365 days on Pro/Ultimate.
- Sync daily - an automated sync pulls the previous day's data.
Data Collected
| Data Point | Description |
|---|---|
| Daily cost (USD) | Total team spend per day |
| Model breakdown | Cost per model where available (e.g., GPT-4o, Claude Sonnet) |
| Request count | Number of AI-assisted coding requests |
Limitations
- The Admin API is only available on Enterprise plans - Teams and Business plans do not have access.
- Currently only team-level data is available via the API.
Troubleshooting
No cost data appears after sync
- Check for recent usage: If there has been no usage in the sync window, there will be no cost data to display.
- Try Force Sync: Click the refresh icon on your integration card to trigger a manual sync.