@sumhou/pi-kimi-usage
v1.1.0
Published
Pi footer extension showing Kimi Coding quota progress, reset countdowns, and Moonshot PAYG balance
Downloads
305
Readme
pi-kimi-usage
A Pi extension that shows Kimi Coding quota progress and reset countdowns in the Pi footer, with the Kimi label always shown in blue and quota bars colored by remaining percentage.
Features
- Displays per-quota ASCII progress bars for the 5-hour and weekly Kimi Coding limits.
- Shows reset countdowns like
1h42mor2d6hnext to each quota. - Shows optional Moonshot PAYG balance.
- Only activates while a
kimi-codingmodel is selected. - Refreshes quota data every 5 minutes; countdowns repaint every minute locally.
Install
pi install npm:@sumhou/pi-kimi-usageOr install from git:
pi install git:github.com/ShumaoHou/pi-kimi-usageUsage
Select any kimi-coding model and the footer will update automatically. Run /kimi-usage for a detailed notification.
Appearance

The status bar renders the Kimi label in fixed blue (rgb(23, 131, 255)). Each remaining quota bar is colored on a green-to-red gradient:
- ≥ 80% remaining: green
- ≤ 20% remaining: red
- 20%–80%: linear transition between red and green
No color configuration is currently exposed.
Credentials
- Kimi Coding: resolved from Pi's
kimi-codingprovider auth, thenKIMI_API_KEY, then a stored OAuth token. - Moonshot PAYG:
MOONSHOT_API_KEY.
