SDK Mode — API Usage

API requests today
{{ stats.request_count if stats.request_count is defined else "—" }}
Structured errors
{{ error_count if error_count is defined else "—" }}
OTLP export
{{ otlp_status if otlp_status is defined else "not configured" }}

API Usage by Model

{% if model_usage %} {% for row in model_usage %} {% endfor %}
ModelRequestsTokensCost
{{ row.model }} {{ row.request_count }} {{ row.total_tokens }} ${{ "%.4f"|format(row.cost) }}
{% else %}

No SDK requests today.

{% endif %}

OTLP Export Status

{% if otlp_status == "active" %}

OTLP exporter is active and sending traces.

{% elif otlp_status == "disabled" %}

OTLP export is disabled. Set TOKENPAK_OTLP_ENDPOINT to enable.

{% else %}

OTLP export not configured. Set TOKENPAK_OTLP_ENDPOINT to enable trace export.

{% endif %}

Structured Error Count (today)

{% if error_count is defined and error_count > 0 %}

{{ error_count }} structured error(s) logged today. Check journalctl --user -u tokenpak for details.

{% else %}

No structured errors logged today.

{% endif %}