# posthog

This plugin lets Claude Code query PostHog analytics, feature flags, experiments, and error tracking. Use it when product data needs to be handled from a coding session.

- plugin · `type=plugin` · Claude Code · ★ 95
- Author: PostHog
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PostHog/ai-plugin
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/plugins/posthog

## What it does

posthog gives Claude Code access to PostHog tools for feature flags, A/B tests, analytics, dashboards, and error tracking. Its task-focused skills load when a request matches their scope, such as creating an experiment, auditing flags, or investigating a sync issue. The package includes 27+ tools and 30+ skills.

PostHog access uses OAuth when an MCP tool is used for the first time. A self-hosted instance requires `POSTHOG_MCP_URL`. Sending Claude Code sessions to LLM Analytics is a separate setup that needs both `POSTHOG_LLMA_CC_ENABLED=true` and `POSTHOG_API_KEY`; without OAuth, the PostHog tools cannot connect.

## Install

### Claude Code (native platform)

**Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin install posthog@claude-plugins-official
```
In the agent chat (not a shell):
```text
/plugin marketplace add anthropics/claude-plugins-community
```
In the agent chat (not a shell):
```text
/plugin install posthog@claude-community
```
In the agent chat (not a shell):
```text
/plugin marketplace add anthropics/claude-plugins-official
```

## When to use it
- create and update feature flags
- run and inspect an A/B test
- query analytics and funnel conversion
- trace errors affecting users
- build a dashboard from insights

## Example prompts
- Show my feature flags and create `new-onboarding` for 50% of users.
- Find errors from the last 24 hours and identify which ones affect the most users.
- Show the checkout funnel conversion rate and add that insight to the Growth dashboard.

## Similar
- [posthog-errors](https://affpapa.org/en/nevibecode/skills/posthog-errors.md) — skill · ★ 783
- [posthog-analytics](https://affpapa.org/en/nevibecode/skills/posthog-analytics.md) — skill · 809 installs
- [querying-posthog-data](https://affpapa.org/en/nevibecode/skills/querying-posthog-data.md) — skill · 773 installs
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40459
- [shipping-and-launch](https://affpapa.org/en/nevibecode/skills/shipping-and-launch.md) — skill · 58400 installs
- [eas-update-insights](https://affpapa.org/en/nevibecode/skills/eas-update-insights.md) — skill · 36800 installs

## Other versions with the same name
- [posthog · openai](https://affpapa.org/en/nevibecode/plugins/posthog-inc-posthog.md) — ★ 7604

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
