{% extends "base.html" %} {% from "macros.html" import cost, pct %} {% block title %}Budgets ยท LLM Admin{% endblock %} {% block content %}

Budgets

Blocked (24h)
{{ blocked_24h }}
Active budgets
{{ budgets | length }}
{% if budgets %} {% for b in budgets %} {% set pct_val = (b.pct_of_limit | float) %} {% set bar_class = 'danger' if pct_val >= 0.95 else ('warn' if pct_val >= 0.8 else '') %} {% endfor %}
ScopePeriod SpentLimit% StatusAction
{{ b.scope_kind }}{% if b.scope_value %}: {{ b.scope_value }}{% endif %} {{ b.period }} {{ cost(b.spent_usd) }} {{ cost(b.limit_usd) }} {{ pct(b.pct_of_limit) }}
{% if b.action == 'block' %} block {% else %} warn {% endif %}
{% else %}

No budgets configured. Add some to config/budgets.yaml and run sync_budgets_from_yaml().

{% endif %} {% endblock %}