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
Personal API Key phx_ Critical (full admin access) CRUD flags, read persons, query insights, delete data
Installs
26
GitHub Stars
2.8K
First Seen
Jan 30, 2026
posthog-security-basics — jeremylongshore/tons-of-skills-marketplace