Skip to content

: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.

3.0 KB
Raw Blame
# Personal dev overrides — copy to .env.local and uncomment what you need.
# .env.local is gitignored, so put your secrets and personal preferences here.
#
# Any value using op:// auto-resolves via the 1Password CLI when bin/start
# detects an op:// reference. Install with `brew install 1password-cli`.
#
# Precedence (highest wins): shell env > .env.local > .env.development > .env.services

# ── AI features (PostHog employees) ───────────────────────────────────
# Required to run Max and other AI features against real providers.
# OPENAI_API_KEY=op://General/sbadkrbtbdgev4mjm4xtuirfoy/credential
# ANTHROPIC_API_KEY=op://General/4n2rpvrjbmlkvpd464dekedzmy/credential
# GEMINI_API_KEY=op://General/53ir3ynk3e4h6ic4q4ftcph76i/credential
# INKEEP_API_KEY=op://General/y5mqpg2xnmzosdqocob5phlgni/credential
# AZURE_INFERENCE_ENDPOINT=op://General/yw6efvcz5ooxx5fgll3kyang5a/username
# AZURE_INFERENCE_CREDENTIAL=op://General/yw6efvcz5ooxx5fgll3kyang5a/credential

# ── Workflows / messaging (PostHog employees) ─────────────────────────
# Server-side rendering of email template designs (Unlayer export API).
# Without it, design-only template saves over the API return a 400.
# UNLAYER_API_KEY=op://General/rf2j5i5qotdt5db37mhswn5dyq/credential

# ── Billing - Enterprise license (PostHog employees) ──────────────────
# STRIPE_PUBLIC_KEY="op://General/vr7jkjl3ael7mj3rlbi4ojy3wm/credential"
# LICENSE_SECRET_KEY="op://General/fn3h7kn2j6tt3sah7d2fhitsri/credential"

# ── Personal overrides ────────────────────────────────────────────────
# Auto-login as a specific user (skips the login flow)
# [email protected]

# macOS only: Python/Node dev services run under a Seatbelt sandbox by default so
# a malicious dependency can't read credentials (~/.ssh, ~/.aws, ...) outside the
# repo. See bin/dev-sandbox. No-op on Linux. Uncomment to disable; restart hogli
# start to apply.
# POSTHOG_DEV_SANDBOX=0

# Click-to-source: hold Option+Shift (Alt+Shift) and click an element to open it in
# your editor. Off by default, because its local server on port 5678 has no auth.
# See "Opening a component's source from the browser" in developing-locally.md.
# DEV_CODE_INSPECTOR=1
# CODE_EDITOR=cursor

# Use your own API keys instead of 1Password
# OPENAI_API_KEY=sk-...

# ── hogli reading from the PostHog API ─────────
# Not needed for the ordinary case: `hogli posthog:login` signs in through your
# browser and caches a scoped, revocable token, with no key to mint. Set one of these
# only for an unattended caller (CI, a container, an agent that can't reach a browser).
# Env always wins over the cached login, so leaving a stale key here makes a fresh
# login look like it did nothing.
# POSTHOG_PERSONAL_API_KEY=phx_...
# POSTHOG_AUTH_HEADER=Bearer phx_...