PostHog/posthog

▲ 27 stars today★ 39,948⑂ 3,424

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs

About PostHog/posthog

PostHog/posthog is an open-source project on GitHub, mainly written in Python. :hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags It currently holds 39,948 stars and 3,424 forks with 5,756 open issues, and was last pushed on 2026-09-26 (repository created 2020-01-23).

Project Overview

Git Homed tracks it on the Today's Trending board, currently at rank #99 with 27 new stars today.

GitHub Repository Details

Repository PostHog/posthog · default branch master · size 7384063 KB · watchers 142 · source: GitHub REST API and repository README

README

https://github.com/PostHog/posthog/blob/HEAD/posthoglogo

https://github.com/PostHog/posthog/blob/HEAD/GitHub contributors https://github.com/PostHog/posthog/blob/HEAD/Docker Pulls https://github.com/PostHog/posthog/blob/HEAD/GitHub commit activity https://github.com/PostHog/posthog/blob/HEAD/GitHub closed issues

Docs - Community - Roadmap - Why PostHog? - Changelog - Bug reports

https://github.com/PostHog/posthog/blob/HEAD/PostHog Demonstration

PostHog is the open source platform for building self-driving products

PostHog provides every tool you need to build a successful product, and captures all the context agents need to proactively diagnose problems, uncover opportunities, and ship fixes:

You can steer it all from Slack, web, desktop (PostHog Desktop), or your own editor via the MCP.

Best of all, all of this is free to use with a generous monthly free tier for each tool. Get started by signing up for PostHog Cloud US or PostHog Cloud EU.

Table of Contents

Getting started with PostHog

PostHog Cloud (Recommended)

The fastest and most reliable way to get started with PostHog is signing up for free to PostHog Cloud or PostHog Cloud EU. Your first 1 million events, 5k recordings, 1M flag requests, 100k exceptions, and 1500 survey responses are free every month, after which you pay based on usage.

Self-hosting the open-source hobby deploy (Advanced)

If you want to self-host PostHog, you can deploy a hobby instance in one line on Linux with Docker (recommended 4GB memory):

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)"

Open source deployments should scale to approximately 100k events per month, after which we recommend migrating to a PostHog Cloud.

We _do not_ provide customer support or offer guarantees for open source deployments. See our self-hosting docs, troubleshooting guide, and disclaimer for more info.

Setting up PostHog

Once you've got a PostHog instance, you can set it up by installing our JavaScript web snippet, one of our SDKs, or by using our API. You can also connect the MCP to bring PostHog into Claude Code, Cursor, or any MCP-compatible agent.

We have SDKs and libraries for popular languages and frameworks like:

| Frontend | Mobile | Backend | | ----------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------- | | JavaScript | React Native | Python | | Next.js | Android | Node | | React | iOS | PHP | | Vue | Flutter | Ruby |

Beyond this, we have docs and guides for Go, .NET/C#, Django, Angular, WordPress, Webflow, and more.

Once you've installed PostHog, see our product docs for more information on how to set up product analytics, web analytics, session replays, feature flags, experiments, error tracking, surveys, data warehouse, and more.

Learning more about PostHog

Our code isn't the only thing that's open source 😳. We also open source our company handbook which details our strategy, ways of working, and processes.

Curious about how to make the most of PostHog? We wrote a guide to winning with PostHog which walks you through the basics of measuring activation, tracking retention, and capturing revenue.

Contributing

We <3 contributions big and small:

For an overview of the codebase structure, see monorepo layout and products.

Open-source vs. paid

This repo is available under the MIT expat license, except for the ee directory (which has its license here) if applicable.

Need _absolutely 💯% FOSS_? Check out our posthog-foss repository, which is purged of all proprietary code and features.

The pricing for our paid plan is completely transparent and available on our pricing page.

We're hiring!

https://github.com/PostHog/posthog/blob/HEAD/Hedgehog working on a Mission Control Center

Hey! If you're reading this, you've proven yourself as a dedicated README reader.

You might also make a great addition to our team. We're growing fast and would love for you to join us.

GitHub Stars & Activity

39,948Stars
3,424Forks
5,756Open issues
PythonLanguage

GitHub Popularity

GitHub stars39,948
Forks3,424
Open issues5,756
Primary languagePython
LicenseNOASSERTION
Stars gained today27
Created2020-01-23
Last pushed2026-09-26

Trending History

Daily boardrank #99 · ▲ 27 stars

Related GitHub Projects

1

harry0703 / MoneyPrinterTurbo

Python★ 126,075⑂ 19,662▲ 418 stars
→
2

sherlock-project / sherlock

Python★ 92,841⑂ 10,956▲ 104 stars
→
3

bregman-arie / devops-exercises

Python★ 84,669⑂ 20,343▲ 64 stars
→
4

666ghj / MiroFish

Python★ 74,852⑂ 11,510▲ 226 stars
→
5

usestrix / strix

Python★ 65,002⑂ 7,131▲ 208 stars
→
6

rohitg00 / ai-engineering-from-scratch

Python★ 58,258⑂ 10,110▲ 828 stars
→
7

bmad-code-org / BMAD-METHOD

Python★ 53,500⑂ 6,024▲ 36 stars
→
8

HKUDS / CLI-Anything

Python★ 50,620⑂ 4,631▲ 96 stars
→

More Trending Repositories