Request: whitelist the pi coding agent on api.kimi.com/coding, so pi
users can use Kimi Coding membership without impersonating another client.
Context
pi is an open-source terminal coding agent (https://pi.dev). Users want
to drive Kimi Coding (kimi-for-coding / K2.7 Code) from pi using their
Kimi membership.
api.kimi.com/coding admits requests only from approved clients by
inspecting User-Agent. Today pi cannot use Kimi Coding without
spoofing an approved client identity (for example KimiCLI/*).
- Spoofing is prohibited by the Kimi Code Community Guidelines ("Don't
spoof or alter client identity information"), so we will not ship that.
We want our own identifier whitelisted instead.
Request
- Whitelist the
pi/<version> User-Agent (and X-Msh-Platform: pi) on
api.kimi.com/coding, on the same terms as Kimi CLI, Claude Code,
Roo Code, and Kilo Code.
- pi sends its own stable identifier. This is not a request to spoof any
other client.
Why this is small
- The whitelist is prefix-based (
KimiCLI/ and claude-code/ both pass
today), so a single allowlist entry covers pi.
- Endpoint, model id, and the OAuth device flow are unchanged; pi already
implements the public device-code flow against auth.kimi.com.
Precedent
References
Request: whitelist the
picoding agent onapi.kimi.com/coding, so piusers can use Kimi Coding membership without impersonating another client.
Context
piis an open-source terminal coding agent (https://pi.dev). Users wantto drive Kimi Coding (kimi-for-coding / K2.7 Code) from pi using their
Kimi membership.
api.kimi.com/codingadmits requests only from approved clients byinspecting
User-Agent. Today pi cannot use Kimi Coding withoutspoofing an approved client identity (for example
KimiCLI/*).spoof or alter client identity information"), so we will not ship that.
We want our own identifier whitelisted instead.
Request
pi/<version>User-Agent(andX-Msh-Platform: pi) onapi.kimi.com/coding, on the same terms as Kimi CLI, Claude Code,Roo Code, and Kilo Code.
other client.
Why this is small
KimiCLI/andclaude-code/both passtoday), so a single allowlist entry covers pi.
implements the public device-code flow against
auth.kimi.com.Precedent
References
https://www.kimi.com/code/docs/en/kimi-code/community-guidelines.html
https://www.kimi.com/help/kimi-code/third-party-agents