@po.dev/pi-usage-dashboard

Local token and cost dashboard for pi sessions

Packages

Package details

extension

Install @po.dev/pi-usage-dashboard from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@po.dev/pi-usage-dashboard
Package
@po.dev/pi-usage-dashboard
Version
0.1.14
Published
Sep 21, 2026
Downloads
160/mo · 10/wk
Author
po.dev
License
MIT
Types
extension
Size
149.5 KB
Dependencies
0 dependencies · 2 peers
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

usage-dashboard

Pi extension for token and cost tracking.

Install

pi install npm:@po.dev/pi-usage-dashboard

Or load locally:

pi -e ./usage-dashboard/index.ts

Features

  • Footer shows live session cost — survives /reload without resetting
  • /usage opens a full dashboard: daily spend, per-model breakdown, cache efficiency, prompt-source insights (top 5 sources; installed skill files open in 10-line windows, scrollable with ↑↓ or mouse wheel)
  • History shows a scrollable window of 5 sessions
  • Providers that report tokens but no cost (e.g. claude-bridge) are priced from Pi's local models-store.json rates instead of showing $0

Usage

/usage      open dashboard
/reload     session cost persists (no reset)