@agnishc/edb-usage-stats

Pi extension: /usage command showing token rates, reset timers, and live provider status

Package details

extension

Install @agnishc/edb-usage-stats from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@agnishc/edb-usage-stats
Package
@agnishc/edb-usage-stats
Version
0.5.1
Published
May 5, 2026
Downloads
232/mo · 232/wk
Author
agnishc
License
MIT
Types
extension
Size
50.8 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./src/index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@agnishc/edb-usage-stats

A Pi CLI extension that shows AI provider token usage, rate limits, reset timers, and live service status via the /usage command.

Supported providers

Provider Usage source
Claude (Anthropic) Anthropic API
GitHub Copilot GitHub API
Gemini Gemini CLI
OpenAI Codex OpenAI API
Antigravity Antigravity API
MiniMax MiniMax API
OpenRouter OpenRouter API
Kiro kiro-cli
z.ai z.ai API

Install

pi install npm:@agnishc/edb-usage-stats

Usage

/usage

Opens a rate-window box for each enabled provider:

╭────────────────────────────╮
│ AI Usage                   │
├────────────────────────────┤
│ Claude                     │
│  Daily   ████░░░░░░  62%   │
│  Hourly  ██████████   0%   │
├────────────────────────────┤
│ r refresh · s settings · Esc close │
╰────────────────────────────╯

Press s to open the provider settings panel and toggle which providers are shown. Settings persist to ~/.pi/agent/extensions/pi-usage-stats/settings.json.

License

MIT © Agnish Chakraborty