omp packages

@kcocoa/pi-usage-bar0.1.0

Universal usage and quota status bar for Pi

kcocoa Published 20 days ago ~239 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 Bar (pi-usage-bar)

Universal usage limit status bar for Pi.

Displays remaining usage limit percentages, local reset countdowns (or absolute clock times), plan type, and credits across multiple providers directly in Pi's status bar / footer.

Features

  • Multi-Provider Support:
    • Anthropic: Unified 5h, 7d, low-priority dedicated allowance, and Fable weekly (shown only on Fable models) utilization, remaining percentages, reset countdowns, and rate-limit rejection state (from OAuth response headers).
    • xAI: SuperGrok / X Premium weekly credit usage and reset countdowns (via Grok CLI billing proxy, cached for 5 minutes).
    • Codex / OpenAI Gateways: 5h/7d windows, custom metered limits, plan tiers (plus, pro5x, pro20x, business), and credits balances.
  • Shared Reset Clock & Countdown:
    • Low remaining usage limit (< 10%) or upcoming reset (< 1h) automatically switches to a 24-hour local clock (HH:MM).
    • Longer windows display relative countdowns (3h44m, 5d17h).
    • Expired windows display now or ?.
  • Zero Invasiveness:
    • Observes HTTP response headers via Pi's native after_provider_response hook.
    • Does not modify provider requests, wrap transports, or alter message lifecycles.

Status Bar Display Examples

  • Codex Pro 5x: pro5x 5h:82%↺3h44m 7d:54%↺5d17h
  • Anthropic: 5h:97%↺4h47m 7d:77%↺3d20h
  • Anthropic (with low priority): 5h:97%↺4h47m 7d:77%↺3d20h low:85%↺5d17h
  • Anthropic on a Fable model: 5h:97%↺4h47m 7d:77%↺3d20h fable:70%↺3d20h
  • xAI SuperGrok: supergrok 7d:99%↺5d12h
  • Low 5h usage limit with clock reset: pro5x 5h:8%↺14:30
  • Reset passed: 5h:?↺now

Installation

Clone into your Pi extensions directory:

git clone git@github.com:kcocoa/pi-usage-bar.git ~/.pi/agent/extensions/pi-usage-bar

For custom OpenAI Responses gateways, fast service tiers, or cyber warnings, pair this with pi-codex-gateway.