Skip to content

Add verified Kimi coding-plan provider preset (api.kimi.com/coding) #86

Closed

Description

@melvincarvalho

First concrete deliverable of #85.

The current moonshot preset (src/providers.js) points at https://api.moonshot.ai/anthropic + MOONSHOT_API_KEY — the pay-as-you-go surface, which 429s with "account suspended due to insufficient balance" on a coding subscription. There is no preset for the Kimi Code subscription plan.

Verified working config (smoke-tested end-to-end against agent-micro's runner — status: success, real kimi-for-coding reply):

field value
baseUrl https://api.kimi.com/coding
key sk-kimi-… from Kimi Code console → API Keys, sent as ANTHROPIC_AUTH_TOKEN (keyStyle: authToken)
model kimi-for-coding

Evidence the surface is Anthropic-native and sanctioned:

  • POST https://api.kimi.com/coding/v1/messages (Anthropic) → 200.
  • OpenAI /chat/completions → 403: "only available for Coding Agents such as Kimi CLI, Claude Code, Roo Code, Kilo Code" — Claude Code (jsclaw's harness) is explicitly allowed.

Scope (this issue only)

  • Add a kimi coding-plan preset to PROVIDERS in src/providers.js: baseUrl: https://api.kimi.com/coding, keyEnv: KIMI_API_KEY, keyStyle: authToken, models: [kimi-for-coding], a note that it's the subscription/coding plan.
  • Clarify the existing moonshot preset's note as pay-as-you-go so the two aren't confused.
  • No runtime/per-agent switching, no key rotation — those stay in Support coding-plan (OAuth) endpoints — run agents on Kimi/GLM subscriptions, not pay-as-you-go keys #85.

Refs #85.

Activity

  1. added a commit that references this issue on Jun 12, 2026
    a775ea3
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions