SkillMaxx / Monitoring / PostHog

PostHog logo

PostHog

Access PostHog analytics, feature flags, experiments, error tracking, and insights directly from Claude Code.

PluginMonitoringSource ↗Claude marketplace ↗Codex marketplace ↗

Stars
★ 91
Last updated
Hands-on tests
Tested ✓ in 3 of 5

Install

Tested ✓✓ Verified from docsOfficial docs ↗
/plugin install posthog@claude-plugins-official

Tested ✓ on 2026-10-16: installed and loaded in a throwaway sandbox with no credentials.

Log excerpt
Installing plugin "posthog@claude-plugins-official"...✔ Successfully installed plugin: posthog@claude-plugins-official (scope: user)
$ verify:
  ❯ posthog@claude-plugins-official
    Status: ✔ enabled
1 run, latest 2026-10-16

PostHog AI plugin

Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.

Installation

Claude Code
  1. Install the plugin:

    claude plugin install posthog
    

    Or install from this repo as a marketplace:

    claude plugin marketplace add PostHog/ai-plugin
    claude plugin install posthog@posthog
    
  2. Authenticate via OAuth:

    # Just enter Claude Code anywhere
    claude
    # Then, use the /mcp command within Claude, select plugin:posthog:posthog, and press Enter
    /mcp
    

    Then follow the browser prompts to log into PostHog.

  3. (Optional) Send Claude Code sessions to PostHog LLM Analytics.

    Add to ~/.claude/settings.json (global) or .claude/settings.local.json (per-project):

    {
      "env": {
        "POSTHOG_LLMA_CC_ENABLED": "true",
        "POSTHOG_API_KEY": "phc_...",
        "POSTHOG_HOST": "https://eu.i.posthog.com"
      }
    }
    

    Both POSTHOG_LLMA_CC_ENABLED=true and POSTHOG_API_KEY are required. Sessions are sent when Claude Code exits. Set POSTHOG_LLMA_PRIVACY_MODE=true to redact prompt/output content. Add custom properties to all events with POSTHOG_LLMA_CUSTOM_PROPERTIES (JSON string, e.g. '{"ai_product": "my-app"}'). Set POSTHOG_AI_PURPOSE to declare what the session is doing relative to the repo — documented values are authoring and review, emitted as $ai_purpose. Useful when a harness wraps an agent it can't modify (e.g. a CI job running Claude Code as a reviewer); left unset the property is omitted.

Session capture without the rest of the plugin

To send Claude Code sessions to PostHog LLM analytics without the skills, the slash commands, or the MCP server, install the capture plugin on its own:

claude plugin marketplace add PostHog/ai-plugin
claude plugin install posthog-telemetry@posthog

It registers one SessionEnd hook and nothing else, so it adds nothing to the context of a session. It needs only the Python standard library, and it reads the same environment variables as step 3 above.

Install it instead of the posthog plugin, not alongside it. Both register the same hook, so running both parses and uploads every session twice. PostHog dedupes the events themselves, because their UUIDs are derived from the session, but the two hooks race on the status file.

Read the full README on GitHub →

Preview from the source repo. Images are removed.

Similar alternatives

Confidence

Plugin · Development

Access Confidence feature flags, experiments, and migration tools directly from Claude Code.

★ 9Tested ✓ in 2

Sentry

Plugin · Monitoring

Sentry error monitoring integration. Access error reports, analyze stack traces, search issues by fingerprint,...

★ 4Tested ✓ in 4

Fullstory

Plugin · Monitoring

Connect Claude to Fullstory to query behavioral analytics, session replays, and customer experience insights.

★ 11Tested ✓ in 2

Datadog

Plugin · Monitoring

Use Datadog directly in Claude Code through a preconfigured Datadog MCP server. Query logs, metrics, traces,...

★ 1Tested ✓ in 3

↑↓ to move · Enter to open · Esc to close