omp packages

pi-usage0.3.0

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

alexlikevibe Published 3 months ago MIT ~736 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

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

Provider Auth Method
Codex (OpenAI) OAuth (/login)
Z.AI API key (ZAI_API_KEY)
Kimi For Coding API 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