Cursor

Cursor

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect Cursor to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Enter your Cursor Admin API key to automatically pull your team's Cursor usage and spend data into the PostHog Data warehouse.

You need a Cursor team plan (Business or Enterprise). A team admin can create an API key in the Cursor dashboard under Settings → Cursor Admin API Keys.

Configuration

OptionTypeRequired
Admin API keypasswordYes

Linking Cursor to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Cursor
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
members

Current team members with their roles. Full refresh only

Full refresh
daily_usage

Per-user daily usage metrics (lines accepted, tabs, agent requests). Only syncs the last 365 days on initial sync

Incremental, Full refreshdate
usage_events

Per-request usage events with model, token usage, and cost. Only syncs the last 365 days on initial sync

Incremental, Full refreshtimestamp
spend

Per-member spend for the current billing cycle. Full refresh only

Full refresh