https://github.com/zlliang/pi-credits
A pi extension that shows the active provider's credit balance or rate-limit usage.
https://github.com/zlliang/pi-credits
Last synced: 10 days ago
JSON representation
A pi extension that shows the active provider's credit balance or rate-limit usage.
- Host: GitHub
- URL: https://github.com/zlliang/pi-credits
- Owner: zlliang
- License: mit
- Created: 2026-06-10T12:30:37.000Z (12 days ago)
- Default Branch: main
- Last Pushed: 2026-06-10T13:43:25.000Z (11 days ago)
- Last Synced: 2026-06-10T14:17:48.888Z (11 days ago)
- Language: TypeScript
- Size: 1.99 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

# pi-credits
A [pi](https://pi.dev/) extension that shows the active model provider's credit balance or rate-limit usage in the footer. It appears only for supported providers and uses the provider's stored credential or API key.

> Example with an OpenAI Codex subscription, paired with my [pi-spark](https://github.com/zlliang/pi-spark) package.
## Supported providers
- DeepSeek
- Fireworks
- Moonshot
- OpenAI Codex
- OpenRouter
- Vercel AI Gateway
Most provider-specific fetching approaches references [CodexBar](https://github.com/steipete/codexbar). Fireworks is an exception: its balance lives behind an internal gRPC API, so the approach was reverse-engineered from the `firectl` binary — see [docs/fireworks.md](./docs/fireworks.md).
## Install
Install from npm:
```bash
pi install npm:pi-credits
```
Install from git:
```bash
pi install git:github.com/zlliang/pi-credits
```
## Other pi packages
- [pi-spark](https://github.com/zlliang/pi-spark): a small, opinionated collection of pi extensions.