The Cursor integration brings your team's Cursor usage into Leanmote's AI Usage and AI ROI: who uses Cursor and how often, accepted lines and tabs, requests by model, tokens and spend. Leanmote reads it from Cursor's API once a day, for the whole Cursor team, with a single key.
What Leanmote reads from Cursor
Team members: name, email and role, to match each Cursor user with a person in Leanmote and count seats.
Daily usage: per person and day, lines added and accepted, applies, accepts and rejects, tabs shown and accepted, and chat, composer and agent requests.
Usage events: model, kind of request, tokens and cost of each request.
Spend: what each member spent in the current billing cycle.
Leanmote only reads. It never sees your code, prompts or responses, and it never changes anything in your Cursor team.
The key has to be a team API key
Cursor has personal keys and team keys. Leanmote needs a team API key with view permissions only. A personal key is accepted when you paste it, but Cursor rejects every request with it (401 Unauthorized) and Leanmote gets no data.
Only a Cursor team admin can create a team key. If you are not one, ask your Cursor admin to create it and connect it.
Cursor offers these APIs to Enterprise teams.
Connect Cursor
In Cursor, as a team admin, open cursor.com/dashboard → API Keys, choose the Team tab and click New API Key.
Name:
Leanmote, so you can tell it apart later.Expires: we recommend 1 year. Never also works. When the key expires, Leanmote stops receiving data until someone connects a new key, and Leanmote does not warn you beforehand: write down the date.
Permissions: check only the view permission of Members, Usage and spend and Analytics. Leanmote does not need any manage permission.
Copy the key (it starts with
crsr_). Cursor shows it only once.In Leanmote, open
Administration → Integrations, find Cursor, click Connect and paste the key.
One key covers the whole organization. If more than one person connects a Cursor key, Leanmote uses the most recent one.
If you already connected an older Cursor Admin API key, you don't need to change anything: Cursor keeps it working until it expires or someone revokes it. When you replace it, use a team key with view permissions as above.
The key belongs to the person who connected it
The key is saved under the Leanmote user who pasted it. If that person is archived or removed from the organization, Leanmote stops reading Cursor even if the key still works in Cursor. When the person who connected Cursor leaves, have someone else connect a key from their own account.
If the data stops
Leanmote reads the previous day every day. If the key stops working (it expired, it was a personal key, it lacks one of the view permissions, it was revoked, or the person who connected it left), Cursor usage stops showing from that day on:
Create a new team API key in Cursor, as above.
Connect it again in
Administration → Integrations → Cursor.Write to support with the date the data stopped, so we can load the missing days.
Connection details
Detail | Value |
Connection type | Team API key of your Cursor team. No OAuth. |
Who connects in Cursor | An admin of the Cursor team: only admins can create team keys. |
Who can connect in Leanmote | Owner or Manager. |
Write access | None. The key has view permissions only, so it cannot change anything in your Cursor team. You can revoke it at any time from API Keys in the Cursor dashboard, where you also see when it was last used. |
Permissions required
Members (view), Usage and spend (view) and Analytics (view). Leanmote only calls these read endpoints:
/teams/members,/teams/daily-usage-data,/teams/filtered-usage-eventsand/teams/spend.
Related articles
