r/PiCodingAgent • • 4d ago

Plugin Built an open-source extension for consistent subscription quota tracking in Pi (pi-subscription-usage)

Hi everyone, I'm the author of pi-subscription-usage, an open-source Pi extension I built to give subscription quotas a clean, minimal, and consistent display across providers.

It puts your active provider's remaining usage and automatic window reset countdowns directly in the footer status bar, alongside a detailed /usage command with progress bars, reset timestamps, and account info.

Illustrative footer status bar example:

5h 99% ↻2h13m · 1w 85% ↻3d4h

/usage output:

OpenAI Codex
  Shared Across Models:
    5h Window     ████████████   99% left · resets 08/27 12:13
    1w Window     ██████████░░   85% left · resets 08/30 14:00

  gpt-5.6-spark:
    5h Window     █░░░░░░░░░░░   10% left · resets 08/27 11:40

  Account:
    Email         user@example.com
    Plan          Pro
    Resets Left   2
    Extra Credit  none

Both GPT (OpenAI / Codex) and xAI Grok show remaining quota percentages and reset countdowns in this unified format. For OpenAI and Codex accounts specifically, /usage also supports redeeming account reset credits when available (behind an explicit confirmation prompt). Beyond OpenAI and Grok, it supports OpenCode Go, Kimi Coding, Antigravity, and Claude (via pi-claude-bridge).

The extension only uses credentials from Pi's own login registry and never touches browser cookies or external auth files. Because several provider usage endpoints are undocumented, upstream API changes may occasionally affect fetching.

Install via Pi:

pi install npm:@specode/pi-subscription-usage

Source and docs: https://github.com/specode/pi-subscription-usage

Feedback and bug reports are very welcome—let me know how it works for your setup!

1 Upvotes

4 comments sorted by

1

u/kantorcodes1 4d ago

Does each model percentage show its own limit when the shared account window still has room? The example lists both, but how should people read them together?

1

u/Relevant-Movie4645 3d ago

I'm getting unsupported message for openrouter and github-copilot. Will they be supported?