@firstpick/pi-extension-stats
v0.3.2
Published
Token and cost usage analytics command for Pi session history.
Maintainers
Readme
Stats for Pi
See where your Pi tokens and model costs are going over time.

What you can do
- Shows daily token and cost history.
- Compares model usage and expensive sessions.
- Explains how much of the initial prompt comes from Pi, tools, and context.
- Shows cache use, trends, and projected cost.
Install
Install it through Pi:
pi install npm:@firstpick/pi-extension-statsRestart Pi if the package does not appear in your current session.
How to use it
Start with:
/statsThis shows the most recent 14 days. Use /stats 30 for a longer period or /stats all for everything available.
Focused views:
/stats tokens— show what is using the current conversation space./stats-pi— estimate how much space Pi’s starting instructions and tools use./stats-model-compare— compare model usage and cost./stats-most-expense— find the most expensive sessions./stats-cost-trend— view recent spending direction and projections./stats-cache— show Cached-input share (cache-read tokens as a share of prompt-side input and cache tokens), cache reads and writes, and the token mix.
Estimation and calibration details are kept in the technical reference.
Technical details
See TECHNICAL.md for complete commands, configuration, compatibility, security, and troubleshooting information.
