@ramarivera/pi-kimi-for-coding
v0.1.4
Published
Pi extension that adds Kimi For Coding OAuth support using the official device flow and Kimi-specific request behavior.
Downloads
578
Maintainers
Readme
@ramarivera/pi-kimi-for-coding
A Pi extension that adds a dedicated Kimi For Coding OAuth provider using the official Kimi device flow plus Kimi-specific request shaping.
What it does
- uses the official device flow at
https://auth.kimi.com - targets
https://api.kimi.com/coding/v1 - sends the Kimi CLI fingerprint headers (
User-Agent+X-Msh-*) - reuses
~/.kimi/device_idfor stable device identity - injects
prompt_cache_key - maps Pi thinking levels onto Kimi
thinking+reasoning_effort - refreshes OAuth tokens and re-discovers model metadata
Install
From npm
pi install npm:@ramarivera/pi-kimi-for-codingFrom GitHub
pi install git:github.com/ramarivera/pi-kimi-for-codingFrom a local checkout
pi install /absolute/path/to/pi-kimi-for-codingAuthenticate
Start Pi and run:
/loginThen choose Kimi For Coding.
Use
After login, select the provider/model:
- provider:
kimi-for-coding-oauth - model:
kimi-for-coding
Development
bun install
bun test
bunx tsc --noEmitNotes
This package is meant to be installed as a Pi package, so it declares its extension entry under the pi key in package.json.
License
MIT
