How to get started

There are a few ways to get going, depending on how you like to work.

Wizard

Run the PostHog Wizard in your codebase to implement some basic tracking around your main features. It serves as an example of how PostHog works and gives your AI agents the skills to instrument new features properly. Takes about ~8 minutes.

npx -y @posthog/wizard@latest

MCP

Already using Claude Code, Cursor, or Codex? Add the PostHog MCP to use nearly all of PostHog's suite of analysis and data tools – instrument tracking, wrap features in flags, build dashboards, and ask questions about your data, all without leaving your editor.

PostHog Code

PostHog Code is our AI code editor (available on desktop and soon on the web). It has everything above, plus features you can't get anywhere else – like Signals, which monitors logs, errors, and session recordings to find patterns and ships PRs to fix issues automatically.