About
How Paperwork reads token usage
Paperwork turns the raw session and prompt telemetry into three views that answer different questions: how much was used, where it was spent, and how that mix changed over time. The charts are already weighted on the server side, so the frontend only renders the calculated datasets.
Token weights
We convert token types into a shared input-equivalent unit before plotting them.
Raw prompt tokens.
Response tokens are weighted higher because they carry more inference cost.
Cache hits are discounted heavily.
Cache creation is treated as a partial input cost.
How the scopes work
The active page decides which records are included before the chart is built.
Aggregates all sessions in the workspace. The usage chart can be grouped by session or by project.
Filters the charts down to sessions that belong to the selected project.
Scopes every chart to the selected session and its prompts.
Usage Over Time
A stacked bar chart that shows weighted usage across the entities in the current page scope.
A stacked bar chart that shows weighted usage across the entities in the current page scope.
- On the main page, you can switch the chart between sessions and projects.
- On a project page, the same chart is filtered to sessions in that project.
- On a session page, it becomes prompt-level history for that one session.
Token Type Breakdown
A single stacked bar that totals the current page scope by token type.
A single stacked bar that totals the current page scope by token type.
- Useful for answering "where did the total cost go?"
- The bars are already weighted, so the chart reflects cost rather than raw counts.
Token Mix Over Time
A stacked area chart normalized to 0-100 so you can compare composition day by day.
This chart shows the normalized daily share of weighted tokens. It is the same stacked-area shape as the live chart, but fed from a local sample so the page stays frontend-only.
- Each day is converted into weighted token shares before stacking.
- The layers never cross because the chart is plotted as cumulative percentages.
- This sample uses 30 days of mock data that follows the same shape as the live chart.