devtools

PostHog – Centralized Analytics & Feature Flags for Faster Product Wins

PostHog gives founders a single stack for product analytics, session replay, error tracking, feature flags and experimentation, letting you ship faster and keep all data in one place. 40k+ GitHub stars.

From the repo · “: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.”

advanced⏱ 1-2 hours💵 Free
40,377 stars+94★ this week3,533 forksPythonGuide quality 8/10 · reviewed Oct 9Updated 10/21/2026100% free · open source
What it is

Build a full analytics and experimentation platform for your product in no time.

Real use case example

"A founder wants to A/B test two new landing pages for their product launch next week. They set up PostHog's experiment feature in 5 minutes, create two versions of the page, and start the experiment within PostHog's dashboard. In just a few days, they'll have real-time data on which page converts better, allowing them to make data-driven decisions and optimize for growth."

Best insideCursorClaude DesktopAny AI Client
When to use it
  • •When you need to track user behavior and product metrics in one place
  • •When you want to debug code and identify errors with session replay and error tracking
  • •When you need to run experiments and gather feedback with feature flags and surveys
Ready-to-paste prompt
posthog capture 'user signed up' --properties '{"plan": "premium"}'
Heads up: You need to replace `YOUR_PROJECT_API_KEY` with your actual PostHog project API key, which can be found in the PostHog dashboard under `Project Settings` > `API Keys`
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

🔑 Needs an API key

Works after you add credentials — the setup agent will ask you for them.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/posthog && curl -fsSL https://workflowstacks.com/api/skills/posthog/claude-skill -o ~/.claude/skills/posthog/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How PostHog – Centralized Analytics & Feature Flags for Faster Product Wins works
Codeflow
Free to inspect

PostHog – Centralized Analytics & Feature Flags for Faster Product Wins is a very large Python project (~6.4M lines across 32074 code files, plus 5657 test files). Setup is light: installs like a normal app — add your API keys. Reading the code is optional. Last commit this month, Other license, has a test suite.

Size
Very large codebase
~6.4M lines · 32074 code files · days to read — use, don't read
Setup
One-command install
Installs like a normal app — add your API keys. Reading the code is optional.
Runs on
Python · Node.js · Docker
Needs API keys (.env)
Python 55%TypeScript 36%Rust 7%HCL 1%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    AGENTS.md
    The instructions the AI actually follows
  3. 3
    bin/hog
    Where the program starts running
  4. 4
    package.json
    Dependencies and the commands it exposes
  5. 5
    .env.example
    The API keys and settings you must provide
What's in each folder
posthog/Core code — the actual logic5379 files
frontend/Frontend / UI7638 files
services/Backend / API1677 files
packages/Sub-packages / plugins593 files
bin/Command-line entry points147 files
cli/Command-line entry points99 files
docs/Documentation337 files
products/Folder23407 files
READMEHas testsDocumentedCI checksDocker readyOther licenseUpdated this month
Quick Actions
Details
Creator
PostHog
Language
Python
Category
devtools
Published
1/23/2020

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/posthog.svg)](https://workflowstacks.com/skills/posthog?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.