Skip to content

Quickstart

Five minutes, from nothing to your first cost record and your first dashboard. You install OpenALR, wire your harness, work for one turn, and read what was recorded. Everything stays on your machine.

Pick your system and your harness in any tab below; every page of the site remembers the choice.

1. Install uv

uv installs OpenALR as a tool, in its own environment. If uv --version prints a version, go on to step 2.

In PowerShell:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Then close and reopen PowerShell, and check uv --version again.

curl -LsSf https://astral.sh/uv/install.sh | sh

If uv is not found afterwards, open a new terminal, or run the source line the installer prints, and check uv --version again.

2. Install OpenALR

uv tool install alr-emit
alr --version

alr --version prints OpenALR alr-emit 0.1.0.

If your shell does not find alr, the tool directory is not on your PATH. Run uv tool update-shell, then open a new shell (on Windows, a new PowerShell window).

3. Wire Your Harness

Run each install twice: first without --yes, which changes nothing and prints an install preview (each file it would add or change, with the exact lines), then with --yes to apply it. A copy of each file it changes is kept beside it.

alr install claude-code
alr install claude-code --yes

This adds hooks to Claude Code's settings.json and the in-session commands to its commands folder. Install for Claude Code lists every file and every hook.

alr install grok
alr install grok --yes

This adds its own hook file to Grok Build's hooks folder and the /alr-plan and /alr-prices skills. Your Grok config.toml is never edited. Install for Grok Build has the details.

You need terminal Hermes, the hermes command. Then:

alr install hermes
alr install hermes --yes

This copies the plugin into Hermes, enables it, restarts a running gateway, and proves the plugin loads. Install for Hermes lists each step.

There is nothing to wire: you add one call to your own code after each request. This prints the lines to add:

alr install claude-sdk

Install for the Anthropic SDK shows one record per turn for your own agent loop.

Then fetch the latest price book, which OpenALR uses to estimate any cost a harness does not report:

alr prices update

See Get the Latest Price Book.

4. Work for One Turn

Start a session and send one short prompt, for example:

What is the hex code for green?

Let the turn finish, then end the session normally. A record is written at the end of each turn.

Start claude. Claude Code gives a session's cost once, when the session ends, so a turn shows a dash for its cost until you exit.

Start grok.

Start hermes.

Run your program once.

While you are in a session, these commands answer without calling the model:

/alr-ctl            # one status line: version, whether it is emitting, the record file
/alr-turns          # your last 5 turns: model, tokens, cost, tags

5. Read What Was Recorded

In a terminal:

alr summary          # tokens and cost by day
alr turns last       # every turn of your latest session

In a browser: write the dashboard and open it in one step.

alr dashboard --out $HOME\alr-dashboard --open
alr dashboard --out ~/alr-dashboard --open

The dashboard is four files that work together. To move or share it, copy the whole folder, never index.html alone.

The records themselves are in one file:

%USERPROFILE%\.alr-emit\records.jsonl

~/.alr-emit/records.jsonl

How to read the numbers:

  • An own figure belongs to the session or task itself, such as a session's own total (why these words). It is not your bill: the dollars are your harness's own figure, which does not know your discounts, credits, or contract terms.
  • A turn's figure may instead be an allocated share: a part of the session total, split out in proportion to tokens.
  • Each figure is kept per basis: metered (money charged) and api-equivalent (a valuation, for example under a subscription) are never added together.
  • A + marks a lower bound, and ? means no figure is known.
  • est. is an estimate from a price book, shown only where your harness gave no cost. It is never a bill, and it is never added to the harness's figure.

How costs are computed explains each word.

If a line in the record file could not be read, alr check lists it and says why.

Done

You have a record of an agent turn and a dashboard to read it in. Next, put it to work: tag your work, so each record says which project and task it belongs to, or plan a project.

Report a problem with this page