@saadjs/pi-status

Non-interactive provider usage command for pi

Packages

Package details

extension

Install @saadjs/pi-status from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@saadjs/pi-status
Package
@saadjs/pi-status
Version
0.1.0
Published
Aug 25, 2026
Downloads
239/mo · 4/wk
Author
saadjs
License
MIT
Types
extension
Size
14.4 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@saadjs/pi-status

A non-interactive /status extension for pi.

Supported providers

  • OpenAI Codex (openai-codex)
  • 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.

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