pi-kimi-usage
v0.1.2
Published
Shows Kimi usage in the pi status bar when a Kimi model is selected
Downloads
237
Maintainers
Readme
pi-kimi-usage
A pi extension that shows compact Kimi usage info in the footer, only when a kimi-coding model is selected.
Example output:
Kimi · 7d 6% 6d20h · 5h 28% 1h40mFeatures
- Shows Kimi usage only for
kimi-codingmodels - Refreshes on session start, every 60 seconds, and on turn end
- Reads auth from:
KIMI_API_KEY~/.pi/agent/auth.json→kimi-coding.key- literal key
- env var name
- shell command prefixed with
!
- Uses
KIMI_CODE_BASE_URLif set, otherwise defaults tohttps://api.kimi.com/coding/v1/usages
Install
From npm:
pi install npm:pi-kimi-usageFrom GitHub:
pi install git:github.com/muffe/pi-kimi-usagenpm package:
- https://www.npmjs.com/package/pi-kimi-usage
Notes
This extension intentionally resolves auth.json shell-command keys (values starting with !) to match pi auth behavior.
