PostHog

Product analytics, session recording, feature flagging and a/b testing that you can self-host (alternative to Mixpanel, Amplitude, Heap, HotJar, Optimizely).

GitHub stars
40,247
License
MIT
Latest release
desktop-v0.61.686
13 October 2026
Last commit
12 October 2026
Runs on
Python

Commits per month, last 12 months

37,079 commits

Replaces

Paid products PostHog can stand in for.

How to self-host PostHog

PostHog runs on Python. The project's own install guide is the place to start; most people put it on a small server with Docker and a reverse proxy for HTTPS.

  1. Get a server: a home server, a VPS, or a managed app host.
  2. Install it the way the project's docs describe, usually with Docker Compose.
  3. Put it behind HTTPS and set up backups before you add real data.
  4. Update it regularly. Watch the project's releases.

New to self-hosting? Start with the beginner's guide.

Similar apps

  • Superset

    Modern data exploration and visualization platform.

    75.1k stars
  • Metabase

    Easy way for everyone in your company to ask questions and learn from data.

    49.6k stars
  • Umami

    Simple, fast, privacy-focused alternative to Google Analytics.

    39.3k stars
  • Postiz

    Schedule posts, track the performance of your content, and manage all your social media accounts in one place (Alternative to Buffer, Hootsuite, Sprout Social).

    37.1k stars
  • Netron

    Visualizer for neural network and machine learning models.

    33.6k stars
  • Plausible Analytics

    Simple, lightweight (< 1 KB) and privacy-friendly web analytics.

    29.4k stars

Questions

Is PostHog free?

Yes. PostHog is open source under the MIT license, so you can use it without paying for a license. You pay only for the server it runs on.

Can I self-host PostHog?

Yes. PostHog runs on Python. Follow the install guide in the project's documentation, or use a host that installs it for you.

What does PostHog replace?

People use PostHog instead of Amplitude, Mixpanel, Adobe Analytics or Segment.

Is PostHog still maintained?

The last change to PostHog's code was on 12 October 2026, with 37079 commits in the last 12 months.

Topics

AnalyticsSoftware Development - Feature Toggle

App data from awesome-selfhosted (CC BY-SA 3.0), stars and activity from GitHub.