Product analytics, session recording, feature flagging and a/b testing that you can self-host
PostHog is commonly used as a self-hosted alternative to Google Analytics, Mixpanel, Amplitude. Replacing a SaaS tool with a self-hosted equivalent lets you avoid recurring subscription fees, keep full control of your data, and continue working even when the original vendor changes pricing, ships limits, or shuts down.
License: MIT. Built with: Python, TypeScript, Rust, JavaScript, Go, HTML, SCSS, Shell, C++, HCL, ANTLR, Perl, MDX, Dockerfile, CSS, Jinja, PLpgSQL, EJS, Makefile, CMake, Smarty, Ruby, C. Website: https://posthog.com. Source: https://github.com/posthog/posthog.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)"
Self-hosting gives you three things SaaS can’t: data ownership (the files live on disks you control), cost predictability (a one-time setup vs. recurring per-seat fees that grow with your household or team), and longevity (open-source means the app keeps working even if the maintainers move on, since you can pin a working version). The trade-off is that you take on the operational work of running a server, applying updates, and handling backups.
If you want to self-host PostHog, you can deploy a hobby instance in one line on Linux with Docker (recommended 4GB memory):
Last verified: 2026-04-28