Applies to v1.3.18

Portal LLM Usage Dashboard

Purpose

This area answers the questions an operator of a shared LLM connection asks: how much did this connection spend this month, on what, for whom, and roughly what did it cost?

It counts every model call the platform makes — for ESRA retrievals, hosted agents, mapping enrichment and AISI document processing — and shows input, output and total tokens, calls and an estimated cost, by client application, connection, model and functionality. It is part of AI Settings: whoever can read LLM Connections can open it.

Main Capabilities

  • choose a range: this month, last month, the last 3 or 12 months, or custom dates
  • group the chart's bars by hour, day, week, month or year; only the groupings that suit the range can be chosen — hourly up to 7 days, daily up to 31, weekly from 14 days to a year, monthly from 28 days, yearly beyond a year — and a week starts on Monday (UTC)
  • narrow it by connection, model profile, functionality, application and, for a global administrator, tenant
  • read the totals and the estimated cost, with what the cost leaves out
  • see spend over time, stacked by functionality, with each bar's total on it and the dates along the bottom; point at a bar (or tab to it) to highlight it and see its figures per functionality beside it
  • switch between four views, each a hierarchy of collapsible levels:
View Levels, outermost first
Per application application (Platform for background work) → functionality → purpose → model profile
Per connection connection → model profile → functionality → purpose
Per model model → model profile → functionality → application
Per functionality functionality → purpose → capability (ESRA only) → subject → application
  • export one month as CSV in the shape of the current view
  • open the dashboard for one connection with Usage in that connection's summary panel on LLM Connections

The filters and the view are part of the page address, so a view can be bookmarked or shared, and the browser's back button returns to the previous one.

Reading the figures

  • [Live Data] — read from hourly data, kept for the current month and the configured number of months before it (three by default). Its cost uses the prices configured today.
  • [From Archive] — read from the monthly archive, one figure per month. Its cost was frozen when the month was summarized, so a later price change does not alter it unless an administrator asks for the month to be rebuilt.
  • [Back-filled] — includes usage reconstructed from the history each module kept before the dashboard existed. When its tooltip says approximate attribution, some of it was charged to the connection or model profile configured today, because the history did not record which one answered.
  • approx. — some calls reported no usage, so their counts were estimated from the length of the text.
  • Not priced — no price applies to that model profile. It never means the spend was free. A total that includes unpriced spend says how many tokens it leaves out.
  • Platform — the platform's own background work (mapping enrichment, AISI), which no client application called.
  • Unavailable (deleted or not visible) — the row the spend is charged to was deleted, or belongs to an area you cannot look up. Its spend still counts.

Prices

Estimated cost comes from prices you set on each model profile: on LLM Connections, edit a model profile and use its Pricing section. A price is per million input tokens and per million output tokens, from a date, with optional prices for cache reads and cache writes.

  • A future date schedules a price change. A past date corrects history from that date: live months are repriced at once; an archived month only when it is rebuilt.
  • All prices are in the deployment's single currency, so totals always add up.
  • A tenant administrator sets the prices of the tenant's own profiles. A shared profile's prices are set by a global administrator, and tenants see them.
  • Cached input. Where a provider reports input read from or written to its prompt cache — Claude always does, OpenAI reports cache reads — the dashboard shows it as cached beside the input tokens. It is part of the input count, never added to it. A price's cache-read and cache-write rates apply to those tokens; left blank, they are priced as input. A provider charges more for a longer-lived cache write: enter the write price of the cache lifetime you use.
  • Separate prices for reasoning tokens are not supported: they are billed as output.

Export

Export (CSV) exports what the dashboard is showing: the selected range, under the filters applied, in the current view. The range is split into calendar months — a custom range's first and last month are cut to its dates — and each month has one row per group at the view's deepest level, with its first and last day, a name and an id column per level, the counts, the estimated cost and its currency. Summing a group's rows gives the range's figure on screen. A name is written only where you could look the row up on screen; the id is always written. A range that reaches into the current month is marked as partial in the first line. The file opens in Excel with accented names intact.

Retention and history

Hourly data is kept for the current month and, by default, three months before it; each closed month is summarized into the archive before its hourly data is deleted, so earlier months stay visible as [From Archive]. Both are settings, not editable from the Portal (DATALIFECYCLE__LLMSPENDLIVERETENTIONMONTHS, DATALIFECYCLE__LLMSPENDARCHIVERETENTIONMONTHS; see Configuration reference).

History from before the dashboard

Usage from before the dashboard existed is back-filled from the history each module kept: ESRA's and the hosted agents' audit records, AISI's daily token ledger and the mapping enrichment log. It reads only the platform's own database and never calls a model. It does not run by itself: a global administrator starts it.

A global administrator sees its progress under History back-fill at the bottom of the dashboard — per functionality, how many source rows it has read, how far back it has got and when it completed — and can:

  • Start back-fill — run it, continuously, until every functionality is complete. Run it once after upgrading. Starting it again while it runs is safe: two runs never count the same history twice.
  • Read again from the start — discard what was back-filled and read it again at once, after correcting a price or an attribution. Recorded usage is never touched. It is refused while an archived month holds back-filled usage whose hourly data has already passed retention, because rereading it would count it twice; the message names the months.

Counts are written a few seconds after each call, never while the call is running, so the dashboard can lag the present by a few seconds. Under extreme load counts can be dropped rather than slow anything down; the platform logs how many.