Skip to content

Add "pi" to the Kimi Code approved coding-agent whitelist #2185

Description

@da-moon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions