Observe and debug AI in production
Product analytics for LLMs. Inspect traces, spans, latency, usage, and per-user costs for AI-powered features – the context agents use to fix LLM behavior.
Install with AI in a single prompt
Paste into your terminal or code editor and make AI do the work.
What does it do?
AI Observability records every call your product makes to an LLM – the prompt that went in, the response that came out, which model answered, how long it took, what it cost, and who it was for. Calls that belong to the same conversation or agent run are stitched together into a trace, so a multi-step interaction reads as one story instead of a pile of unrelated requests. It's all captured as regular PostHog events, which is why your LLM data sits next to your product analytics, replays, and errors instead of in a separate tool.
Who is it for?
AI Observability is used across teams depending on your role.
How do I use it?
There are a few ways to explore AI Observability.
Query LLM traces from your editor
Check LLM costs, monitor errors, and analyze model performance from Cursor, Claude Code, VS Code, or any MCP-compatible agent.
Top features
Traces
Debug entire conversations, not just individual calls. PostHog automatically captures properties like person, total cost, total latency, and more.
See an interaction timeline including all generation and span events.
AI prompts
Ask PostHog AI to check what your LLM calls cost, dig into traces, and compare models. Works in PostHog AI (in-app chat), PostHog Desktop (our AI code editor), and in your product editor (using the MCP). Already signed in? Click a prompt to try it.
Costsget-llm-total-costs-for-project
Find tracesquery-llm-traces-list
Works with other PostHog tools
Use AI Observability with these other PostHog apps to maximize shareholder value.
Works with...
Product Analytics
Correlate AI usage with user behavior and business metrics
Custom dashboards
Build custom dashboards combining LLM and product metrics
Session Replay
Watch how users interact with AI features in real sessions
Feature Flags
Roll out AI features gradually and test different models
Questions?
Answers
There are a few ways you can get answers to specific questions about AI Observability.
- Check the docs
We have an entire docs-wizard dedicated to docs gardening.
- Search the community forums
81 discussions about AI Observability, there's a good chance your answer is already answered!
- Ask PostHog AI
It's an incredibly useful AI chat that understands the product, docs, community questions, our codebase, GitHub issues, and industry knowledge.
- Talk to a human
Dedicated humans are standing by and ready to assist. Best for questions about volume pricing, terms, and sexy legal stuff.
Feature comparison
Get started – free
No credit card required. You get the first 100,000 events free every month, then pricing starts at $0.00006/event and reduces with volume.