total_tokens and cost per session. praisonai usage reports those totals β no config, no network.
Quick Start
1
Run the report
Print the last 30 days, grouped by day.
2
Group by model or project
Switch the grouping dimension with
--by.3
Window the results
Limit the report to a time window with
--days (0 = all history).4
Emit JSON
Produce machine-readable output for scripts.
How It Works
The command reads the current-project and global default session stores, filters by time window, groups the rows, then renders a table or JSON.Options
An invalid
--by value exits with code 1.
Which --by should I pick?
Pick the grouping that answers your question.
JSON Output
--json prints a stable shape for dashboards and pipelines.
$0.0034); JSON rounds to 6.
Common Patterns
Run a quick weekly review of spend by day.Best Practices
Enable a session store first
Enable a session store first
Rows only exist once agents run with a session store. Enable one with
memory="history" or a session_id so praisonai usage has data to report.Keep --days small for fast iteration
Keep --days small for fast iteration
A short window (
--days 7) scans fewer sessions and returns quicker during active development.Use --json for scripting
Use --json for scripting
Pipe
--json into jq or a spreadsheet instead of parsing the table.Remember --project scopes the read
Remember --project scopes the read
Passing
--project <id> reads only that projectβs store β the global bucket is skipped.Related
CLI Reference
Full command tree, including session commands
Session Resume
The session store these totals come from

