Connect Cursor to LinearB
Connect Cursor to LinearB with an Admin API key to measure adoption, accepted code, model usage, tokens, and estimated consumption.
Overview
Connect Cursor to LinearB to collect Cursor usage and adoption data across your organization.
Cursor is connected using a Cursor Admin API key with the
admin:read scope. In LinearB, this is shown as the
Access token connection type.
Data Provided by Cursor
Depending on the data returned by Cursor, the connection can provide:
- Active and engaged users
- AI-assisted requests
- Code suggestions and acceptances
- Accepted lines of code
- Model usage
- Token usage
- Estimated consumption
Adoption and accepted-lines data appears in AI Analytics.
Model, token, and estimated-consumption data is available through Metrics Builder. Predefined consumption queries can be grouped by supported dimensions such as model, team, repository, or day.
Historical Data and Collection Cadence
- LinearB can backfill up to 30 days of historical Cursor usage during the initial connection.
- Activity outside the available initial backfill window does not appear in LinearB.
- After the initial connection, Cursor usage data is updated daily.
Before You Begin
Verify that you have:
- Access to AI Tools settings in LinearB.
- An admin or unpaid-admin role in Cursor.
- Permission to create a Cursor Admin API key.
admin:read scope. User API keys and Agent API keys do not
provide the usage data required by LinearB.
Create a Cursor Admin API Key
- Sign in to Cursor with an admin or unpaid-admin account.
- Open Account Settings.
- Go to Settings → Advanced → API Keys.
- Click Create New API Key.
- Enter a descriptive name, such as LinearB Usage Integration.
- Select the
admin:readscope. - Create the key.
- Copy and securely store the generated key.
Connect Cursor in LinearB
- Go to Settings → Company Settings → AI Tools → Integrations.
- Click Add New.
- Select Cursor.
- Click Continue.
- Select Access token.
- Click Continue.
- Paste the Cursor Admin API key into the Token field.
- Click Connect.
LinearB validates the token and its permissions. When validation succeeds, Cursor — Access token appears in the Connected list.
Verify the Connection
- Open Settings → Company Settings → AI Tools → Integrations.
- Select Connected.
- Select Cursor — Access token.
- Confirm that the integration status is Connected.
- Allow time for the initial historical import and daily processing.
- Open AI Analytics and confirm that Cursor adoption and acceptance data appears.
Edit the Cursor Connection
Use Edit mode to replace the Cursor Admin API key without disconnecting the integration.
- Go to Settings → Company Settings → AI Tools → Integrations.
- Select Connected.
- Select Cursor — Access token.
- Under Main Settings, click Edit.
- Update the Cursor Admin API key in the Token field.
- Click Save changes
How did we do?
Connect Claude Code using the Analytics API
Connect GitHub Copilot Enterprise