Skip to main content
See exactly where your tokens (and dollars) are going — no dashboard, no API key, no config. praisonai usage reads the same local session store that praisonai session list uses and rolls it up per day, per model, or per project.

Quick Start

1

Run the default report

Show the last 30 days grouped by day:
2

Group by cost driver

Find your most expensive model:

Choose Your View

Three groupings answer three different questions.

By day

Spot spend spikes over time. Rows sort chronologically.

By model

Find your most expensive model. Rows sort by highest spend first.

By project

Compare projects sharing one machine. Rows sort by highest spend first.

Options


Common Patterns

Check last week only:
Break a single project down by model:
Pipe into jq to flag expensive rows:
The JSON output shape:

How It Works

praisonai usage reads the on-disk session store — the same store surfaced by praisonai session list. No network calls, no configuration, no external observability platform. With no --project, both the current-project store and the global default store are read. Rows keep their originating identity (current or global), and a session that appears in both stores is counted once. Costs come from the existing per-run ModelPricing tracker — usage aggregates what was already recorded, it does not re-price.

Best Practices

Use --days 7 for a fast look at the current week before it grows into a surprise bill.
Group by model to see which model drives your spend, then decide whether a cheaper one fits.
Use --json in cron or CI and act on the numbers with jq.
Numbers reflect only what was recorded to the local session store. For team-wide totals across machines, use an observability integration such as Langfuse.

Session

The session store this command reads from.

Traces

Richer per-trace inspection.

Cost Tracking

The in-run cost display this aggregates.

Metrics

Real-time token counters during a run.