Analytics

Connect PostHog to any app

PostHog is the single platform for building successful products. Open-source product analytics, web analytics, session replay, feature flags, surveys, and more.

Connects with an API keyposthog.com

What the catalog holds today. Ask for anything missing and your agent reads the API documentation and adds it.

Build solutions, not workarounds.

What do you want to automate with PostHog?

Ask the assistant

You'll sign in before anything runs. What you typed comes with you.

Connect your AI client

Give your AI client this address.

https://mcp.apiant.ai

One connection does both: ask your client to act in an app once, or have it build an automation that keeps running. Any client that takes a remote MCP server. Nothing to install. Create your free account, then sign in once in your browser.

Set it up in your client
Claude Code

Run this in the directory you want to work in.

claude mcp add --transport http -s project apiant-ai https://mcp.apiant.ai

Start Claude Code there, approve the server, and sign in in the browser page it opens.

Claude Code guide (opens in a new tab)
Claude, web and desktop

Open Customize, then Connectors, then Add custom connector, and paste the address. On Team and Enterprise an owner adds it first.

Setup guide (opens in a new tab)
Cursor

Add the address to your MCP configuration as a server URL. Cursor signs you in in your browser.

Setup guide (opens in a new tab)
Zed

Open Settings, then AI, then MCP Servers, then Add Server, then Add Remote Server.

Setup guide (opens in a new tab)
Codex and the ChatGPT desktop app

Open Settings, then MCP servers, then Add server, and choose Streamable HTTP. From the terminal, Codex takes the address with its own add command and then signs you in.

Setup guide (opens in a new tab)
Any other MCP client

Paste the address where the client asks for a remote MCP server URL, and name the server apiant-ai where it lets you. APIANT's skills reach the client over the same connection.

Setup guide (opens in a new tab)

Pair it

Connect PostHog with another app

What your agent can do with PostHog

Triggers and actions 1 trigger · 9 actions

  • Trigger
    Action Performed

    Triggers when an action is performed by a user.

  • Action
    Add annotation

    Create a new annotation on the project timeline (content, date_marker, scope).

  • Action
    Capture Event

    Captures an event.

  • Action
    Evaluate feature flags

    Evaluate all feature flag values for a given distinct_id/person, returning flag states for use in automation branching.

  • Action
    Get person

    Retrieve a single person by ID.

  • Action
    List annotations

    List annotations in the project.

  • Action
    List cohorts

    List cohorts defined in the project.

  • Action
    List feature flags

    List feature flags defined in the project.

  • Action
    List insights

    List saved insights (charts/graphs) in the project.

  • Action
    List persons

    List/search persons in the project, optionally filtered by distinct_id or properties.

Related apps

More in Analytics

Reviews

What our customers say

Questions

PostHog, answered

What can start an automation from PostHog?

Any of PostHog's 1 trigger in the catalog, including Action Performed. Describe the moment in plain language and your agent picks the right one.

What can your agent do in PostHog?

Any of PostHog's 9 actions, including Add annotation, Capture Event, Evaluate feature flags and Get person. Your agent maps the data both ways and tests every scenario before it ships.

Can I use PostHog directly from Claude, ChatGPT or Cursor?

Yes. Connect your AI client to APIANT once and it works with PostHog two ways. Ask it to do something in PostHog once and it runs that action on the spot. Ask for an automation and your agent builds it, tests every scenario and keeps it running on its own. A one-off action uses your plan's tasks the same way an automation step does.

Do I need to write code against the PostHog API?

No. APIANT connects to the PostHog API for you, with your PostHog API key. Describe what you want in plain language and your agent builds it on the PostHog triggers and actions in the catalog. If you need an endpoint that is not there yet, your agent reads the PostHog API documentation and adds it.

Which apps can PostHog connect to?

Any app in the catalog; the list on this page pairs PostHog with each of them. If the other app is missing, point your agent at its API documentation and it builds the connector.

What happens when something fails?

Your agent works that out for you. It plans the failure paths along with the happy path, then tests every scenario before it ships.

Is there a free plan?

Yes. Every plan includes the agent, including free, and building from your own AI client spends no assistant credits.