Skip to content

Cursor

Cursor usage can be imported via API or CSV.

Option A: API Sync

  1. Go to Cursor Team Settings

  2. Request admin API access from Cursor support

  3. Set the environment variable:

    Terminal window
    CURSOR_ADMIN_KEY=...

Sync Behavior

SettingValue
ScheduleHourly
DataToken counts, model, user email, cost

Manual Sync

Terminal window
pnpm cli sync cursor --days 7

Check sync status:

Terminal window
pnpm cli cursor:status

Backfill Historical Data

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