What problem does it solve?
When AI observability bills spike, teams need to know which users drive the spend and why. This Skill ranks the most expensive users in PostHog AI observability and decomposes their costs into concrete drivers like volume, model choice, token usage, cache behavior, and retry loops.
Core Features & Use Cases
- Per-User Cost Ranking: Runs HogQL queries over
$ai_generation events to rank users by total cost, generations, traces, and error rate, with share-of-spend and p50/p90/p99 baseline comparisons.
- Cost Driver Decomposition: Breaks each top user's spend down by provider, model, input/output/reasoning tokens, cache usage, and request or web-search fees, then applies a decision tree to identify the root cause.
- Trace-Level Evidence: Finds a user's most expensive traces and reads representative ones to confirm whether costs come from retry loops, large context, verbose outputs, or tool-heavy generations.
- Use Case: A platform team notices LLM costs doubled this month. Use this Skill to find that one user's contract-review workflow feeds 90k-token documents to the most expensive model, then get specific optimization levers.
Quick Start
Analyze the most expensive users in AI observability over the last 30 days and explain what is driving their costs.