# How to connect PostHog to Hermes

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

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

ClawLink gives Hermes a more practical PostHog setup than rolling your own integration. Pair once in the browser and your always-on Hermes agent can act on PostHog for you — reading and doing real work on your behalf with no auth, token refresh, or tool wiring to build yourself.

## PostHog MCP for Hermes

Looking for a PostHog MCP server for Hermes Agent? ClawLink connects PostHog to Hermes Agent 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 OpenClaw instead? The [OpenClaw PostHog integration](https://claw-link.dev/openclaw/posthog) works the same way.

**Start here — paste this into Hermes to set up ClawLink:**

> Set up ClawLink for Hermes and tell me when it's ready.
> 1. Install the plugin: `hermes plugins install ClawLink-HQ/hermes-plugin --enable`
> 2. Start pairing with `hermes clawlink begin`. It prints an approval link, so show me the link and stop, don't wait.
> 3. I'll approve it in my browser, then reply "approved".
> 4. When I say approved, finish setup: `hermes clawlink finish`
> 5. Then run `hermes clawlink test` and tell me whether ClawLink is ready.

## Setup

It takes three steps to connect Hermes to PostHog.

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

**Alternative for any agent (no plugin needed):** if the Hermes Agent 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 Hermes Agent PostHog integration can do

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

### All 18 PostHog tools for Hermes

| 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 Hermes should do next.

**List Organization Members**

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

**List Project Dashboards**

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

**List And Manage Project Feature Flags**

> List the relevant items in PostHog, group them by priority, and recommend what Hermes 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 Hermes Agent. 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 Hermes Agent 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.

### Hermes paired but still can't use PostHog
Pairing is a two-step handshake: run `hermes clawlink begin`, approve the link in your browser, then run `hermes clawlink finish`. If you ran finish before approving, or the approval link expired, run `hermes clawlink begin` again to get a fresh link. Confirm the plugin was installed with `--enable`, then verify with `hermes clawlink test`.

### 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 Hermes Agent PostHog integration?
Yes. ClawLink is the fastest way to connect Hermes to PostHog: link your PostHog account once in the browser and Hermes Agent can call the PostHog API through 18 ready-made tools — no custom code or token handling.

### How do I connect PostHog to Hermes with ClawLink?
Install the plugin with `hermes plugins install ClawLink-HQ/hermes-plugin --enable`, then pair once: run `hermes clawlink begin`, approve the link in your browser, and run `hermes clawlink finish`. Connect PostHog in the dashboard and Hermes can use it from the next message — no config files or API keys to manage.

### How long does it take to connect PostHog to Hermes Agent?
About two minutes. Sign in, click Connect next to PostHog in the dashboard, authenticate, and Hermes Agent 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 Hermes Agent. That is fine if you want to build and maintain the integration yourself. Most teams just want PostHog working from chat.

### Hermes paired but still can't use PostHog
Pairing is a two-step handshake: run `hermes clawlink begin`, approve the link in your browser, then run `hermes clawlink finish`. If you ran finish before approving, or the approval link expired, run `hermes clawlink begin` again to get a fresh link. Confirm the plugin was installed with `--enable`, then verify with `hermes clawlink test`.

## Related

- [Hermes Ahrefs integration](https://claw-link.dev/hermes/ahrefs) — SEO backlink analysis, keyword research, and site audits
- [Firecrawl](https://claw-link.dev/hermes/firecrawl) — Scrape websites, crawl pages, extract structured data, and search the web
- [Yandex tools](https://claw-link.dev/hermes/yandex) — Search the web, translate text, and query Yandex services
