Anthropic

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.

Learn more
PostHog Wizard hedgehog

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

OptionTypeRequired
Admin API keypasswordYes

Linking Anthropic to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Anthropic
  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
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 refreshstarting_at
cost_report

Daily cost in USD for your Anthropic organization, broken down by workspace and cost description.

Incremental, Full refreshstarting_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 refreshdate
claude_code_model_breakdown

Per-model token usage and estimated cost for Claude Code, one row per user per day per model.

Incremental, Full refreshdate