pi-auch
Another Usage Checker, Horrified. Compact quota visibility for Pi, with escalating pain as your usage runs out.
Package details
Install pi-auch from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-auch- Package
pi-auch- Version
0.3.0- Published
- Sep 14, 2026
- Downloads
- 905/mo · 189/wk
- Author
- joao-o-santos
- License
- MIT
- Types
- extension
- Size
- 1.2 MB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-auch
Another Usage Checker, Horrified.
Compact quota visibility for Pi's standard footer. It supports OpenAI Codex and GitHub Copilot without sending model probes.
Install
pi install npm:pi-auch
To try it for one session without installing it:
pi -e npm:pi-auch
Usage appears compactly in Pi's footer as provider, emoji, pain reaction, percentage, and reset time: Cdx 🙂 nice 12%/4h - 😬 ohhh 55%/3d. Reactions escalate from nice to ohhh, auch!, and AUCH!! at adjusted pain scores of 45, 65, and 85. The score is usage percentage plus up to 20 points for the fraction of a known Codex 5-hour or weekly reset window still remaining. Run /auch for full details.
Authentication
- OpenAI Codex: uses Pi's
openai-codexOAuth login and the ChatGPTwham/usageendpoint. It reports both the 5-hour and weekly rolling windows, including time until reset. - GitHub Copilot: uses Pi's resolved
github-copilotauthentication to detect configuration. After Copilot is used in the session, premium-request and generic request limits are read passively from recognized response headers, including counts, percentages, and reset times when supplied. No model request is sent by pi-auch.
pi-auch never opens Pi's credential files, stores provider credentials, logs credentials, or logs provider response bodies. Authentication is resolved through Pi's provider API.
Behavior
Quota is fetched at session start, every minute, and on /auch. Reset countdowns show XdYh for 24 hours or more and XhYm below 24 hours; exhausted quotas show a local-time try back at HHhMMm hint when a reset is known. Passive provider data updates after normal model responses. Requests have deadlines and body-size limits. Concurrent refreshes are deduplicated. A transient failure keeps the last successful value marked as stale.
The passive quota-header conventions are adapted from MIT-licensed @mtrojnar/pi-usage; see THIRD_PARTY_NOTICES.md.
Development
npm install
npm run check
npm pack --dry-run
Run the opt-in live smoke test from a development checkout to check the supported providers configured in the current Pi installation:
npm run smoke
# or: make smoke
The smoke test resolves authentication through Pi's ModelRuntime; it does not inspect credential
files, print authentication, or send model probes. Providers without a local subscription are
skipped. Codex performs a bounded live quota request and requires both 5-hour and weekly percentage
and reset data. Copilot validates Pi authentication but cannot obtain passive quota until normal
Copilot use returns recognized quota headers.