Configuring Cursor
LinearB connects with Cursor to measure conversational coding activity, from chat requests to code completions. Admins can configure the integration in Settings with a personal access token, allowing Cursor adoption and usage metrics to appear in AI Insights.
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—such as code suggestions, chat requests, and automated agents—and what impact they have on your workflow.
Admins can configure Cursor in Settings > Company Settings > AI Tools > Cursor by providing a personal access token (PAT). Once connected, usage data appears in AI Insights.

Overview
Cursor metrics allow you to:
- Track active and engaged users across your 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 widgets in AI Insights.

Setup Steps
- In the LinearB sidebar, go to Settings > Company Settings > AI Tools > Cursor.
- Generate a Cursor Admin API key.
- Open your Cursor account and go to Account Settings.
- Locate the Cursor Admin API Keys section (usually under the Settings tab or account management area).
- Click Create New API Key.
- Give the key a descriptive name (for example, LinearB Usage Integration).
- Immediately copy the generated key. Cursor will not display it again.
• Only “admin” or “unpaid admin” roles can generate API keys for usage data.
- Paste the key into the Token field in LinearB.
- Click Save.
- Verify the connection shows as Connected with the last updated date. If the connection status is not green or shows Disconnected, your Cursor integration token may have expired. To restore the connection, follow the steps in Reauthorizing Cursor.

Metrics
Once connected, the following metrics are available 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 in AI Insights
Once enabled, Cursor activity appears in:
- AI Tools Usage — Adoption trends, request types, and code acceptance metrics.
- AI Adoption — Cursor’s contributions alongside Copilot 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 from your Cursor account (Account Settings > Admin API Keys > Create New API Key).
- Copy the new key and paste it into the Token field in LinearB.
- Click Reauthorize. No further configuration is required; the integration reconnects automatically.
- Verify the status turns green and shows Connected with a recent Last updated date.
• If the status remains disconnected after reauth, confirm the API key has Admin privileges and hasn’t expired.

Troubleshooting
If Cursor data does not appear in AI Insights:
- Confirm the PAT is valid and has not expired.
- Ensure recent Cursor activity has occurred in the selected repositories.
- Verify that AI Services are enabled for your organization.
- Re-enter the token if the status changes to Disconnected.

Related Articles
- Enabling LinearB AI Services
- AI Insights
- Configuring LinearB AI & Automations
- Configuring GitHub Copilot
How did we do?
AI Tools Usage
Configuring GitHub Copilot