PostHog logo
AI agent integrationPostHog

PostHog integration for multiplayer collaboration with AI agents using Claude Code or Codex

One governed connection your whole team and its AI agents can share, with approved actions and human review, so working in PostHog never means pasting credentials into a prompt.

Use PostHog from Claude Code

Bring PostHog context into engineering work while Type keeps app access attached to the teammate and workspace.

Automate PostHog with Codex

Let coding agents ask for the right app action, preserve conversation context, and keep humans in the approval loop.

Connect open agent workflows

Use Type as the collaboration layer around OpenClaw and other LLM workflows that need app access.

Analytics & Data

What the PostHog integration exposes

PostHog is an open-source product analytics platform tracking user interactions and behaviors to help teams refine features, improve funnels, and reduce churn

One connection, many teammates

Connect PostHog once, then decide which teammates can use it for threads, automations, skills, and coding work.

Representative actions

  • Add dashboard collaborators with access level

    Add collaborators to a specific project dashboard. Requires 'project_id' and 'dashboard_id'. Supports JSON, form-urlencoded, and multipart data. Returns added collaborator details. Auth: 'PersonalAPIKeyAuth'. IMPORTANT REQUIREMENTS: 1. The dashboard must have restriction_level > 21 (not on the lowest restriction level). Use POSTHOG_PARTIAL_UPDATE_OF_A_PROJECT_S_DASHBOARD to set restriction_level to 37. 2. The user being added cannot be the dashboard owner or a project admin (they already have inherent access). 3. Currently only level 37 (edit access) can be explicitly specified. 4. Use POSTHOG_LIST_ORGANIZATION_MEMBERS_WITH_PAGINATION to find valid user UUIDs.

  • Add member to organization role

    Add a member to an organization role by submitting their details and UUID in JSON/form, using organization and role IDs. Requires PersonalAPIKeyAuth. Success gives a 201 status.

  • Add persons to static cohort

    Add persons to a static cohort by their UUIDs. Use when you need to manually add specific users to a static cohort. Only works with static cohorts (is_static=true), not dynamic cohorts.

  • Add product intent to project

    Tool to add a product intent to a PostHog project. Use when you need to register a project's intention to use a specific PostHog product feature. Product intents help track which features (product analytics, feature flags, data warehouse, experiments, surveys) a project plans to use.

  • Add project specific member roles

    Add members with specific roles to a project by providing their user_uuid and level (member or admin). Requires project_id in the URL. Supports JSON, form-data, and form-urlencoded input. Returns the newly created membership data upon success. Note: This endpoint only works for projects with access control enabled (private projects). If the project does not have access control enabled, the API will return a 404 "Endpoint not found" error. Access control is an Enterprise feature that can be enabled in Project Settings > Access Control.

Connection

API and auth details

PostHog's API uses personal API keys, typically as bearer tokens, against a region or self-hosted PostHog base URL for projects, queries, insights, feature flags, persons, cohorts, and events.

FAQ

Questions people ask before connecting PostHog

Can Claude Code use PostHog?

Yes. Type lets an AI teammate use connected PostHog actions from a governed workspace context, so Claude Code work can reference the app without copying credentials into a local prompt.

Can Codex work with PostHog through Type?

Yes. Codex can collaborate through Type with app context, skills, and approved actions. The PostHog catalog entry includes public integration details and example capabilities where available.

Is this the same as a PostHog MCP server?

Type exposes connected app capabilities to AI teammates and coding agents through Type's integration layer. Teams use it when they want shared app access, human review, and teammate-level permissions around agent work.

More analytics & data apps for AI teammates