← Catalog

pi-usage

/usage command for pi – shows current provider's daily & weekly limits

Extension

Install

Install with PiG

pig install npm:pi-usage

Install with Pi

pi install npm:pi-usage
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": [
    "./extensions/usage/index.ts"
  ]
}

README

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

pi-usage

A lightweight pi extension that provides a single /usage command to display the current provider's daily and weekly usage limits.

Install

pi install npm:pi-usage

Usage

In pi, type:

/usage

A panel appears showing the current provider's daily and weekly limits with progress bars. Press Enter or Escape to close.

Supported Providers

ProviderAuth Method
Codex (OpenAI)OAuth (/login)
Z.AIAPI key (ZAI_API_KEY)
Kimi For CodingAPI key (KIMI_API_KEY)

Usage is shown for the current provider. Auth (including Codex OAuth refresh and env API keys) is resolved through pi's model registry, so as long as the active model is working, /usage can read its limits.

Credits

The usage fetching, auth handling, and provider detection logic are adapted from pi-usage-bars by @ajarellanod. Many thanks for the excellent work that made this lightweight version possible.

License

MIT