pi-rakit-session-usage
Show token usage for the current Pi session and project history
Package details
Install pi-rakit-session-usage from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-rakit-session-usage- Package
pi-rakit-session-usage- Version
0.1.2- Published
- Oct 8, 2026
- Downloads
- 442/mo · 207/wk
- Author
- anandamw
- License
- MIT
- Types
- extension
- Size
- 15.8 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./extensions"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Pi Rakit Session Usage
Shows token usage for the current session and all saved sessions in the current project.
pi install npm:pi-rakit-session-usage
Run /usage for input, output, cache, and provider-reported cost totals. A compact current-session token total also appears in the status bar. Corrupt or incomplete history lines are skipped safely.
Run /tokens to open an overlay dashboard with four tabs:
- Summary — current session and project totals: input, output, cache (read/write), total tokens, cost, and cache hit rate
- Models — usage grouped by
provider/model, sorted by total tokens - Daily — usage grouped by day
- Sessions — saved sessions ranked by total tokens
Switch tabs with ←/→ or 1-4, scroll with ↑/↓ (or PgUp/PgDn), and close with Q/Esc.