MoonshotAI / MoonshotAI/kimi-code

Add "omp" to the Kimi Code approved coding-agent whitelist

Open
#3,051 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

Request: whitelist the omp coding agent on api.kimi.com/coding, so omp users can use Kimi Coding membership without impersonating another client.

Context

  • omp (oh-my-pi) is an open-source terminal coding agent (https://omp.sh), a fork of pi (https://pi.dev). Users want to drive Kimi Coding (kimi-for-coding / K2.7 Code) from omp using their Kimi membership.
  • api.kimi.com/coding admits requests only from approved clients by inspecting User-Agent. Today omp 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 omp/<version> User-Agent (and X-Msh-Platform: omp) on api.kimi.com/coding, on the same terms as Kimi CLI, Claude Code, Roo Code, and Kilo Code. omp currently sends omp/17.3.7.
  • omp 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 omp.
  • Endpoint, model id, and the OAuth device flow are unchanged; omp already implements the public device-code flow against auth.kimi.com.

Precedent

References

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the User-Agent allowlist for api.kimi.com/coding and the precedent issues linked in the request. Add omp/ version handling and X-Msh-Platform: omp on the same terms as the existing approved clients, then verify omp can use the endpoint without spoofing another client identity.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.