Install
Install with PiG
pig install npm:@spences10/pi-kimi-usageInstall with Pi
pi install npm:@spences10/pi-kimi-usagePackages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"image": "https://raw.githubusercontent.com/spences10/my-pi/main/assets/pi-package-preview.png",
"extensions": [
"./dist/index.js"
]
}README
Written by the package's publisher, shown as published in version 0.0.2 (README.md). PiG does not review it.
@spences10/pi-kimi-usage

Pi extension that publishes Kimi For Coding usage to the footer status area.
It only shows status when the active model provider is kimi-coding.
The extension reads ~/.pi/agent/auth.json for the kimi-coding
credential (OAuth access token or API key, falling back to the
KIMI_API_KEY environment variable), calls the Kimi Code usage
endpoint (GET https://api.kimi.com/coding/v1/usages), and publishes
a compact kimi-usage status for the existing @spences10/pi-footer
renderer.
The status shows the 5-hour rolling window first, then the weekly
quota, each as used percent with a compact reset time, e.g.
kimi 4h 7% · 5d 4%. The footer shows kimi ? when the credential is
expired or the endpoint is unreachable; OAuth tokens are refreshed by
Pi's built-in provider and picked up here on the next poll.
Installation
pi install npm:@spences10/pi-kimi-usage
Disable the built-in with:
my-pi --no-kimi-usage
Development
Package scripts build transitive workspace dependencies first, then
run local tools through Vite+ with vp exec.
pnpm --filter @spences10/pi-kimi-usage run check
pnpm --filter @spences10/pi-kimi-usage run test
pnpm --filter @spences10/pi-kimi-usage run build
License
MIT