Skip to content

[Provider compatibility]: Kimi Coding presets cannot use the native Responses wire — registry pins chat, and the shipped "Kimi (Responses)" preset is not reachable #8087

Closed

Description

@TRIALRICARDO

Client or integration

Codex App

Provider or upstream service

Kimi Coding Plan (https://api.kimi.com/coding/v1). Registry presets: kimi (OAuth), kimi-code (API key), kimi-responses (Kimi (Responses), OAuth), plus the modelAdapters config field.

OpenCodex version

2.96.0 — Desktop build, ocx 2.96.0 at C:\Program Files\OpenCodex\ocx.exe; /healthz reports {"status":"ok","service":"opencodex","version":"2.96.0"}. Windows 11 x64.

Endpoint or capability

POST https://api.kimi.com/coding/v1/responses — Kimi's native OpenAI Responses wire (streaming/non-streaming, reasoning, function calling). Route existence verified without credentials: the endpoint returns 401 {"error":{"message":"Invalid Authentication","type":"invalid_authentication_error"}}, not 404.

Current behaviour

Kimi ships three parallel presets, and none of them gives a user the native Responses wire in practice:

preset auth upstream wire reachable from the dashboard
kimi OAuth openai-chat (registry-pinned) yes
kimi-code API key openai-chat (registry-pinned) yes
kimi-responses OAuth openai-responses no

1. Registry authority overrides the configured adapter. Setting adapter: "openai-responses" on either kimi or kimi-code succeeds — ocx provider edit ... --adapter openai-responses reports success and the value is persisted in ~/.opencodex/config.json — but routing does not change. The provider settings page still shows 上游协议 openai-chat / 决定来源 提供商目录, and:

$ ocx api protocols --provider kimi
Provider kimi: adapter openai-chat (registry), upstream chat, auth oauth

$ ocx api protocols --provider kimi-code
Provider kimi-code: adapter openai-chat (registry), upstream chat, auth key

The request log keeps labelling calls Responses → Chat · 已转换, and the logged attempt carries "adapter": "openai-chat". This is the routedProviderConfig() behaviour already described in #5097.

2. The shipped Responses preset is not offered by the dashboard. GET /api/provider-presets returns 100 presets and does not contain kimi-responses. The Add-provider picker is rendered from that list, so searching "kimi" shows only Kimi, Kimi (coding), Fire Pass (Fireworks Kimi) and Moonshot (Kimi API) — no Responses option. The same endpoint also omits devin, github-copilot, google-antigravity, kiro and meta-muse, so this looks like a class of OAuth presets excluded from the dashboard picker rather than a Kimi-only omission.

3. The CLI path for that preset also fails. ocx provider add kimi-responses --live (with and without --auth-mode oauth) exits with Provider operation did not return a usable outcome. Inspect the selected target before retrying; no rollback is implied. The row is not created (ocx provider show kimi-responses reports not configured).

4. The dashboard's per-model override table is display-only. The provider settings page renders 使用其他协议的模型 / 所有模型都使用提供商的协议 but offers no control that writes modelAdapters; in 2.96.0 that config field is the only user-side wire override that survives routedProviderConfig().

Net effect: the only working Responses path is a manually created custom provider id that does not collide with a registry entry (Custom provider in the picker, or ocx provider add <custom-id> --adapter openai-responses ...). It works, but it is not discoverable, drops the preset's model metadata and aliases, and is not documented as the Kimi path.

Expected behaviour

Kimi should not hard-pin the wire, and the existing Responses preset should be usable:

  1. Wire defaults per model, gated by inbound surface, following the pattern already merged for Alibaba Token Plan in [Provider] alibaba-token-plan: native OpenAI Responses wire is officially supported upstream — request validated opt-in / default flip #5097 → fix(providers): bundle lane F1 — Cursor fast continuation, Meta Muse web_search, artifact connect deadline, Alibaba Responses pins, Windows kiro.exe #5673: registry modelWireDefaults so Responses inbound uses openai-responses, while Chat and Anthropic inbound keep openai-chat as today.
  2. Expose the wire in the dashboard — either make the 使用其他协议的模型 table editable, or surface the per-model override next to the adapter field, so an API-key user can opt in without hand-editing config.json.
  3. Make kimi-responses reachable — list the preset in /api/provider-presets / the Add-provider picker, or add an API-key sibling preset next to the OAuth one (the existing kimi / kimi-code split already establishes that pattern). At minimum, the CLI provider add failure above should return an actionable error instead of "no usable outcome".

Kimi's own documentation is the motivation: its official Codex integration guide states the server natively supports the OpenAI Responses API, requires wire_api = "responses", and warns that proxy protocol conversion may cause output instability.

Minimal redacted request or reproduction

Provider rows (credentials redacted; `kimi` and `kimi-code` behave identically):


{
  "kimi": {
    "adapter": "openai-responses",
    "baseUrl": "https://api.kimi.com/coding/v1",
    "authMode": "oauth",
    "defaultModel": "kimi-for-coding"
  },
  "kimi-code": {
    "adapter": "openai-responses",
    "baseUrl": "https://api.kimi.com/coding/v1",
    "authMode": "key",
    "apiKey": "sk-kimi-***",
    "defaultModel": "kimi-for-coding"
  }
}


Request through the proxy:


curl -s -X POST http://127.0.0.1:10100/v1/responses \
  -H 'content-type: application/json' \
  -d '{"model":"kimi-code/kimi-for-coding","input":"say OK","max_output_tokens":32}'


Routing resolution and preset availability:


$ ocx api explain --model kimi-for-coding --inbound responses
responses kimi-for-coding: translated (direct route, preview)
  kimi-code/kimi-for-coding: translated responses > ir > chat

$ curl -s -H "Authorization: Bearer $TOKEN" http://127.0.0.1:10100/api/provider-presets
{"providers": [... 100 entries ...]}   # no "kimi-responses"

$ ocx provider add kimi-responses --live
Error: Provider operation did not return a usable outcome.


Control experiment isolating the cause to registry authority — same credential, same base URL, non-registry provider id:


$ ocx provider add kimi-resp --adapter openai-responses \
    --base-url https://api.kimi.com/coding/v1 --auth-mode key --live
$ ocx api protocols --provider kimi-resp
Provider kimi-resp: adapter openai-responses (operator), upstream responses, auth key


The same request then succeeds, and the request log records `attempts: [{"adapter": "openai-responses", "status": 200}]`.

Actual response or error

No HTTP error — this is a silent protocol downgrade plus an unreachable preset, not a failed request. Observable symptoms: the dashboard source label `提供商目录`, the `Responses → Chat · 已转换` badge in the request log, `"adapter": "openai-chat"` on the logged attempt, and the absence of `kimi-responses` from `/api/provider-presets`.

Upstream documentation

Suggested mapping or implementation notes

Additional context and attachments

Checks

  • I searched existing provider and compatibility issues.
  • The request and response were redacted.
  • The expected behaviour is based on an upstream specification or a concrete client requirement.

Activity

  1. added
    provider-compatibility
    provider
    on Nov 2, 2026
  2. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Automated translation bookkeeping — detected language: English.

  3. added
    account-pool
    on Nov 2, 2026
  4. Ingwannu commented on Nov 4, 2026

    @Ingwannu
    Owner

    Thanks for the detailed report. Checked against dev @ 72e80d2:

    1. Adapter on kimi / kimi-code is ignored. This is intended. Registry-pinned OAuth/key presets own their transport (src/providers/registry.ts:109, src/providers/routed-config.ts:212). The supported per-model override is modelAdapters, e.g. "modelAdapters": { "kimi-for-coding": "openai-responses" }, which you already confirmed works (precedence documented in guides/providers.md). Changing the Kimi default to Responses (a fix(providers): bundle lane F1 — Cursor fast continuation, Meta Muse web_search, artifact connect deadline, Alibaba Responses pins, Windows kiro.exe #5673-style modelWireDefaults pin) is a separate owner decision. The kimi-responses preset is intentionally non-default ("Chat wire remains the default preset for transparency"), and that change would need the same per-model evidence as [Provider] alibaba-token-plan: native OpenAI Responses wire is officially supported upstream — request validated opt-in / default flip #5097: tool continuations, streaming terminal events, and reasoning visibility after fix(kimi): drop the unsupported output.encrypted_content include on Kimi Code Responses #8122.

    2. kimi-responses is not reachable. Confirmed. The docs present it as an addable preset, but deriveProviderPresets() only lists featured || key || dashboardPreset entries (src/providers/derive.ts:410). kimi-responses is featured: false with no dashboardPreset. Separately, the OAuth add flow logs in through oauthProvider: "kimi", which seeds the Chat kimi row (src/oauth/index.ts:304). So setting the flag alone would not create a kimi-responses row. Fixing this needs a small design decision on how an OAuth sibling preset gets its own row.

    3. ocx provider add kimi-responses returns a generic error. Confirmed. provider-lifecycle-runtime.ts:123 throws a plain Error("Target preset unavailable..."), and runProviderAction (src/cli/provider-result.ts:54) masks it as "did not return a usable outcome". This should be a CliUsageError so the real reason is printed.

    Until then, the supported workaround is modelAdapters on kimi/kimi-code, or a custom provider id with --adapter openai-responses. Keeping this open for (2) and (3).

  5. lidge-jun commented on Nov 16, 2026

    @lidge-jun
    Owner

    Owner decision (lidge-jun, 2026-11-16): make the kimi-responses preset reachable: show it in the dashboard and let it create its own row under the same Kimi login.

  6. lidge-jun commented on Nov 16, 2026

    @lidge-jun
    Owner

    Closed by #8798 (c36793a). The owner's decision on this issue was to make kimi-responses reachable as its own provider row under the shared Kimi login, and that is now delivered: the row can be added from the dashboard picker or with ocx provider add kimi-responses --live, reuses the kimi OAuth credential, and uses the OpenAI Responses wire.

    Two outcomes this issue also described were outside that decision and are not planned here: (b) per-model wire defaults, and (c) a protocol control in the dashboard. If you need either one, please open a focused issue that describes the use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    account-poolproviderprovider-compatibility

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions