Install
Install with PiG
pig install npm:@saadjs/pi-statusInstall with Pi
pi install npm:@saadjs/pi-statusPackages 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": [
"./index.ts"
]
}README
Written by the package's publisher, shown as published in version 0.3.0 (README.md). PiG does not review it.
@saadjs/pi-status
A non-interactive /status extension for pi.
Supported providers
- OpenAI with Sign in with ChatGPT (
openai); OpenAI API keys are not supported - Anthropic Claude with a Claude Pro/Max sign-in (
anthropic); Anthropic API keys are not supported - OpenAI Codex (
openai-codex, "OpenAI Codex (legacy)" in pi 1.0) - OpenCode Go (
opencode-go)
Usage
When a supported model is active, /status (and /usage) shows its currently reported limit windows. OpenCode Go displays its 5-hour, weekly, and monthly limits.
For anthropic models, /status uses Pi's Claude login (/login anthropic) to show the signed-in account and plan, plus the 5-hour and weekly limits (and model-specific weekly limits when Anthropic reports them).
Pi's Sign in with ChatGPT token cannot read usage, so for openai models /status borrows the Codex CLI's login from $CODEX_HOME/auth.json (defaulting to ~/.codex/auth.json) and shows your ChatGPT plan's usage limit, which Sign in with ChatGPT shares with Codex. The Codex CLI must be signed in to the same ChatGPT account as pi. /status only reads that file and never refreshes it; if the login has expired, run codex. Without a Codex CLI login, it links ChatGPT's usage page instead.
OpenCode credentials are resolved from Pi first, then OPENCODE_API_KEY, then the OpenCode CLI's $XDG_DATA_HOME/opencode/auth.json (defaulting to ~/.local/share/opencode/auth.json).
Provider adapters
Provider-specific matching, authentication, and response parsing live in adapters/. To add or remove a provider, implement UsageProviderAdapter and update the registry in adapters/index.ts; the command and bar rendering require no changes.
Install
pi install npm:@saadjs/pi-status