{# Plan 61/2b W2 — "Spend" tab body of /admin/llm. Hosts the legacy spend cockpit chrome (totals / by-provider / timeline / by-model / by-fleet / errors / live-tail) plus a new "By machine" sub-tab from per-machine-spend.md (D3). The sub-tab switcher mirrors the existing dashboard cards: By model / By fleet / By machine / By key. The first two stay rendered as the pre-existing tables; the new "By machine" panel hits a new endpoint and degrades gracefully when the W1 schema migration hasn't landed yet. #} {% from 'admin/components/ui.html' import card, page_header, tooltip, pagination %}
Server-wide ledger across all fleets. Auto-refreshes every 30s (live tail every 5s).
Per-key attribution is logged but the breakdown table is not yet wired. Filed as a follow-up in plan 61/2b.