{# Spend alarm (R6 of usage-signals). Daily API-spend anomaly + approach to the monthly ceiling. ``spend.source`` is "account" (admin cost-report — sees CI) or "local" (usage.jsonl, CI-blind). The panel's accent follows ``spend.level``: ok / alarm / insufficient_data. #} {% if spend is not none %}

API spend watch

{% if spend.level == "alarm" %} ⚠ anomaly {% elif spend.level == "insufficient_data" %} building baseline {% else %} normal {% endif %}

{{ spend.detail }}

Source: {{ "Anthropic account billing (includes CI)" if spend.source == "account" else "local telemetry only — CI spend not counted" }}

{% endif %}