Skip to main content
Every time your agent runs with a session store, it records 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.
Table output shows cost to 4 decimal places ($0.0034); JSON rounds to 6.

Common Patterns

Run a quick weekly review of spend by day.
Audit which model costs the most across all history.
Feed a JSON report into a spreadsheet or dashboard.

Best Practices

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.
A short window (--days 7) scans fewer sessions and returns quicker during active development.
Pipe --json into jq or a spreadsheet instead of parsing the table.
Passing --project <id> reads only that project’s store β€” the global bucket is skipped.

CLI Reference

Full command tree, including session commands

Session Resume

The session store these totals come from