Skip to content

Feature: Add Kimi Coding Provider Support #1293

@traceless929

Description

@traceless929

Is your feature request related to a problem?

PicoClaw currently only supports Moonshot provider (api.moonshot.cn/v1) for Kimi models. However, Kimi Code Plan uses a separate endpoint (api.kimi.com/coding/v1) with different API keys and potentially different capabilities.

Proposed Solution

Add a dedicated kimi-coding provider:

Config Value
Provider name kimi-coding
Endpoint https://api.kimi.com/coding/v1
API Key env KIMI_API_KEY or PICOCLAW_PROVIDERS_KIMI_CODING_API_KEY
Model ref format kimi-coding/k2p5

Configuration Example

{
  "providers": {
    "kimi-coding": {
      "api_key": "sk-xxx",
      "api_base": "https://api.kimi.com/coding/v1"
    }
  },
  "agents": {
    "defaults": {
      "model": "kimi-coding/k2p5"
    }
  }
}

Alternatives Considered

Tried overriding MOONSHOT_API_BASE to Kimi Coding endpoint, but compatibility is uncertain due to potential differences in API behavior and model IDs.

References

Use Case

Users who have Kimi Code Plan subscription want to use PicoClaw with Kimi Coding API instead of Moonshot API, leveraging Kimi Code's search and fetch capabilities.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions