See What Your Work Cost¶
You can read what your work cost while you work, in the session, or later, in a terminal. Both read the same records, so the figures agree.
In the Session¶
Two commands answer inside the harness without calling the model. The hook answers them before any turn starts, so they cost nothing and add no turn.
/alr-turns
/alr-turns 10
/alr-turns lists this session's last turns: the turn number, the start time,
the model, the tokens, the cost, and the tags in force. With no number it shows
the last 5. /alr-turns 10 shows the last 10. The numbers are the ones
/alr-tag move and alr tag --turns take. A turn whose record has not been
written yet is flagged not yet emitted.
/alr
/alr shows the list of OpenALR commands, the same screen as /alr-help.
Every form is listed in Slash Commands.
In a Terminal¶
Open a terminal and run the commands below. They read your record file and change nothing.
One Session, Turn by Turn¶
alr turns last
last names your latest session. You can also give a session id, a request id,
or the start of an id, as long as it is unique.
alr turns 5b1f
The table has one row per turn, numbered in order. Add --json for a script to
read, or --tz utc to show times in UTC. See
alr turns.
Many Sessions, Added Up¶
alr summary
With no --by, alr summary groups by day. Choose another grouping with
--by:
alr summary --by project
alr summary --by task
alr summary --by work_type
alr summary --by model
The groupings are day, model, harness, agent, tag, project, task,
client, cost_center, and work_type. For the tag keys, see
Tag Your Work. alr summary has no
date filter. To add up less, name the record files or folders you want after
the options, or use --tz utc to set which day a turn falls on. --json
gives the same figures for a script. See
alr summary.
How a Figure Arrives¶
A cost figure reaches a record in one of three ways. OpenALR labels each one.
- Own figure. The harness itself reported the cost of that unit.
- Allocated share. A larger total was split in proportion to tokens. It is marked as allocated.
- Estimate. No cost was reported, so OpenALR priced the tokens from the price book. It is a list-price figure, not a bill, and has its own column.
Costs of different bases (metered and api-equivalent) are never added together. How Costs Are Computed explains each way in depth.
When a Turn Says "in parent"¶
In Claude Code, a turn's cost sits inside its session's cost. Until the cost
arrives from Claude Code's telemetry, the cost column reads in parent, and
an estimate marked (for parent) stands in for it. That estimate is never
added to any total. To get each turn's own cost, see
Get Exact Per-Turn Cost in Claude Code.
Keep the Price Book Current¶
An estimate is only as current as the price book behind it, and the book that
ships with OpenALR does not update itself. Run alr prices update:
- once a month;
- when you start using a model you have not used before;
- when a model you use has no estimate, because the book in use has no price for it.
A newer book changes estimates, never records. Every report is computed when you read it and names the book it used, and records already written stay as they are. To check for a newer book without storing it:
alr prices update --dry-run
The Price Book explains what the book holds and how it is signed.
Next¶
To see the same figures as charts and tables in a browser, see Use the Dashboard.