# How to connect PostHog to OpenClaw

> Connect PostHog to OpenClaw in one click. 18 PostHog tools your agent can call from chat. No API keys.

Web version: https://claw-link.dev/openclaw/posthog

ClawLink gives OpenClaw a more practical PostHog setup than rolling your own integration. Install one ClawHub skill, connect PostHog in the browser, and OpenClaw can call real PostHog actions from any chat surface with no auth, token refresh, or tool wiring to build yourself.

## PostHog MCP for OpenClaw

Looking for a PostHog MCP server for OpenClaw? ClawLink connects PostHog to OpenClaw and exposes 18 PostHog tools your agent can call over [MCP](https://claw-link.dev/learn/what-is-an-mcp-server), with [hosted auth](https://claw-link.dev/learn/oauth-for-ai-agents) and nothing to run or maintain yourself. Using Hermes instead? The [Hermes PostHog integration](https://claw-link.dev/hermes/posthog) works the same way.

**Start here:** install the ClawLink plugin (`openclaw plugins install clawhub:clawlink-plugin`), pair it in the browser, then connect the app in the ClawLink dashboard. The interactive install prompt is on the web version of this page: https://claw-link.dev/openclaw/posthog

## Setup

It takes three steps to connect OpenClaw to PostHog.

1. **Install ClawLink** — add the plugin to OpenClaw once.
2. **Connect PostHog** — one-click OAuth in the ClawLink dashboard.
3. **Use it from chat** — ask OpenClaw in plain English.

**Alternative for any agent (no plugin needed):** if the OpenClaw plugin route isn't available or doesn't work, any AI agent with shell access can use the ClawLink CLI instead:

```bash
npx -y @useclawlink/cli login          # sign in via browser — no API key to paste
npx -y @useclawlink/cli connect posthog  # connect PostHog (browser OAuth)
npx -y @useclawlink/cli actions posthog  # list available actions
npx -y @useclawlink/cli run posthog <action> --input '<json>'  # execute (add --confirm for writes)
```

## What the OpenClaw PostHog integration can do

18 PostHog tools are ready for OpenClaw once the account is connected.

### All 18 PostHog tools for OpenClaw

| Tool | What it does |
|---|---|
| **List organization projects** `posthog_list_organization_projects` | List all projects in your PostHog organization |
| **List organization members** `posthog_list_organization_members` | List members of your PostHog organization |
| **List project dashboards** `posthog_list_project_dashboards` | List dashboards in a PostHog project |
| **List and manage project feature flags** `posthog_list_and_manage_project_feature_flags` | List feature flags in a PostHog project |
| **Get feature flag details** `posthog_get_feature_flag_details` | Get details for a specific feature flag |
| **Get feature flag status** `posthog_get_feature_flag_status` | Get the status of a feature flag |
| **List project experiments** `posthog_list_project_experiments` | List A/B experiments in a PostHog project |
| **Get experiment details** `posthog_get_experiment_details` | Get details for a specific experiment |
| **Get experiments stats** `posthog_get_experiments_stats` | Get statistics for experiments |
| **List project surveys** `posthog_list_project_surveys` | List surveys in a PostHog project |
| **List project session recordings** `posthog_list_project_session_recordings` | List session recordings in a PostHog project |
| **List or delete persons with optional filters** `posthog_list_or_delete_persons_with_optional_filters` | List persons in a PostHog project with optional filters |
| **Get event definitions** `posthog_get_event_definitions` | List event definitions in a PostHog project |
| **Get project person trends** `posthog_get_project_person_trends` | Get person trends for a PostHog project |
| **Get funnel insights in project** `posthog_get_funnel_insights_in_project` | Get funnel insights in a PostHog project |
| **List project actions** `posthog_list_project_actions` | List actions in a PostHog project |
| **List groups by type** `posthog_list_groups_by_type` | List groups by type in a PostHog project |
| **Get group property definitions** `posthog_get_group_property_definitions` | Get group property definitions |

## Example prompts

**List Organization Projects**

> List the relevant items in PostHog, group them by priority, and recommend what OpenClaw should do next.

**List Organization Members**

> List the relevant items in PostHog, group them by priority, and recommend what OpenClaw should do next.

**List Project Dashboards**

> List the relevant items in PostHog, group them by priority, and recommend what OpenClaw should do next.

**List And Manage Project Feature Flags**

> List the relevant items in PostHog, group them by priority, and recommend what OpenClaw should do next.

## ClawLink vs. building it yourself

The alternative to ClawLink is usually manual integration setup plus your own token handling, permission troubleshooting, and tool plumbing for OpenClaw. That is fine if you want to build and maintain the integration yourself. Most teams just want PostHog working from chat.

| | Manual | ClawLink |
|---|---|---|
| **Setup flow** | Collect and store the right PostHog credentials yourself, then keep the account mapping and request format correct. | ClawLink keeps the setup in one hosted flow so non-technical users can link PostHog without custom integration screens. |
| **Ongoing maintenance** | You own refresh logic, permission debugging, environment config, and every provider-specific edge case for PostHog. | ClawLink handles the repetitive integration plumbing so your team can focus on the workflow instead of the infrastructure. |
| **Agent usability** | You still need to expose the right PostHog actions to the runtime in a format your agent can reliably use. | 18 tools for PostHog are already exposed through ClawLink, so the agent can read and act from chat immediately. |

## ClawLink vs. Composio

Composio also exposes PostHog to AI agents. It is developer infrastructure: Python and TypeScript SDKs, an MCP server, and a catalog past 1,000 apps, aimed at teams shipping agent products. ClawLink is built for OpenClaw users instead. You install the plugin once, connect PostHog in the browser, and the 18 tools above work from chat. There is no SDK, no config file, and no API key handling. Choosing between them? Read the full [Composio alternatives](https://claw-link.dev/hub/composio-alternatives) comparison.

### OpenClaw installed the PostHog skill but can't call the tools
The ClawHub skill teaches OpenClaw about PostHog, but the calls run through the ClawLink plugin and your connected account. Make sure PostHog is connected in the dashboard, then start a fresh chat so OpenClaw reloads the tool catalog. If OpenClaw runs as a persistent gateway, restart it so the new tools register.

### Connection succeeds but no tools appear
Reconnect PostHog from the dashboard, then start a fresh chat if the runtime still has the old tool catalog loaded.

### The PostHog account is connected but the action fails
Check whether the connected account has access to the workspace, inbox, store, or project you are trying to use. Most failures at this stage are permission mismatches, not ClawLink bugs.

### The setup form accepts credentials but calls still fail
Re-enter the credentials carefully and verify the account-level permissions for PostHog. Basic and token-based integrations tend to fail on formatting mistakes or limited account roles.

### Is there a OpenClaw PostHog integration?
Yes. ClawLink is the fastest way to connect OpenClaw to PostHog: link your PostHog account once in the browser and OpenClaw can call the PostHog API through 18 ready-made tools — no custom code or token handling.

### How do I add PostHog to OpenClaw with ClawLink?
Paste the setup prompt from this page into OpenClaw. It installs the ClawLink PostHog skill from ClawHub, then you click Connect in the dashboard to authorize PostHog. OpenClaw calls the tools from the next message — no config files or API keys.

### How long does it take to connect PostHog to OpenClaw?
About two minutes. Sign in, click Connect next to PostHog in the dashboard, authenticate, and OpenClaw can use it from the next chat message.

### Why use ClawLink instead of wiring PostHog up myself?
The alternative to ClawLink is usually manual integration setup plus your own token handling, permission troubleshooting, and tool plumbing for OpenClaw. That is fine if you want to build and maintain the integration yourself. Most teams just want PostHog working from chat.

### OpenClaw installed the PostHog skill but can't call the tools
The ClawHub skill teaches OpenClaw about PostHog, but the calls run through the ClawLink plugin and your connected account. Make sure PostHog is connected in the dashboard, then start a fresh chat so OpenClaw reloads the tool catalog. If OpenClaw runs as a persistent gateway, restart it so the new tools register.

## Related

- [Connect Ahrefs](https://claw-link.dev/openclaw/ahrefs) — SEO backlink analysis, keyword research, and site audits
- [DataforSEO](https://claw-link.dev/openclaw/dataforseo) — SEO data APIs for keywords, SERP, and site audits
- [Firecrawl](https://claw-link.dev/openclaw/firecrawl) — Scrape websites, crawl pages, extract structured data, and search the web
