Skip to main content
Let your agents work with your PostHog analytics — run queries, manage feature flags, insights, dashboards, cohorts, surveys and experiments.

Connection

  • Authentication: API key (Personal API key (phx_…)).
  • Required settings:
    • Cloud region — us for US Cloud, eu for EU Cloud
PostHog → click your avatar (top right) → Account settings → Personal API keys → Create personal API key. Pick the organization/project, grant only the scopes your agent needs (e.g. query:read, action:write, annotation:write, cohort:write, dashboard:write, insight:write, feature_flag:write, experiment:write, survey:write, person:write), then copy the key (starts with phx_) — it is shown only once.See PostHog’s documentation.

Read actions (26)

Write actions (23)

Permissions

Every action above must be explicitly granted to an agent before it can be used. See Permissions for the grant model and Security for how credentials are protected.