Skip to content

taviks/pi-llm-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-llm-usage

A small pi extension that adds a /usage command to show LLM subscription usage in an overlay.

pi-llm-usage overlay

Install

Recommended (global convention)

pi install git:github.com/taviks/pi-llm-usage

This installs the package in pi's global location and updates global settings (~/.pi/agent/settings.json).

Manual settings entry (global)

{
  "packages": ["git:github.com/taviks/pi-llm-usage"]
}

Then run /reload in pi.

Usage

/usage

Shows usage windows for:

  • Anthropic (5h / weekly / model-specific when available)
  • OpenAI Codex (session / weekly)

Close with Esc, Enter, or q.

Notes

  • Uses your existing OAuth sessions (no API keys required)
  • Reads credentials from ~/.pi/agent/auth.json and falls back to ~/.codex/auth.json for Codex
  • Launch at any time, even when a session is active
  • Feel free to open an issue/pr to add support for more providers

License

MIT

About

A small pi extension that adds a /usage command to show LLM subscription usage in an overlay.

Topics

Resources

Stars

Watchers

Forks

Contributors