Skip to main content

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.

Steven Silverstone
Updated by Steven Silverstone

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

  1. In the LinearB sidebar, go to Settings > Company Settings > AI Tools > Cursor.
  2. Generate a Cursor Admin API key.
    1. Open your Cursor account and go to Account Settings.
    2. Locate the Cursor Admin API Keys section (usually under the Settings tab or account management area).
    3. Click Create New API Key.
    4. Give the key a descriptive name (for example, LinearB Usage Integration).
    5. Immediately copy the generated key. Cursor will not display it again.
• Treat the API key like a password and keep it secure.
• Only “admin” or “unpaid admin” roles can generate API keys for usage data.
  1. Paste the key into the Token field in LinearB.
  2. Click Save.
  3. 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.

  1. Go to Settings > Company Settings > AI Tools > Cursor.
  2. Generate a new Cursor Admin API Key from your Cursor account (Account Settings > Admin API Keys > Create New API Key).
  3. Copy the new key and paste it into the Token field in LinearB.
  4. Click Reauthorize. No further configuration is required; the integration reconnects automatically.
  5. Verify the status turns green and shows Connected with a recent Last updated date.
• Cursor does not require additional selections (such as organizations or reset options).

• 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:

How did we do?

AI Tools Usage

Configuring GitHub Copilot

Contact