← Catalog

@agnishc/edb-usage-stats

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

Extension

Install

Install with PiG

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

Install with Pi

pi install npm:@agnishc/edb-usage-stats
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.21.1 (README.md). PiG does not review it.

@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

ProviderUsage source
Claude (Anthropic)Anthropic API
GitHub CopilotGitHub API
GeminiGemini CLI
OpenAI CodexOpenAI API
AntigravityAntigravity API
MiniMaxMiniMax API
OpenRouterOpenRouter API
Kirokiro-cli
z.aiz.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