# Token Stats

Lifetime token usage page for Ulpi: totals across every profile on the connected (local or remote) gateway, a per-model table.

- Type: Plugin
- Version: 1.0.0
- Updated: 22 Nov 2026
- Publisher: amitamit10
- Category: Desktop

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Lifetime token usage page for Ulpi: totals across every profile on the connected (local or remote) gateway, a per-model table (share, input/output, cache read and cache %, calls, tokens per call, measured speed, cost), API-equivalent cost and savings from free models, subscription plans and prompt caching, a provider and profile split, activity streaks and month-over-month trend, daily chart, and top tools, skills and background (aux) work; plus a status-bar lifetime chip. Disclosure — read-only: calls the gateway's /api/analytics/models and /api/analytics/usage routes for each profile through the raw window.ulpi.api bridge (no typed SDK helper exists for them), lists profiles and connections, and listens to message/usage events to time turns.

Stores speed samples, a pruning ledger (so lifetime totals survive sessions.auto_prune) and the last loaded numbers in plugin storage, and reads an optional user-made archive.json from its own ctx.files data folder. Cost uses a bundled snapshot of models.dev list prices.

No network calls of its own, no telemetry, no credentials.

## Review notes

What an owner reads and accepts before the install is approved.

- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

## More in Desktop

- [tokstat](https://www.ulpi.io/en/marketplace/plugins/tokstat): Live token usage in the Ulpi status bar: cumulative total, a real-time this-turn counter, last-turn delta, context occupancy, and prompt-cache hit rate.
- [Topoi](https://www.ulpi.io/en/marketplace/plugins/topoi): Group your Ulpi chats into topics, in Ulpi and in the Dashboard.
- [tradersagent-plugin](https://www.ulpi.io/en/marketplace/plugins/tradersagent-plugin): A chart-first Trader's Agent for Ulpi: one sidebar row docks a live Vela chart beside your conversation — replay, drawing tools, the LuxAlgo Library, a paper broker.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
