A small pi extension that adds a /usage command to show LLM subscription usage in an overlay.
pi install git:github.com/taviks/pi-llm-usageThis installs the package in pi's global location and updates global settings (~/.pi/agent/settings.json).
{
"packages": ["git:github.com/taviks/pi-llm-usage"]
}Then run /reload in pi.
/usage
Shows usage windows for:
- Anthropic (5h / weekly / model-specific when available)
- OpenAI Codex (session / weekly)
Close with Esc, Enter, or q.
- Uses your existing OAuth sessions (no API keys required)
- Reads credentials from
~/.pi/agent/auth.jsonand falls back to~/.codex/auth.jsonfor Codex - Launch at any time, even when a session is active
- Feel free to open an issue/pr to add support for more providers
MIT
