AI wizard
Contents
The PostHog wizard automatically installs and instruments PostHog into your application codebase using AI. It's an agentic CLI tool that handles the entire PostHog integration process on your behalf.
Set up the PostHog platform in minutes, with a single command.
When it's done, your project is onboarded with:
How it works
Running the wizard automatically:
- Authenticates your PostHog account
- Installs the relevant PostHog SDKs
- Scans your codebase and app architecture
- Creates custom events based on real product flows
- Configures
.envfile with your project credentials - Writes code and instruments the PostHog SDKs client-side and server-side
- Generates insights and dashboards in the PostHog app
- Optionally installs the PostHog MCP server for your AI agent
AI wizard installation
We think flows like the AI wizard are pretty cool and the future of developer experience. The AI wizard is our recommended and default method for installing PostHog and getting started.
If you have any feedback or requests, we would love to hear from you. Feel free to comment on this page or open an issue on GitHub.