:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
PostHog ingests and stores your analytics, errors, replays, and business data so you and your agents can query and act on it. It gives you every tool you need to build a successful product, and captures the context agents need to diagnose problems, uncover opportunities, and ship fixes:
Analytics
Product analytics: Autocapture or manually instrument event-based analytics to understand user behavior. Analyze your data with visualizations or SQL.
Web analytics: Monitor web traffic and user sessions with a GA-like dashboard. Track conversion, web vitals, and revenue.
Group analytics: Analyze multi-seat accounts and other groups of users.
Session replay
Session replay: Watch real user sessions from your website or mobile app to diagnose issues and understand user behavior.
Replay Vision: Let AI watch your recordings for you and turn them into queryable observations.
Heatmaps: See where users click, scroll, and move on your site.
Observability
Error tracking: Track errors, get alerts, and resolve issues to improve your product.
Logs: Ingest, search, and analyze log data alongside the rest of your product data.
Tracing: Follow distributed traces straight to the line of code that broke.
Ship and iterate
Feature flags: Safely roll out features to select users or cohorts.
Experiments: Test changes and measure their statistical impact on goal metrics. Set up experiments with no code, too.
Early access features (beta): Let users opt into betas and register interest in upcoming features.
Talk to users
Surveys: Ask anything with our collection of no-code survey templates, or build custom surveys with our survey builder.
Support: Run customer support with a chat widget and a unified inbox, next to the product data behind each ticket.
Workflows: Automate actions and messages to your users, triggered by your product data.
Data
Warehouse: Collect, store, transform, and query all the context behind your product. Includes a managed warehouse, 120+ sources, and a SQL editor with BI and data visualization.
Data pipelines: Run custom filters and transformations on your incoming data. Send it to 25+ tools or any webhook in real time, or batch export large amounts to your warehouse.
Endpoints: Build custom API endpoints powered by your PostHog data.
AI and agents
AI observability: Capture traces, generations, latency, and cost for your LLM-powered app. Run LLM-as-a-judge evaluations to catch regressions.
MCP analytics: See how agents actually use your MCP server.
PostHog AI: Ask your product data anything. PostHog AI builds insights, writes SQL, and finds replays for you.
Self-driving: Turn signals in your product data (errors, rage clicks, failed queries, and more) into researched reports and pull requests, delivered to your Inbox for you to review and merge.
The remote MCP server is https://mcp.posthog.com/mcp. It routes to the correct data region (US or EU) when your human logs in. Install it into Claude Code, Cursor, Codex, VS Code, Zed, or PostHog Desktop with:
There are many ways to contribute to PostHog. We want to help developers know exactly how users are interacting with their stuff, in a way that doesn't send data to 3rd parties.
Creating a PR
Just create a new pull request if you want to make an update.
We recommend you create an issue if one doesn't already exist, and continue the conversation on the issue to get more info/alignment on what to build.
We don't assign issues to individuals. If you want to work on something, just create a pull request and link the issue.
For more information on how we review PRs, please refer to our handbook.
External PRs: what to expect
We welcome contributions. A few quick notes so you know how we operate:
PRs are triaged/assigned via CODEOWNERS or manual assignment to the owning team.
The current week's Support Hero for the owning team is usually the first point of contact, but customer support takes priority. Reviews can be delayed when support load is high.
Expect acknowledgement when we have bandwidth; thorough reviews may come later. It's fine if this takes a few days to a couple of weeks depending on load.
We sometimes close PRs that are out of scope, would add long-term maintenance burden, or go stale. You're always welcome to reopen with updates.
Fork pull requests get no backend CI run, so they cannot merge as they are. After review, a PostHog engineer re-creates the change on a branch in this repository. You stay the author of your commits, and the merged commit lists you as a co-author. See Pull requests from forks.
Before we do a full review, please:
Ensure that you've run tests locally and resolved any merge conflicts before submitting.
Respond to automated review feedback (e.g. AI bot review comments) where applicable.
Keep the change focused; add tests and docs where it meaningfully improves clarity.
Follow existing patterns and conventions in the areas you touch.
If AI helped write your contribution, read our AI contributions policy — we expect disclosure and full understanding of the code you submit.
Escalation/deferral can happen for security-sensitive or critical paths, unclear product impact, or when support load is high—another engineer may pick it up later. We sometimes reward helpful contributions with merch even if a PR doesn’t merge.
Issues
Spotted a bug? Has deployment gone wrong? Do you have user feedback? Raise an issue for the fastest response.
... or pick up and fix an issue if you want to do a Pull Request.
Issues with paid features
We prefer not to accept external contributions for paid features. If you don't see the feature on your local build, it's most probably paid.
Feature requests
Request features on our public roadmap. We love every idea. Please give us as much context on the why as possible.
Features
We strive to keep our roadmap up-to-date, while our WIP page lists the features we're actively working on. We aren't generally expecting contributions towards these fronts since we've already decided who's going to be working on it and have allocated enough resources towards it.
As a rule of thumb - if you wanna work on a specific feature that fits with helping developers understand product usage and/or extending PostHog to ingest more of their customer's data, we'll generally like it.
If you are at all unsure, just raise an issue to discuss it first, and we'll attempt to respond very quickly.