Anthropic
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 Anthropic to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your Anthropic Admin API key to pull your organization's Claude usage, cost, and admin data into the PostHog Data warehouse.
Create an Admin API key (prefixed sk-ant-admin...) in your Anthropic Console. Only organization admins can create one, and the Admin API is not available for individual accounts.
Configuration
| Option | Type | Required |
|---|---|---|
Admin API key | password | Yes |
Linking Anthropic to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Anthropic
- 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 |
|---|---|---|---|---|
users | Members of your Anthropic organization. | Full refresh | — | — |
invites | Pending and historical invitations to join your Anthropic organization. | Full refresh | — | — |
workspaces | Workspaces in your Anthropic organization (includes archived workspaces). | Full refresh | — | — |
api_keys | API keys provisioned across your Anthropic organization's workspaces. | Full refresh | — | — |
workspace_members | Membership rows mapping users to the workspaces they belong to, one row per (workspace, user). | Full refresh | — | — |
usage_report | Claude Messages API token usage aggregated into daily buckets, broken down by model, workspace, API key, service tier, context window, and inference geo. | Incremental, Full refresh | starting_at | — |
cost_report | Daily cost in USD for your Anthropic organization, broken down by workspace and cost description. | Incremental, Full refresh | starting_at | — |
claude_code_analytics | Claude Code productivity metrics, one row per user per day: sessions, lines of code, commits, pull requests, and tool-action accept/reject counts. | Incremental, Full refresh | date | — |
claude_code_model_breakdown | Per-model token usage and estimated cost for Claude Code, one row per user per day per model. | Incremental, Full refresh | date | — |