Task infrastructure
PostHog uses shared task infrastructure to run agents across its products. Use these guides when your scripts or agent instructions need to work with a PostHog task environment.
- Detect a PostHog task environment – Check the environment variables that PostHog supplies in a cloud sandbox.
- Task-runs API reference – Read and manage task runs through the API.