Confidence
Access Confidence feature flags, experiments, and migration tools directly from Claude Code.
SkillMaxx / Monitoring / PostHog

Access PostHog analytics, feature flags, experiments, error tracking, and insights directly from Claude Code.
/plugin install posthog@claude-plugins-officialTested ✓ on 2026-10-16: installed and loaded in a throwaway sandbox with no credentials.
Installing plugin "posthog@claude-plugins-official"...✔ Successfully installed plugin: posthog@claude-plugins-official (scope: user)
$ verify:
❯ posthog@claude-plugins-official
Status: ✔ enabledcodex plugin add posthog@openai-curatedTested ✓ on 2026-10-16: installed and loaded in a throwaway sandbox with no credentials.
Tested from a local mirror of the official openai/plugins marketplace, because the CLI reserves the official name for signed-in users.
Added plugin `posthog` from marketplace `openai-plugins-mirror`. Installed plugin root: /home/sbx/.codex/plugins/cache/openai-plugins-mirror/posthog/1.0.0 $ verify: posthog@openai-plugins-mirror installed, enabled 1.0.0 /workspace/agents/codex-mirror/plugins/posthog
Auto-loaded from your Claude Code plugins (no extra setup per xAI docs)Tested ✓ on 2026-10-16: installed and loaded in a throwaway sandbox with no credentials.
Installed 1 plugin(s) from claude-plugins-official: posthog $ verify: ai-plugin-f837d6a9: posthog [git: https://github.com/PostHog/ai-plugin.git] (claude-plugins-official)
No official Cursor instructions yet. We haven't found docs saying this works in Cursor.
Know it works? Tell us →No official Pi instructions yet. We haven't found docs saying this works in Pi.
Know it works? Tell us →Official PostHog plugin for AI clients. Access PostHog products directly from your AI coding tool.
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
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.
(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.
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.
Preview from the source repo. Images are removed.
Access Confidence feature flags, experiments, and migration tools directly from Claude Code.
Sentry error monitoring integration. Access error reports, analyze stack traces, search issues by fingerprint,...
Connect Claude to Fullstory to query behavioral analytics, session replays, and customer experience insights.
Use Datadog directly in Claude Code through a preconfigured Datadog MCP server. Query logs, metrics, traces,...