{% from "components/card.html" import stat_card %} {{ stat_card( label="Total Cost", value="$" ~ ("%.2f"|format(tokens.total_cost|default(0.0)|float)), trend=deltas.total_cost if deltas is defined and deltas else none, trend_label="vs previous period", trend_up_is_bad=True, icon='', link="/tokens" ) }} {{ stat_card( label="Top Conversation Cost", value="$" ~ ("%.2f"|format(conversations_preview.most_expensive_cost|default(0.0)|float)), subtitle=conversations_preview.most_expensive_project|default("")|truncate(30, True, "…"), icon='', link=("/conversations?session=" ~ (conversations_preview.most_expensive_session_id | urlencode)) if conversations_preview.most_expensive_session_id else "/conversations" ) }} {% set _cw_pct = ((tokens.cache_creation_cost|default(0.0)|float / tokens.total_cost|float * 100) | round(0) | int) if tokens.total_cost|default(0.0)|float > 0 else 0 %} {{ stat_card( label="Cache Write Cost", value="$" ~ ("%.2f"|format(tokens.cache_creation_cost|default(0.0)|float)), subtitle=_cw_pct|string ~ "% of spend — re-caching context", trend=deltas.cache_write if deltas is defined and deltas else none, trend_label="vs previous period", trend_up_is_bad=True, icon='', link="/tokens" ) }} {{ stat_card( label="Cache Savings", value="$" ~ ("%.2f"|format(tokens.cache_savings|default(0.0)|float)), subtitle="Net of cache-write premium", icon='', link="/tokens" ) }}
{% include 'partials/dashboard_charts.html' %}
{% include 'partials/cost_trend_charts.html' %}
{% if conversations_preview and conversations_preview.recent %}

Recent Conversations

View all {{ conversations_preview.total_count }} conversations
{% for conv in conversations_preview.recent %} {% set _peak_ctx = conv.peak_context_tokens|default(0)|int %} {% set _ctx_limit = conv.context_limit|default(200000)|int %} {% set ctx_pct = [((_peak_ctx / _ctx_limit * 100) | round(0) | int), 100] | min %} {% set ctx_blocks = (ctx_pct / 10) | round(0, 'floor') | int %} {% endfor %}
Project Cost
{{ conv.project_name }} ${{ "%.2f"|format(conv.total_cost|float) }}
{% endif %} {% if models and models.models %}

Model Usage

View details
{% for model in models.models[:3] %}
{{ model.model_name }} {{ model.cost_percentage|default(0)|float|round(1) }}%
{{ model.total_tokens|default(0)|format_compact }} tokens ${{ "%.2f"|format(model.cost|default(0.0)|float) }}
{% endfor %}
{% if models.total_models > 3 %} {% endif %}
{% endif %}

Explore Your Usage

Tools & Features
{% if features_preview and features_preview.top_tool %}

{{ features_preview.top_tool.tool_name }} called {{ features_preview.top_tool.invocation_count }} times

{{ features_preview.total_tool_calls }} total tool calls

{% else %}

No tool usage in this period

{% endif %}
Explore tools
Sub-Agents
{% if subagents_preview and subagents_preview.total_exchanges > 0 %}

{{ subagents_preview.total_exchanges }} agent exchanges

{% if subagents_preview.type_breakdown %}

Top type: {{ subagents_preview.type_breakdown[0].type }} ({{ subagents_preview.type_breakdown[0].count }})

{% endif %}

${{ "%.2f"|format(subagents_preview.total_cost|default(0)|float) }} total cost

{% else %}

No sub-agent usage in this period

{% endif %}
Explore agents
Files
{% if files_preview and files_preview.total_files > 0 %}

{{ files_preview.total_files }} files touched

{% if files_preview.most_edited_file %}

Most edited: {{ files_preview.most_edited_file }}

{% endif %}

{{ files_preview.total_operations }} total operations

{% else %}

No file operations in this period

{% endif %}
Explore files
Integrations
{% if integrations_preview and integrations_preview.has_integrations %}

{{ integrations_preview.total_servers }} MCP server{{ 's' if integrations_preview.total_servers != 1 else '' }}

{% if integrations_preview.top_servers %}

Top: {{ integrations_preview.top_servers[0].server_name }} ({{ integrations_preview.top_servers[0].tool_call_count }} calls)

{% endif %}

{{ integrations_preview.total_tool_calls }} total calls

{% else %}

No MCP integrations active

{% endif %}
Explore integrations
Conversation Analytics
{% if conversations_preview %}

{{ conversations_preview.total_count }} conversation{{ 's' if conversations_preview.total_count != 1 else '' }}

Priciest: ${{ "%.2f"|format(conversations_preview.most_expensive_cost|default(0)|float) }}

Context growth & cost analytics

{% else %}

No conversation data in this period

{% endif %}
Explore conversations
Projects
{% if projects and projects.total_projects > 0 %}

{{ projects.total_projects }} active project{{ 's' if projects.total_projects != 1 else '' }}

Most active: {{ projects.most_active_project }}

${{ "%.2f"|format(projects.total_cost|default(0)|float) }} total spend

{% else %}

No project data in this period

{% endif %}
Explore projects