Investigate LLM spend in PostHog — total cost over time, cost by model, provider, user, trace, or custom dimension, token and cache-hit economics, and cost regressions. Use when the user asks "how much are we spending on LLMs?", "which model / user / feature is most expensive?", "why did cost spike?", wants to build a cost dashboard or alert, or pastes a trace URL and asks about its cost.
Install
npx skills add PostHog/ai-plugin --skill exploring-llm-costsnpx skills add PostHog/ai-plugin --skill exploring-llm-costs -a claude-code -gnpx skills add PostHog/ai-plugin --skill exploring-llm-costs -a codex -ggemini skills install https://github.com/PostHog/ai-plugin.git --path skills/exploring-llm-costsgh skill install PostHog/ai-plugin exploring-llm-costsgit clone --depth 1 https://github.com/PostHog/ai-plugin /tmp/PostHog__ai-plugin
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/PostHog__ai-plugin/skills/exploring-llm-costs ~/.claude/skills/exploring-llm-costs # Claude Code
cp -R /tmp/PostHog__ai-plugin/skills/exploring-llm-costs ~/.agents/skills/exploring-llm-costs # Codex, Cursor, Gemini CLI, Copilot, OpenCode