Add it to Claude Code
pitboard must be on the PATH Claude Code runs the line with. If you installed only the app on macOS, first put its command line on your PATH, as Install the app shows. On Windows, the installer puts it there for terminals opened after it ran.
Add a statusLine field to Claude Code’s settings.json, beside the fields already there. It is in ~/.claude, or in the folder CLAUDE_CONFIG_DIR names. On Windows, ~ is your user folder, such as C:\Users\me.
~/.claude/settings.json
statusLine, combine it with your own status line instead.
Claude Code runs the command after each response. On macOS and Linux, it runs in your shell.
On Windows, Claude Code runs it in Git Bash where it finds one, then in PowerShell 7, then in Windows PowerShell: read in Claude Code 2.1.301, and measured with 2.1.302. pitboard statusline runs the same in each. The status line line of pitboard doctor names the one Claude Code uses. Where it says no pitboard is on its PATH, add the folder pitboard.exe is in to your PATH, then start Claude Code again.
Read the line
Each session shows a line such as:- The account the session is on comes first, in bold.
- Every other Claude Code account you enrolled follows it.
- Each account shows how much of its five-hour limit is used, then its weekly limit. An account without a weekly limit for all models, such as a Team seat, shows its five-hour limit alone.
- A red
▲after a percentage of the first account means that limit is used faster than an even pace. - A green
▼means slower.
?, work? and unenrolled, is listed under statusline.
Combine it with your own status line
If your status line script runs in bash and reads its input withinput=$(cat), add this line to it:
$json = $input | Out-String, and parse $json for its fields. Then add this line to it:
session_id and usage from it. Without session_id, it prints the line but records none of the session’s usage.
Which account a session records for says when Pitboard records a session’s usage, and for which account.