pi-bill
Token usage ledger & interactive billing inspector for Pi Coding Agent
Package details
Install pi-bill from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-bill- Package
pi-bill- Version
0.1.0- Published
- Sep 10, 2026
- Downloads
- 208/mo · 21/wk
- Author
- saltywww
- License
- MIT
- Types
- extension
- Size
- 24.9 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-bill
Token usage ledger & interactive billing inspector for Pi Coding Agent.
效果展示 / Preview
在交互终端中执行 /bill 即可唤起用量账单面板:
Usage bill
────────────────────────────────────────────────────────────────────────
Last 7 days · 42 request(s)
Model Reqs Input Output Cache R Cache W Total
────────────────────────────────────────────────────────────────────────
kimi-coding/k3(max) 28 1.2M 45.3K 3.1M 120.0K 4.5M
openai/gpt-5(high) 14 320.0K 12.1K 800.0K 40.0K 1.2M
────────────────────────────────────────────────────────────────────────
Total 42 1.5M 57.4K 3.9M 160.0K 5.6M
Category Reqs Input Output Cache R Cache W Total
────────────────────────────────────────────────────────────────────────
Backend Service 30 1.1M 40.0K 2.8M 110.0K 4.1M
Uncategorized 12 420.0K 17.4K 1.1M 50.0K 1.5M
Enter or Esc to close
命令与操作
/bill:唤起时间周期选择(Today、Last 7 days、Last 30 days、All time),按模型与会话分类汇总展示详细用量(Reqs / Input / Output / Cache R / Cache W / Total)。- 按
Enter、Esc或q退出面板。
安装方式 / Install
pi install npm:pi-bill
或使用 Git 仓库安装:
pi install git:github.com/saltysalrua/pi-bill
或添加到 ~/.pi/agent/settings.json 的 packages 中:
{
"packages": [
"npm:pi-bill"
]
}
License
MIT © 2026 saltysalrua