PostHog Emulator
Stateful PostHog emulator focused on OpenAPI OAuth discovery, Client ID Metadata Document OAuth, projects, users, and events.
Create an instance
Each instance is isolated, stateful, and addressable at its own host. The server generates an unguessable name; an optional {"instance":"<prefix>"} body adds a readable prefix.
curl -s -X POST https://posthog.emulators.dev/_emulate/instances
Hosted deployments create instances lazily when the returned URL is first used. The instance URL is a capability: anyone who has it can read and modify the instance, so save the returned URLs. Never store real secrets in an emulator.
Sample instance host: https://posthog.your-instance.emulators.dev
Surfaces
| Surface | Status | Path |
|---|---|---|
| PostHog API | partial | /api |
| PostHog OAuth 2.0 | supported | /oauth |
Control API
manifest | quickstart | specs | coverage | connections