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.

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
| Option | Type | Required |
|---|---|---|
Admin API key | password | Yes |
Linking Cursor to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Cursor
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary 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 refresh | date | — |
usage_events | Per-request usage events with model, token usage, and cost. Only syncs the last 365 days on initial sync | Incremental, Full refresh | timestamp | — |
spend | Per-member spend for the current billing cycle. Full refresh only | Full refresh | — | — |