Command Examples¶
Short examples of the main alr commands, each with one line on what it does.
Every command is described in full in the
CLI Reference. The examples use a project
named ACME-2026-14 and a record file with six turns in it. Your output has
your own records, dates, and costs.
Where a command or a path differs between systems, there is a tab for Windows and a tab for macOS and Linux. Where nothing differs, the command is the same everywhere.
alr install¶
alr install wires the emitters
into a harness. With no --yes, it shows a preview and changes nothing.
Show what installing for Claude Code would change:
alr install claude-code
Install for Claude Code, after reading the preview:
alr install claude-code --yes
Install for Grok Build, then for the Anthropic SDK:
alr install grok --yes
alr install claude-sdk --yes
Install the Hermes plugin into a Hermes folder that is not the default:
alr install hermes --hermes-home D:\tools\hermes --yes
alr install hermes --hermes-home ~/tools/hermes --yes
alr check¶
alr check lists lines and
documents it could not use, and counts what it read.
Check your own record file:
alr check
6 records (6 current), 0 grades, 0 cost corrections, 0 tag events
Check one file:
alr check $HOME\.alr-emit\records.jsonl
alr check ~/.alr-emit/records.jsonl
Show the result for a script to read. The ok field is true when nothing
was wrong:
alr check --json
Show days and clocks in UTC:
alr check --tz utc
alr turns¶
alr turns shows the records of one
session, in order, numbered. The numbers are the ones alr tag --turns takes.
Show your latest session:
alr turns last
# finished (UTC) model input output cache rd cache wr cost est. outcome grade tags
- ------------------- --------------- ----- ------ -------- -------- --------- ---- ------- ----- ----
1 2026-11-24 09:12:03 claude-sonnet-5 1.8k 700 0 0 $0.6500 m ok
2 2026-11-24 09:40:19 claude-sonnet-5 2.6k 1.1k 0 0 $1.10 m ok
3 2026-11-24 10:15:55 claude-sonnet-5 900 300 0 0 $0.3000 m ok
The line above the table, the tags column, and the footnotes are left out here.
Show an earlier session by the start of its id:
alr turns 5b1f
Show it with times in UTC:
alr turns 5b1f --tz utc
Show it for a script to read:
alr turns last --json
alr summary¶
alr summary adds up tokens and
cost. With no --by, it groups by day.
alr summary
day records input output cache rd cache wr metered est.
---------- ------- ----- ------ -------- -------- ------- ----
2026-11-23 3 6.3k 2.8k 0 0 $2.65
2026-11-24 3 5.3k 2.1k 0 0 $2.05
---------- ------- ----- ------ -------- -------- ------- ----
total 6 11.6k 4.9k 0 0 $4.70
Group by the planned piece of work (task), or by the kind of work
(work_type). The rows add up to the total:
alr summary --by task
alr summary --by work_type
Group by model, or by agent:
alr summary --by model
alr summary --by agent
Add up one file, with days in UTC:
alr summary --tz utc $HOME\.alr-emit\records.jsonl
alr summary --tz utc ~/.alr-emit/records.jsonl
alr tag¶
alr tag adds, removes, or moves a
tag on records already written. Tag Your Work explains
the tags.
Tag your latest request:
alr tag last client:acme
tagged client:acme on 1 request: 9c2e4d7a-3b18-4f6e-8d02-7a5b1c9e2002:t0003
Remove it again:
alr tag last client:acme --remove
Tag every request of your latest session:
alr tag last --session cost_center:eng-tools
Move turns 1 to 2 of your latest session to another task, with the reason:
alr tag last --session --turns 1-2 --move task:ACME-2026-14:build-api task:ACME-2026-14:design --reason "booked to the wrong task"
moved task:ACME-2026-14:build-api -> task:ACME-2026-14:design on turns 1-2 of session 9c2e4d7a-3b18-4f6e-8d02-7a5b1c9e2002: 4 lines (a remove and an add each), x_move ad241dc6-5ba5-472d-aa8f-6c154ff5263a
tags in force for the session's next turns: unchanged (--from-now changes them too)
Name who tagged, when it is not you:
alr tag last work_type:review --by dana
alr plan¶
alr plan writes a project's budget,
task by task. Plan a Project walks through it. Typed
alone, on a terminal, alr plan asks for the plan one question at a time.
Print an example plan file, to start from:
alr plan template --format json
Save a plan file as plan.json:
{
"tasks": [
{
"task": "ACME-2026-14:design",
"budget_usd": "4.00",
"planned_start": "2026-11-23",
"planned_finish": "2026-11-23",
"human_baseline": [
{"role": "senior engineer", "hours": 8, "rate_usd": "150"}
],
"baseline_method": "estimate",
"baseline_note": "my estimate of a day of design"
},
{
"task": "ACME-2026-14:build-api",
"budget_usd": "3.00",
"planned_start": "2026-11-24",
"planned_finish": "2026-11-25",
"human_baseline": [
{"role": "engineer", "hours": 12, "rate_usd": "120"}
],
"baseline_method": "estimate",
"baseline_note": "my estimate of two days of API work"
}
]
}
Issue it as version 1:
alr plan new --from plan.json --project ACME-2026-14 --basis metered --by dana
Show the latest version of the plan:
alr plan show --project ACME-2026-14
plan ACME-2026-14 (metered): version 1 (the files hold version 1), issued 2026-11-28T20:29:34Z by dana
task budget planned human baseline change
---------------------- ------ ------------------------ -------------------------- ------
ACME-2026-14:design $4.00 2026-11-23 to 2026-11-23 $1,200.00 estimate, 1 role -
ACME-2026-14:build-api $3.00 2026-11-24 to 2026-11-25 $1,440.00 estimate, 1 role -
budget: $7.00 metered
Issue version 2 after you change a task. In plan-v2.json, the second task has
moved a day and carries "change": "schedule". The reason is required:
alr plan revise --from plan-v2.json --project ACME-2026-14 --basis metered --by dana --reason "moved the API work a day"
alr accept¶
alr accept records that a task of
a plan is done and accepted, or withdraws the acceptance.
Accept a task, with a grade from 1 to 5 and where the work can be checked:
alr accept --project ACME-2026-14 --task ACME-2026-14:design --grade 4 --evidence "https://example.com/acme/design-review" --by dana
Name yourself once, for every command that asks who:
$env:ALR_PRINCIPAL = "dana"
alr accept --project ACME-2026-14 --task ACME-2026-14:build-api
export ALR_PRINCIPAL=dana
alr accept --project ACME-2026-14 --task ACME-2026-14:build-api
Withdraw an acceptance. The reason is required:
alr accept --project ACME-2026-14 --task ACME-2026-14:design --withdraw --reason "the review found a gap" --by dana
alr ev¶
alr ev reports earned value for each
plan: what was budgeted, what was earned by accepted tasks, and what was
spent.
Report every plan, as of now:
alr ev
Report one project, as of a date and time (UTC, with an offset):
alr ev --project ACME-2026-14 --as-of 2026-12-01T00:00:00Z
earned value as of 2026-12-01 00:00:00 UTC (SPEC section 9.3)
plan ACME-2026-14 (metered): version 1 in force, issued 2026-11-28T20:35:10Z by dana
BAC $7.00 EV $4.00 AC $4.70 PV $7.00
CPI 0.85 SPI 0.57
task budget planned PV accepted AC
---------------------- ------ ------------------------ ----- ------------ -----
ACME-2026-14:design $4.00 2026-11-23 to 2026-11-23 $4.00 yes, by dana $2.65
ACME-2026-14:build-api $3.00 2026-11-24 to 2026-11-25 $3.00 no $2.05
The command prints more lines than shown here.
Report for a script to read:
alr ev --json
alr dashboard¶
alr dashboard writes a static
dashboard to a folder. The folder must be new, empty, or hold only an earlier
dashboard.
Write it, then open index.html in a browser:
alr dashboard --out $HOME\alr-dashboard
alr dashboard --out ~/alr-dashboard
Write it and open it in your default browser:
alr dashboard --out $HOME\alr-dashboard --open
alr dashboard --out ~/alr-dashboard --open
Write a copy you can share, with tag values, agent and session ids, and file names replaced by keyed hashes:
alr dashboard --out $HOME\alr-dashboard-shared --redact
alr dashboard --out ~/alr-dashboard-shared --redact
Show days and clocks in UTC:
alr dashboard --out $HOME\alr-dashboard --tz utc
alr dashboard --out ~/alr-dashboard --tz utc
alr otel¶
alr otel runs the telemetry sink in
the background and sets Claude Code's telemetry settings for it, so each turn
carries Claude Code's own cost figure. It changes Claude Code's user settings
file. Run it in a plain shell, not inside Claude Code.
Start the sink and set the settings:
alr otel start
The command prints where the sink listens, which settings it set, and a reminder to restart Claude Code. A running Claude Code keeps its old settings until it restarts.
Check the sink, each setting, and what overrides it. This changes nothing:
alr otel status
sink: running (pid 273512) at http://127.0.0.1:4318/<token>/v1/logs
CLAUDE_CODE_ENABLE_TELEMETRY: set by alr
OTEL_LOGS_EXPORTER: set by alr
OTEL_EXPORTER_OTLP_LOGS_PROTOCOL: set by alr
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT: set by alr
Other lines follow, about managed settings and the sink's answers.
Start the sink on another port:
alr otel start --port 4319
Stop the sink and remove the settings OpenALR set:
alr otel stop
alr prices update¶
alr prices update fetches
a newer signed price book over https. It uses the network, and stores a book
only when its signature checks.
Fetch and check the book, show the version available against the one in use, and store nothing:
alr prices update --dry-run
Fetch, check, and store the book, which OpenALR then uses; see The Price Book:
alr prices update
Fetch from another address. The signature is that address with .sig added:
alr prices update --url https://prices.example.com/latest.json.gz
Use that address for every update in this shell:
$env:ALR_EMIT_PRICES_URL = "https://prices.example.com/latest.json.gz"
alr prices update
export ALR_EMIT_PRICES_URL=https://prices.example.com/latest.json.gz
alr prices update
See which book is in use, where it came from, and its signing key:
alr prices show