Skip to main content
plugin

posthog · posthog — Claude Code plugin: what it does, how to install

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.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install posthog@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-community
/plugin install posthog@claude-community
/plugin marketplace add anthropics/claude-plugins-official
Open on GitHub

What posthog 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.

What it helps with

  • 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 for the agent

  • 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.

How to install posthog

Plugin marketplace

/plugin install posthog@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-community
/plugin install posthog@claude-community
/plugin marketplace add anthropics/claude-plugins-official

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about posthog

How do I install posthog in Claude Code?

Add the marketplace with /plugin marketplace add anthropics/claude-plugins-official, then install it using /plugin install posthog@claude-plugins-official.

What does posthog do?

It brings PostHog tools into Claude Code for analytics, feature flags, experiments, dashboards, and error tracking. Matching skills guide common PostHog tasks.

How does posthog connect to a self-hosted PostHog instance?

Set POSTHOG_MCP_URL to the MCP endpoint of the instance, then authenticate through OAuth when the first PostHog tool is used.

Similar plugins

All plugins for DevOps and infrastructure →

posthog by other authors comes first.

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor