> For the complete documentation index, see [llms.txt](https://docs.logilica.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.logilica.com/integration/connecting-tools/cursor.md).

# Cursor

The Cursor connector imports daily AI coding usage for every member of your Cursor team, so your AI Coding dashboard reflects how the tool is actually being used — lines written by AI, interaction types, token spend and AI-attributed commits.

## Authentication

Logilica connects to Cursor with a Cursor **Admin API key**, supplied when you install the connector. Create one in Cursor under **Settings > Advanced > Admin API keys**. Installation also asks for a **username** to associate the connector with. Logilica only reads usage and analytics data — it never writes to your Cursor team.

See [Connecting Tools](/integration/connecting-tools.md) for the general installation flow.

## What's Imported

Logilica imports usage at a **daily, per-user** granularity, keyed on the team member's email. For each member and day it brings in:

* **Lines added and deleted by AI** — the AI-written line counts Cursor attributes to that developer for the day, not total lines changed in their commits.
* **Accepts and rejects** — accepted and rejected AI suggestions, including tab completions shown versus accepted.
* **Interaction types** — usage broken down by interaction type, such as composer, chat, agent and tab completions.
* **Request types** — requests split into **subscription-included**, **API key** and **usage-based (pay-per-use)** requests.
* **Most-used model** — the model the developer used most that day.
* **Token counts** — total token usage, summed per developer per day.
* **Estimated cost** — the spend Cursor attributes to that developer's usage for the day.
* **Modified files** — the files an AI change touched that day, with per-file AI lines added and deleted.

Logilica also imports **AI-attributed commits**: commit hash, repository, branch, author and the lines added and deleted by AI within each commit. Team members are discovered from your Cursor team roster so contributor identities resolve correctly.

## Good to Know

* **Kept in sync automatically.** After the initial import, Logilica refreshes this connection on a regular schedule — you don't need to re-trigger imports.
* **First import covers the last 180 days.** Logilica pulls the most recent 180 days of Cursor usage on the first scan.
* **Cursor data feeds the AI Coding dashboard**, where AI usage is shown alongside your delivery metrics.
