exploring-llm-costs

Originally fromposthog/skills
Installation
SKILL.md

Exploring LLM costs

PostHog attaches per-call cost metadata to every $ai_generation and $ai_embedding event at ingestion time. Every cost question reduces to an aggregation over those two event types — the interesting variation is only in how you group, filter, and compare.

This skill covers the common cost investigations: total spend, breakdowns (model, provider, user, trace, custom property), token and cache-hit analysis, regression debugging, and materializing results as insights, dashboards, or alerts.

Tools

Installs
80
GitHub Stars
66
First Seen
Apr 29, 2026
exploring-llm-costs — posthog/ai-plugin