@ravshansbox/pi-cost
Cost report extension for pi
Package details
Install @ravshansbox/pi-cost from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@ravshansbox/pi-cost- Package
@ravshansbox/pi-cost- Version
2.0.7- Published
- Nov 1, 2026
- Downloads
- 1,289/mo · 887/wk
- Author
- ravshansbox
- License
- MIT
- Types
- extension
- Size
- 16 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
pi-cost
Cost report extension for pi.
Install
pi install npm:@ravshansbox/pi-cost
Add -l to install it in project settings.
Usage
Pi loads the extension from ./index.ts. Run /cost in the TUI to open the cost report UI above the editor, then use the tabs to switch between day, week, month, and all views. In other modes, /cost shows an error instead.
For example, run /cost, inspect the week tab for provider totals, and press Backspace on a selected provider to remove that provider's assistant messages from session logs, including mapped multi-provider entries such as Claude Multi.
Development
npm install
npm run check