Agent / UsagePro
What agents cost this month: the running total against a budget line with a plain-language forecast, tasks, runs, cost per task and tokens, where it went by project or model (official marks) and what is worth a look. The work area shows the project day by day and what cost the most.
oxyn add agent-usageUsage
NovemberSpent in November
€270.40 of €500 · 54%
On track for €427 by Nov 30
Worth a look
- Competitor scan cost €18.40 yesterday4× what it usually costs – it read 212 pages instead of 404×
- Benchkit is up 102% on OctoberIts evals moved to Opus 5.5 on Nov 12+102%
The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
Rendered from Rust at build time · goes live when visible
When to use
- What agents cost this month, whether that fits the budget, and where the money went.
When not to use
- Mail folders with counts and labels beside a message list: use Inbox sidebar instead.
- The app frame: use App shell instead.
- An assistant docked beside a page: use AI side panel instead.
Installation
Agent / Usage is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.
oxyn add agent-usageUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Sample
Sample data in the Inset frame.
Usage
NovemberSpent in November
€270.40 of €500 · 54%
On track for €427 by Nov 30
Worth a look
- Competitor scan cost €18.40 yesterday4× what it usually costs – it read 212 pages instead of 404×
- Benchkit is up 102% on OctoberIts evals moved to Opus 5.5 on Nov 12+102%
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Flat
The same screen in the Flat frame.
Usage
NovemberSpent in November
€270.40 of €500 · 54%
On track for €427 by Nov 30
Worth a look
- Competitor scan cost €18.40 yesterday4× what it usually costs – it read 212 pages instead of 404×
- Benchkit is up 102% on OctoberIts evals moved to Opus 5.5 on Nov 12+102%
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Loading
Skeletons where the data will land.
Usage
NovemberCode Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Empty
Nothing yet: the page says what will appear and how to start.
Usage
NovemberNo spend yet this month
When agents run, what they cost lands here by project and model, against your budget.
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
Own
The pace runs past the budget: the forecast says when it runs out.
Usage
NovemberSpent in November
€392.00 of €500 · 78%
At this pace the budget runs out on Nov 25
Worth a look
- Competitor scan cost €18.40 yesterday4× what it usually costs – it read 212 pages instead of 404×
- Benchkit is up 102% on OctoberIts evals moved to Opus 5.5 on Nov 12+102%
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
X1
Oxyn: day-by-day bars in place of the running total.
Usage
NovemberSpent in November
€270.40 of €500 · 54%
On track for €427 by Nov 30
Worth a look
- Competitor scan cost €18.40 yesterday4× what it usually costs – it read 212 pages instead of 404×
- Benchkit is up 102% on OctoberIts evals moved to Opus 5.5 on Nov 12+102%
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
X2
Oxyn: an alert line at 80 % of the budget.
Usage
NovemberSpent in November
€270.40 of €500 · 54%
On track for €427 by Nov 30
Worth a look
- Competitor scan cost €18.40 yesterday4× what it usually costs – it read 212 pages instead of 404×
- Benchkit is up 102% on OctoberIts evals moved to Opus 5.5 on Nov 12+102%
Code Pro
The preview is free. Pro opens the code of every Pro component, screen and template.
API reference
UsageScreen
| Prop | Type | Default | Description |
|---|---|---|---|
layout | String | "inset" | `inset` or `flat`. |
state | String | "sample" | A state key. |
height | u32 | 640 | Height px. |
daily | bool | Default::default() | Oxyn: day-by-day bars in place of the running total. |
alert | bool | Default::default() | Oxyn: an alert line at 80 % of the budget. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| Tab | Sidebar, page, then each control in reading order |
| Enter on a project row | Open it in the work area |
| Enter on ProjectsorModels | Switch the breakdown |
| Enter on Open | Open the item worth a look |
| Escape | Close an open menu or popover; clear a search |
Accessibility
- The Fieldwork sidebar is a labelled nav with aria-current on this page.
- The chart is role=img; its label carries spend, budget and forecast. Projects / Models are pressed buttons.
- Skeletons are hidden from screen readers; every action reports what it did in a polite live region.
Responsive behaviour
- Authored on the 1440 × 900 canvas; the full view lays it out at the real width.
- Under 640 px the sidebar slides in from the menu button and the work area becomes a sheet.
- Under 560 px the totals go two by two and the share bars hide.
Edge cases (spec)
Authored on the 1440 × 900 stage (rule R1) and scaled to its column; the full view (/screens/agent-usage/full) renders at the real viewport with the state bar under it (R2). Under 640 px the sidebar slides in from a menu button and the work area becomes a sheet. Under 560 px the totals go two by two and share bars hide. Every label in a row, chip or card ellipsises in a flex child with min-width 0 (R5); scripts/ovl.py finds no text overlap at 1440, 768 and 390 in light and dark.
Notes for AI
- Import
UsageScreenfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
UsageElinoxyn_gpui. - Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.