# pi-token-odometer

Animated input/output token odometers for [pi coding agent](https://pi.dev/).

![pi-token-odometer screenshot](https://raw.githubusercontent.com/yequsun/pi-token-odometer/main/assets/odometer-screenshot.png)

## Features

- Tracks input and output token usage for the current session branch.
- Shows a compact odometer widget above the editor.
- Starts estimating input tokens as soon as you submit a prompt.
- Estimates output tokens during streaming and reconciles to exact provider usage when available.

## Commands

```text
/token-odometer show
/token-odometer hide
/token-odometer refresh
```

## Notes

Live counts are estimates while a response is streaming. Exact token counts are read from provider usage after the assistant message completes.
