Configuring Cursor
Measure Cursor AI usage across repositories and developers. This integration surfaces request activity, code suggestions, and acceptance metrics to help you assess AI effectiveness.
LinearB integrates with Cursor to track adoption, request activity, and acceptance metrics for conversational coding. This integration helps you understand how developers are using Cursor’s AI capabilities (code suggestions, chat requests, composer usage, and agents) and what impact they have on your workflow.
Company admins configure Cursor in Settings → Company Settings → AI Tools → Cursor by providing a Cursor Admin API key. Once connected, Cursor usage data appears in AI Insights.
Summary
- Generate a Cursor Admin API key in Cursor.
- Paste the key in Settings → Company Settings → AI Tools → Cursor in LinearB.
- Confirm the status shows Connected with a recent Last updated timestamp.
- Review metrics in AI Insights.
Overview
Cursor metrics allow you to:
- Track active and engaged users across teams.
- Measure AI-assisted requests, including chat, agent, and composer activity.
- Monitor code suggestions generated by Cursor and how many are accepted.
- Evaluate Cursor’s overall contribution to the codebase.
This data feeds directly into the AI Tools Usage and AI Adoption panels in AI Insights.
Before you begin
- You must be a Company Admin in LinearB to configure AI Tools.
- In Cursor, only admin or unpaid admin roles can generate API keys for usage data.
• Copy the key immediately after creation — Cursor will not display it again.
Step 1 – Generate a Cursor Admin API key
- Open Cursor and go to Account Settings.
- Locate the Cursor Admin API Keys section (under the Settings tab or account management area).
- Click Create New API Key.
- Name the key (for example, LinearB Usage Integration).
- Copy the generated key and store it securely.
Step 2 – Connect Cursor in LinearB
- In LinearB, go to Settings → Company Settings → AI Tools → Cursor.
- Paste the key into the Token field.
- Click Save.
- Verify the connection shows Connected with a recent Last updated timestamp. If the status is not green or shows Disconnected, your Cursor token may have expired or been revoked.
Metrics available in AI Insights
Once connected, the following Cursor metrics can appear in AI Insights:
- Active Users — Average number of developers using Cursor per day.
- Engaged Users — Developers actively accepting AI suggestions per day.
- Code Tabs Suggested — Average number of AI-generated code blocks suggested per day.
- Code Tabs Accepted — Average number of suggested code blocks accepted per day.
- Code Acceptances — Average number of accepted AI completions per day.
- Code Lines Accepted — Number of AI-suggested lines accepted per day.
- Agent Requests — Average number of AI agent requests per day.
- Composer Requests — Average number of AI-assisted composer requests per day.
- Chat Requests — Average number of chat-based AI requests per day.
- CMDK Requests — Average number of Cursor CMDK (command kit) requests per day.
Verify Cursor data in AI Insights
After you connect Cursor, verify it appears in:
- AI Tools Usage — Adoption trends, request types, and code acceptance metrics.
- AI Adoption — Cursor’s contributions alongside other AI tools and LinearB AI.
Reauthorizing Cursor
If the Cursor integration becomes Disconnected (for example, because the API key expired or was revoked), you can reauthorize it as follows:
- Go to Settings → Company Settings → AI Tools → Cursor.
- Generate a new Cursor Admin API Key in Cursor (Account Settings → Admin API Keys → Create New API Key).
- Copy the new key and paste it into the Token field in LinearB.
- Click Reauthorize.
- Verify the status turns green and shows Connected with a recent Last updated timestamp.
• If the status remains disconnected, confirm the API key has Admin privileges and hasn’t expired.
Troubleshooting
If Cursor data does not appear in AI Insights:
- Confirm the API key is valid and has not expired or been revoked.
- Ensure recent Cursor activity exists (usage data may take time to populate).
- Verify that AI Services are enabled for your organization.
- If the integration status shows Disconnected, re-enter the token and reauthorize.
Related articles
If you still can’t see Cursor data after setup, contact support@linearb.io or visit the LinearB Help Center.
How did we do?
Configuring GitHub Copilot