Skip to content

Cursor

Cursor usage can be imported via API or CSV.

  1. Go to Cursor Team Settings

  2. Request admin API access from Cursor support

  3. Set the environment variable:

    Terminal window
    CURSOR_ADMIN_KEY=...

| Setting | Value | |---------|-------| | Schedule | Hourly | | Data | Token counts, model, user email, cost |

Terminal window
pnpm cli sync cursor --days 7

Check sync status:

Terminal window
pnpm cli cursor:status

For API-based backfills:

Terminal window
pnpm cli backfill cursor --from 2025-01-01 --to 2025-06-01

Mark backfill as complete:

Terminal window
pnpm cli backfill:complete cursor

Reset backfill status to re-run:

Terminal window
pnpm cli backfill:reset cursor