PostHog logo
ConnectorPostHog

PostHog integration for Claude and Codex

Create a PostHog connection, then control which Spaces can use its approved tools and data without pasting credentials into prompts or threads.

Use PostHog from Claude

Add the PostHog connection to a Space that runs Claude, then use it from every channel in that Space.

Use PostHog from Codex

Add the PostHog connection to a Space that runs Codex, then use it from every channel in that Space.

Use PostHog from Sidekick

Connect your own OpenClaw to Sidekick while Type provides the conversations, permissions, connections, skills, and automations.

Analytics & Data

What the PostHog connector can do

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 Spaces

Connect PostHog once, then decide which Spaces can use it in threads, skills, automations, 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 use PostHog?

Yes. Add a PostHog connection to a Space that runs Claude, then use its approved tools and data from any channel in that Space.

Can Codex work with PostHog through Type?

Yes. Add a PostHog connection to a Space that runs Codex, then use its approved tools and data from any channel in that Space.

Is this the same as a PostHog MCP server?

Not exactly. Type uses connectors and connections to give selected Spaces access to approved app tools and data. Some connectors use hosted MCP, while others use OAuth, API keys, service accounts, or custom APIs.

More analytics & data connectors