posthog — Codex plugin: what it does, how to install
Connects your AI agent directly to PostHog product analytics, feature flags, error tracking, and logs. Useful for querying telemetry, toggling flags, and inspecting errors right from chat.
Open on GitHubWhat posthog does
This plugin grants the AI agent direct access to PostHog data. The assistant can query product analytics, view application logs, inspect surveys, and check LLM telemetry. You can ask questions about metrics or generate insights directly inside the conversation.
It handles experiment tracking, error analysis, and feature flag toggles without leaving the workspace. Documentation search is also supported. The plugin requires access to an active PostHog project, as it cannot pull telemetry or modify flags without it.
What it helps with
- toggle feature flags directly in chat
- analyze application errors and logs
- generate product analytics insights
- inspect survey responses and active experiments
Example prompts for the agent
- Toggle the
new-checkout-flowfeature flag in PostHog for the test group - Analyze recent application errors and logs from the past 24 hours
- Generate an insight for user conversion trends using PostHog analytics
Questions about posthog
How to install posthog in Codex?
The plugin is available in the openai/plugins repository for Codex and ChatGPT. Connecting it requires setting up access to your PostHog instance within the agent environment.
What does the posthog plugin do?
It gives the AI agent direct access to product analytics, feature flags, error tracking, logs, surveys, and experiments in PostHog. You can query data, manage flags, and search documentation directly from chat.
Does the plugin support LLM analytics and HogQL?
Yes, it supports LLM telemetry, HogQL querying, and session replay inspection alongside standard product metrics.
Source text
posthog · MIT
PostHog gives your AI agent direct access to your product analytics, feature flags, experiments, error tracking, surveys, logs, and LLM analytics. Ask questions about your data, create insights, toggle feature flags, analyze errors, search docs, and more — all from chat.
© PostHog Inc. · MIT · openai/plugins