Modern enterprise-grade data exploration and visualization platform
:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Recommended VPS & Hardware Sizing
Estimated Hosting: $10 - $15/mo (e.g. Hetzner CPX21 or Linode)PostHog vs Mixpanel / Amplitude Comparison Matrix
| Evaluation Criteria | PostHog (Open Source) | Mixpanel / Amplitude (Proprietary) |
|---|---|---|
| Event Volume Costs | Fixed hardware costs only | Exponential bill growth as DAU scales |
| User Privacy / GDPR | Data never leaves your servers | Third-party US tracking processors |
| Feature Breadth | Analytics + Replay + Flags in one app | Separate subscriptions for Mixpanel + Hotjar |
Financial Impact: Migrating from Mixpanel / Amplitude to Self-Hosted PostHog
* Excludes enterprise SSO add-ons & usage overages
* Commodity Hetzner / DigitalOcean compute instance
Compare PostHog Head-to-Head
Comprehensive benchmark comparing PostHog against proprietary Mixpanel / Amplitude licensing and features.
Elixir / ClickHouse High-Volume vs Next.js / MySQL Lightweight
100% Cookie-Less GDPR Privacy vs GA4 Ad Tracking Bloat
Intuitive Self-Service BI for Entire Teams vs $75/User/Month Tableau License
User-Friendly Visual Exploration vs Enterprise Big-Data SQL Lab
Product OS (Session Replay + Funnels) vs Cookie Banner Ad Tracker
Core Capabilities & Features
Self-Host PostHog with Docker Compose
Tweak configuration ports, secrets, and volumes live. Download or copy your ready-to-run container file:
1-Click Docker Compose Generator
Generate production-ready container definitions with customizable ports and volumes.
The open source Product Operating System with event funnels & session replays
version: '3.8'
services:
posthog:
image: posthog/posthog:latest
restart: unless-stopped
ports:
- "${POSTHOG_PORT:-8000}:8000"
environment:
- SITE_URL=http://localhost:${POSTHOG_PORT:-8000}
- SECRET_KEY=${SECRET_KEY:-posthog_secret_change_me_2026}
volumes:
- posthog_data:/var/lib/posthog
volumes:
posthog_data:Frequently Asked Questions: Self-Hosting PostHog
How do I self-host PostHog using Docker Compose?
You can deploy PostHog (PostHog/posthog) on any Linux server by copying the docker-compose.yml template on this page, configuring your desired host port and persistent volume directory, and running 'docker compose up -d'.
How does PostHog compare to Mixpanel / Amplitude?
PostHog is an open-source, self-hosted alternative to Mixpanel / Amplitude built with Python, React, ClickHouse, PostgreSQL. Unlike Mixpanel / Amplitude ($20 - $800+ / month (Volume-tiered based on MTU)), PostHog has zero per-user licensing fees and keeps 100% of your data on your own infrastructure.
What are the minimum VPS RAM and CPU requirements for PostHog?
For production self-hosting (Medium difficulty tier), we recommend at least 4 GB RAM (minimum 2 GB), 2 vCPU, and 25 GB SSD storage, which typically costs $10 - $15/mo (e.g. Hetzner CPX21 or Linode).
Is PostHog free for commercial business use under the MIT license?
Yes. Distributed under the MIT license, PostHog can be self-hosted internally by businesses and engineering teams of any size without per-seat royalties.
Embed Official PostHog Badge in GitHub README
Served locally from OSSMatrix with Cloudflare global edge caching. Real-time verified alternative status, zero third-party dependencies, sub-5ms load time.
[](https://ossmatrix.com/project/posthog)<a href="https://ossmatrix.com/project/posthog" target="_blank" rel="noopener noreferrer"><img src="https://ossmatrix.com/api/badge/posthog" alt="PostHog on OSSMatrix" /></a>