Cursor
Cursor usage can be imported via API or CSV.
Option A: API Sync
Section titled “Option A: API Sync”-
Go to Cursor Team Settings
-
Request admin API access from Cursor support
-
Set the environment variable:
Terminal window CURSOR_ADMIN_KEY=...
Sync Behavior
Section titled “Sync Behavior”| Setting | Value | |---------|-------| | Schedule | Hourly | | Data | Token counts, model, user email, cost |
Manual Sync
Section titled “Manual Sync”pnpm cli sync cursor --days 7Check sync status:
pnpm cli cursor:statusOption B: CSV Import
Section titled “Option B: CSV Import”Faster for large historical imports when API access isn’t available.
-
Export from Cursor team dashboard → Usage/Analytics → Export CSV
-
Import the file:
Terminal window pnpm cli import:cursor-csv /path/to/export.csv
Backfill Historical Data
Section titled “Backfill Historical Data”For API-based backfills:
pnpm cli backfill cursor --from 2025-01-01 --to 2025-06-01Mark backfill as complete:
pnpm cli backfill:complete cursorReset backfill status to re-run:
pnpm cli backfill:reset cursor