
PostHog
Open source product analytics, session recording, and A/B testing
The Lens
PostHog gives you product analytics, session recordings, feature flags, A/B testing, and surveys in one platform. Self-host it or use their cloud. Basically, Mixpanel + Hotjar + LaunchDarkly combined, but open source. The free cloud tier is generous: 1 million events/month, 5K session recordings, unlimited feature flags. That covers most startups well past launch.
Self-hosting is free with no feature restrictions (it's the same codebase). Docker Compose or Kubernetes. The catch with self-hosting: PostHog runs on ClickHouse for analytics, which needs real infrastructure. Minimum production setup is 8GB RAM, and it grows with your event volume.
Cloud pricing scales with usage: events beyond 1M are ~$0.00031 each, recordings beyond 5K are ~$0.005 each. A mid-size app doing 5M events/month pays roughly $125/mo. That's significantly cheaper than Mixpanel or Amplitude at the same scale. Solo to small teams: free cloud tier. You'll hit 1M events/month faster than you think if you instrument everything, so be selective about what you track. Medium teams: cloud paid tier, math works out well. Large orgs: self-host for data sovereignty or use cloud enterprise.
The catch: doing everything means nothing is best-in-class. The session recordings are solid but not Hotjar-level. The feature flags work but LaunchDarkly has deeper targeting. The analytics are good but not Amplitude-deep. PostHog wins on breadth and value, not depth in any single feature.
Free vs Self-Hosted vs Paid
free self hosted paid cloud### Free Cloud Tier - 1M events/month - 5K session recordings/month - Unlimited feature flags and A/B tests - Unlimited team members
### Cloud Paid - Events: ~$0.00031/event beyond 1M (volume discounts apply) - Recordings: ~$0.005/recording beyond 5K - Surveys: ~$0.20/response beyond 250 - Example: 5M events + 10K recordings = ~$150/mo
### Self-Hosted - Free, all features included. Same MIT-licensed codebase. - Infrastructure: minimum 8GB RAM, ClickHouse + Postgres + Redis + Kafka - Realistic cost: $50-200/mo in compute for a small deployment, scaling up with event volume - Ops burden: significant. ClickHouse tuning and maintenance
### When to Pay for Cloud When self-hosting ops cost exceeds cloud pricing, or when you don't have the infra team to maintain ClickHouse. For most teams under 10M events/month, cloud is cheaper than self-hosting.
Free cloud tier handles most startups. Cloud paid is cheaper than competitors at scale. Self-host only if data sovereignty requires it.
Similar Tools
About
- Stars
- 32,415
- Forks
- 2,475
Explore Further
More tools in the directory
Get tools like this delivered weekly
The Open Source Drop — the best new open source tools, analyzed. Free.





