Cursor Integration Guide

Last updated: November 4, 2026

Span's Cursor integration connects to your Cursor team with a team API key and pulls daily usage and usage-based billing events for each developer, so Cursor adoption and spend appear next to your other AI tools.

Why it matters

  • See who uses Cursor and how often: weekly and monthly active users, AI days per week, by team and person.

  • Compare tools: Cursor appears beside Copilot, Claude Code, and other tools on the same Tool utilization page.

  • Track cost: Cursor seat cost and usage-based charges feed the AI Spend report.

How it works

Span reads two kinds of Cursor data:

  • Daily usage per developer: Cursor's daily active flag, accepted lines added and deleted, accepted tab completions, request counts, and most-used model.

  • Usage events: per-request model, tokens, and charges.

Metric

How Cursor data feeds it

Weekly / Monthly active users and their ratio

A developer is active on any day Cursor's own daily active flag is set. Span rolls those days into 7-day and 30-day windows.

AI days / week

Active Cursor days per eligible coding day, × 7.

Accepted lines of code

Accepted lines added + accepted lines deleted + accepted tab completions × 2.

Accepted AI Lines vs. All Merged Lines

Accepted lines ÷ lines in merged pull requests. Can exceed 100%.

Base spend

Your plan price per developer, prorated per day from the developer's first Cursor activity in the billing period. Default: Team plan, $40.

Overage spend

Usage-based token calls, at Cursor's token fee plus token cost. On the Enterprise plan, also usage Cursor marks as included.

Span matches Cursor data to people by email address.

View the data under AI Effectiveness → AI insights → Tool utilization (choose Cursor in the tool selector) and AI Effectiveness → AI spend. Filters include date range, team, person, and IC level.

Setup

Before you start: you need admin access in Span and team admin access in Cursor.

  1. Create a team API key in Cursor. A team admin creates the key from the Cursor dashboard under API Keys, with the admin:* scope. It must be a team key: a personal user API key won’t work, even with admin scope. See Cursor's API key documentation.

  2. Connect in Span. Go to Settings → Integrations, find Cursor, click Connect, and paste the key (it starts with crsr_). Span checks the key against Cursor's API before saving.

  3. Check emails. Each developer's Cursor email must match the email on their Span person record.

  4. Set your plan. Under Settings → Integrations → AI Spend Integration Settings, choose Team or Enterprise, enter your price per developer, and set the billing date. For an Enterprise plan you can also record a pre-committed amount.

  5. Wait for the first sync. Cursor data syncs nightly at 2:30 AM UTC, so allow up to 24 hours. Metrics typically reflect activity through the previous day.

Things to know

  • Tab completions count as 2 lines each. Cursor reports tab accepts, not lines, so Span assumes 2 lines per accepted tab. Cursor's line totals in Span run higher than tools that report lines directly.

  • Accepted lines aren't shipped lines. They include code accepted on branches that never merge, code later rewritten, and deletions. The Accepted AI Lines vs. All Merged Lines percentage can pass 100%.

  • Overage excludes included usage on non-Enterprise plans. Span counts only usage-based charges unless the connection is set to the Enterprise plan.

  • Unmatched usage drops out. Cursor events with no user email, and developers whose Cursor email doesn't match Span, don't appear.

  • Usage-based spend covers active people. Span attributes Cursor usage-based (overage) spend only to people who are active in Span. After someone is marked inactive, their overage spend no longer appears in AI spend, including earlier months.

  • Span measures accepted lines. Cursor metrics in Span count the lines developers accept, rather than accepts as a share of suggestions shown.

  • No code content. Span collects usage metrics and billing events, not the code itself.

  • Worked example. On Monday a developer accepts 300 lines added, 100 lines deleted, and 50 tab completions. Span records 300 + 100 + (50 × 2) = 500 accepted lines. If your team merged 400 lines that day, Accepted AI Lines vs. All Merged Lines for Cursor reads 500 ÷ 400 = 125%.

Troubleshooting

  • No data after setup: confirm the key is a team key and still valid, and wait for the first nightly sync.

  • Some developers missing: open the Integrations status on the Tool utilization page and select Cursor. People in Missing usually have a different email in Cursor; emails in Unknown don't match anyone in Span.

  • Numbers lower than expected: check the date range banner at the top of the report, and confirm your version control integration is connected, since merged lines come from it.

Related articles

AI Tool Adoption Report

AI Spend Report

Understanding Accepted AI Lines vs. All Merged Lines

Why AI tool or Spend data might be missing for a person

Capture Cursor Cloud Agents with auspex

Need help?

Contact your Span account team or reach out to support@span.app.