{#if choices.options.length > 1}
{/if}

{#if usage?.refreshedAt} usage read {sinceText(now - usage.refreshedAt)} {:else if summary && usage?.state === 'loading'} {USAGE_COPY.readingUsage} {/if} {#if usage?.state === 'stale'} not the newest read {/if} {#if retrying && summary} {/if}

{#if !summary}

{windowText(days)} in albedo

{usageNote(offsetName(offset))} · {scopeLine}

{#if usage?.state === 'error'}

(。•︿•。) {USAGE_COPY.usageFailed}

{:else}

{USAGE_COPY.readingUsage}

{/if}
{:else}

{windowText(days)} in albedo

{usageNote(offsetName(offset))} · {scopeLine}

{callsText(totals.calls)} provider calls {#if totals.errors}{failedText(totals.errors)} failed{/if}
{countText(totals.input_tokens)} input tokens {#if cachedShare !== null}{cachedShare}% cached{:else if totals.cached_input_tokens}{countText( totals.cached_input_tokens, )} cached{:else if totals.input_tokens}nothing from cache{/if}
{countText(totals.output_tokens)} output tokens {#if totals.reasoning_tokens}{countText(totals.reasoning_tokens)} reasoning{/if}
{#if days > 1}

by day

{#if busiest > 0 && daysData.length > 1}
    7} aria-label="{windowText(days)}, input plus output" > {#each daysData as entry, index (entry.start)} {@const start = Date.parse(entry.start)} {@const mine = shown?.start === entry.start}
  1. {/each}
{#if shown} {@const start = Date.parse(shown.start)} {@const cached = percentOf( shown.cached_input_tokens, shown.input_tokens, )}

{dayLabel(start, now, offset)}

{callsText(shown.calls)} calls

{#if shown.errors}

{failedText(shown.errors)} failed

{/if}

{countText(shown.input_tokens)} input

{#if cached !== null}

{cached}% cached

{/if}

{countText(shown.output_tokens)} output

{#if shown.reasoning_tokens}

{countText(shown.reasoning_tokens)} reasoning

{/if}

{announced}

{/if} {:else if totals.calls > 0}

no tokens recorded {days === 1 ? 'today' : `in the last ${days} days`}, only calls

{:else}

no recorded calls {days === 1 ? 'today' : `in the last ${days} days`}

{/if}
{/if}

by model · {windowText(days)}

{#if lines.length} {#if linesCut}

the busiest hundred model lines of {windowText(days)}; smaller ones are left out

{/if} {:else}

nothing recorded {days === 1 ? 'today' : `in the last ${days} days`} yet; the totals move when a call finishes

{/if}
{/if}

limits

{USAGE_COPY.limitsNote} · not filtered by period or scope

{#if !limits || (limits.state === 'loading' && !limits.data)}

{USAGE_COPY.readingLimits}

{:else if !limits.data}

(。•︿•。) {USAGE_COPY.limitsFailed}

{:else} {#if limits.state === 'stale'}

as of {limits.refreshedAt === null ? 'an unknown time' : sinceText(now - limits.refreshedAt)} · {USAGE_COPY.limitsStale}

{/if} {#if groups.length} {:else}

{USAGE_COPY.noLimits}

{/if} {/if}
about these counts

totals are hourly counts the daemon keeps beside its request records, and the whole window is cut with the offset this page has now ({offsetName( offset, )}). days across a clock change may therefore differ from their historical local boundaries, and in a zone that is not a whole number of hours from UTC the hour that straddles midnight counts in the earlier day.

a call is one provider request, so a compaction summary and a warm-up ping count as calls. input tokens include what was served from cache, which is shown beside them and never added to them, and what was written to it. output tokens include reasoning where a provider reports it separately. today's counts are so far.

nothing here is priced: what a call costs depends on the plan it was made under. limits are what the providers report for the account itself, so they may count use outside albedo.