Stats widget extension for pi that displays token usage, throughput, and response duration.
- Token throughput: Tokens per second during response
- Token usage: Input → Output tokens per message
- Cache tracking: Cache read (↓) and write (↑) when applicable
- Total tokens: Cumulative token count
- Duration: Response time in seconds or minutes
Example output in the UI status bar:
12.3 tok/s | 1.2k → 450 | cache 500↓ 300↑ | total 2.1k | 3.2s
pi install npm:@qmxme/pi-statsWith a pinned version:
pi install npm:@qmxme/pi-stats@0.1.0Project-local installation:
pi install npm:@qmxme/pi-stats -lTry without installing:
pi -e npm:@qmxme/pi-statsnpm install # install build dependencies
npm run build # compile to dist/
npm run dev # watch modeMIT