posthog-security-basics

Installation
SKILL.md

PostHog Security Basics

Overview

Secure PostHog API key management, least-privilege access, and secret rotation. PostHog has two key types with very different security profiles: the Project API Key (phc_...) is intentionally public and safe to include in frontend bundles, while the Personal API Key (phx_...) grants admin access and must never be exposed.

Prerequisites

  • PostHog account with admin access
  • Understanding of environment variable management
  • .gitignore configured

Instructions

Step 1: Understand Key Security Profiles

Key Type Prefix Exposure Risk Capabilities
Project API Key phc_ Low (designed to be public) Capture events, evaluate flags, identify users
Related skills
Installs
25
GitHub Stars
2.2K
First Seen
Jan 30, 2026