@firstpick/pi-extension-stats
Token and cost usage analytics command for Pi session history.
Package details
Install @firstpick/pi-extension-stats from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@firstpick/pi-extension-stats- Package
@firstpick/pi-extension-stats- Version
0.1.1- Published
- May 3, 2026
- Downloads
- not available
- Author
- firstpick
- License
- MIT
- Types
- extension
- Size
- 10.1 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-extension-stats
Token and cost analytics for Pi session history.
What it does
- Parses local Pi session
.jsonlfiles for the current workspace. - Aggregates usage by UTC day.
- Displays compact daily token bars with totals.
- Shows input/output/cache breakdown and top model usage.
Install
pi install npm:@firstpick/pi-extension-stats
Configuration
No required configuration.
Commands
/stats— show last 14 days./stats <days>— show last N days./stats all— show all available days.
Tools
None.