← Catalog

pi-subscription-panel

Read-only Pi Atelier subscription usage panel for Codex, Claude Code, Antigravity and native Anthropic OAuth

Extension

Install

Install with PiG

pig install npm:pi-subscription-panel

Install with Pi

pi install npm:pi-subscription-panel
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/index.ts"
  ]
}

README

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

Pi Subscription Panel

Your subscription limits, at a glance. Without leaving Pi.

Read-only quota panels for Pi and Pi Atelier: Codex, Claude Code, Antigravity, and native Anthropic OAuth.

Version License: MIT Node.js

Pi Subscription Panel showing subscription quotas in the Pi Atelier sidebar

What you get

  • Remaining quota, not usage math: progress bars, % left, and reset countdowns.
  • Independent panels with five-hour and weekly windows when the provider reports them.
  • Automatic reads, conservative refresh intervals, and clear failure diagnostics.
  • Reload continuity for Codex, Claude Code, and Antigravity: last readings stay visible without bypassing refresh limits.
  • No inference requests to measure quota. Your model routing stays unchanged.

Install

Requires Node.js 22+, Pi, and Pi Atelier.

pi install https://github.com/nanonoir/pi-subscription-panel

Restart Pi, then open Atelier Settings → Display, enable the panels you want, and choose Save default. New panels may start hidden. If the sidebar is short on space, enlarge the terminal or hide other panels.

Use one copy. Disable the old pi-subscription-limits resources in pi config, if installed. Do not also load this extension with -e after installing it. Keep Atelier and your provider extensions enabled.

npm publication is coming next. This Git release is installable now; no npm package installation is advertised until publication is complete.

Connect your existing subscriptions

ProviderQuota sourceSetup
CodexPi's openai-codex OAuth sessionSign in to that provider in Pi. This does not change your execution provider or model.
Claude CodeClaude Code's existing local OAuth sessionSign in through Claude Code. The panel reads at startup and accepts quota metadata from normal responses.
AntigravityExisting agy /usage CLI bridgeHave the bridge available, then enable refresh in /subscriptions. It is off by default.
Native AnthropicPi's native Anthropic OAuth sessionOptional, separate from Claude Code. Hide this panel if you do not use that session.

Panel visibility and acquisition are separate: Atelier Display shows or hides a panel; /subscriptions controls details and Antigravity refresh.

Controls

Open /subscriptions for the menu. Enabled panels otherwise work without commands.

CommandAction
/subscriptions toggle codexExpand or collapse Codex details
/subscriptions toggle claude-codeExpand or collapse Claude Code details
/subscriptions toggle antigravityExpand or collapse Antigravity details
/subscriptions refresh antigravity onEnable automatic Antigravity reads
/subscriptions refresh antigravity offDisable reads and discard retained Antigravity quota
/subscriptions statusShow sanitized scheduling and failure diagnostics; makes no request
/subscriptions retry claude-codeRequest a retry, subject to existing safety limits

Retry also accepts codex, antigravity, and anthropic. To pause acquisition for collapsed panels, use /subscriptions refresh collapsed off; use on to restore the default behavior. Preferences are saved in Pi's agent directory.

Refresh and reload

ProviderMinimum interval between attempts
Codex1 minute
Claude Code5 minutes
Antigravity3 minutes when recently active; 20 minutes when idle
Native Anthropic30 minutes

These are minimum gaps, not guaranteed update intervals. Server deadlines, failure backoff, and the local one-minute tick can delay a read. Authentication failures pause automatic reads until an explicit retry.

/reload restores retained readings with their original observation times. It does not force another request. Retention is bounded, process-local, and never written to disk. Closing Pi discards it. Native Anthropic does not retain quota across reloads.

Antigravity assumes one account per Pi process. Close and reopen Pi after switching Antigravity accounts; reload alone cannot detect that change.

Missing data is never estimated. Old readings are marked as stale, and independent quota pools remain separate. A reset countdown describes the provider's window, not the time of the next refresh.

Privacy and compatibility

  • No messages are sent to a model solely to obtain quota.
  • Credentials and account identifiers are not shown in the panels or diagnostics, or stored in panel preferences. Existing provider authentication stays intact.
  • Claude Code uses only its own ~/.claude/.credentials.json: no alternate credential fallback, token renewal, or extra CLI invocation for that reader.
  • Quota endpoints are undocumented interfaces and can change. Unsupported or partial responses are reported honestly rather than replaced with fake values.

For a waiting or failed panel, start with /subscriptions status. It distinguishes normal refresh gaps, failure backoff, server deadlines, and manual-retry blocks without making another quota request.

Development

Pi loads the TypeScript extension directly; there is no build step.

npm ci
npm run check
pi -e ./extensions/index.ts

Use the temporary -e command instead of loading an installed copy. See the development guide and contributing guide.

License

MIT.

Acknowledgements

Thanks to Alexmarco for the original pi-subscription-limits, on which this project is based.