Skip to content

[FEATURE]:https://api.kimi.com/coding/ support #4124

Closed as not planned
Closed as not planned

Description

@abilliontokens

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

https://www.kimi.com/coding/docs/en/third-party-agents.html

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Nov 9, 2025
  2. github-actions commented on Nov 9, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. OpeOginni commented on Nov 9, 2025

    @OpeOginni
    Contributor

    @oldschoola Try use this for your opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
        "provider": {
          "kimi": {
            "npm": "@ai-sdk/openai-compatible",
            "name": "Kimi",
            "options": {
              "baseURL": "https://api.kimi.com/coding/",
              "apiKey": "<your-kimi-api-key>"
            },
            "models": {
              "kimi-for-coding": {
                "name": "Kimi for Coding",
                "limit": {
                  "context": 262144,
                  "output": 32768
                }
              }
            }
          }
        }
    }
  4. JanOwiesniak commented on Nov 13, 2025

    @JanOwiesniak

    Thanks @OpeOginni for the config. I'm getting The requested resource was not found as response in the session. Any idea why?

  5. OpeOginni commented on Nov 13, 2025

    @OpeOginni
    Contributor

    No problem @JanOwiesniak . That issue could be cause of the name of the model you put, confirm that its correct, with the casing and hyphens kimi-for-coding

  6. Fozzyack commented on Nov 23, 2025

    @Fozzyack

    @oldschoola Try use this for your opencode.json

    {
    "$schema": "https://opencode.ai/config.json",
    "provider": {
    "kimi": {
    "npm": "@ai-sdk/openai-compatible",
    "name": "Kimi",
    "options": {
    "baseURL": "https://api.kimi.com/coding/",
    "apiKey": ""
    },
    "models": {
    "kimi-for-coding": {
    "name": "Kimi for Coding",
    "limit": {
    "context": 262144,
    "output": 32768
    }
    }
    }
    }
    }
    }

    Almost works for me. I think the base url needs to have v1 at the end ("baseURL": "https://api.kimi.com/coding/v1",).

    However, am running into an annoying:
    ERROR 2025-11-23T17:59:40 +1ms service=tui message=Access terminated statusCode=403 API error

  7. briansunter commented on Nov 28, 2025

    @briansunter

    This is working for me in opencode.

      "provider": {
        "kimi-for-coding": {
          "npm": "@ai-sdk/anthropic",
          "name": "Kimi For Coding",
          "options": {
            "baseURL": "https://api.kimi.com/coding/v1"
          },
          "models": {
            "kimi-for-coding: {
              "name": "Kimi For Coding",
              "limit": {
                "context": 262144,
                "output": 32768
              }
            }
          }
        }
      }
    

    in auth.json

      "kimi-for-coding": {
        "type": "api",
        "key": "sk-kimi-..."
      }
    

    https://www.kimi.com/coding/docs/en/third-party-agents.html

  8. Fozzyack commented on Nov 28, 2025

    @Fozzyack

    @briansunter working for me!
    I should've known to try use the anthropic sdk.

  9. rekram1-node commented on Dec 1, 2025

    @rekram1-node
    Contributor

    PR welcome if anyone wants to add it to models.dev

  10. briansunter commented on Dec 2, 2025

    @briansunter
  11. rekram1-node commented on Dec 2, 2025

    @rekram1-node
    Contributor

    merged!

    it should deploy shortly and then everything should work as expected

  12. Eleven-is-cool commented on Mar 7, 2026

    @Eleven-is-cool

    This is working for me in opencode.

    "provider": {
        "kimicoding": {
          "models": {
            "kimi-for-coding": {
              "name": "kimi-for-coding"
            }
          },
          "name": "Kimi",
          "npm": "@ai-sdk/anthropic",
          "options": {
            "apiKey": "<your-kimi-api-key>",
            "baseURL": "https://api.kimi.com/coding/v1"
          }
        }
      }
  13. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  14. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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