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

Open
opened 2026-02-16 17:36:59 -05:00 by yindo · 10 comments
Owner

Originally created by @oldschoola on GitHub (Nov 9, 2025).

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

Originally created by @oldschoola on GitHub (Nov 9, 2025). ### Feature hasn't been suggested before. - [x] 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
yindo added the discussion label 2026-02-16 17:36:59 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 9, 2025):

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

  • #3178: Add n1n.ai API as a model provider (similar request for adding a new API provider)
  • #2578: Feature Request: Add CometAPI Provider Support (similar API provider addition request)
  • #2933: Add Nebius Ai Studio Models Support (similar provider support request)
  • #3347: Add support for vultr as it has openai compatible api calls (closed, but was similar request that also mentioned Kimi support)

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

@github-actions[bot] commented on GitHub (Nov 9, 2025): This issue might be a duplicate of existing issues. Please check: - #3178: Add n1n.ai API as a model provider (similar request for adding a new API provider) - #2578: Feature Request: Add CometAPI Provider Support (similar API provider addition request) - #2933: Add Nebius Ai Studio Models Support (similar provider support request) - #3347: Add support for vultr as it has openai compatible api calls (closed, but was similar request that also mentioned Kimi support) Feel free to ignore if none of these address your specific case.
Author
Owner

@OpeOginni commented on GitHub (Nov 9, 2025):

@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
            }
          }
        }
      }
    }
}
@OpeOginni commented on GitHub (Nov 9, 2025): @oldschoola Try use this for your `opencode.json` ```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 } } } } } } ```
Author
Owner

@JanOwiesniak commented on GitHub (Nov 13, 2025):

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

@JanOwiesniak commented on GitHub (Nov 13, 2025): Thanks @OpeOginni for the config. I'm getting _The requested resource was not found_ as response in the session. Any idea why?
Author
Owner

@OpeOginni commented on GitHub (Nov 13, 2025):

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

@OpeOginni commented on GitHub (Nov 13, 2025): 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`
Author
Owner

@Fozzyack commented on GitHub (Nov 23, 2025):

@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

@Fozzyack commented on GitHub (Nov 23, 2025): > [@oldschoola](https://github.com/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 > } > } > } > } > } > } 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`
Author
Owner

@briansunter commented on GitHub (Nov 28, 2025):

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

@briansunter commented on GitHub (Nov 28, 2025): 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
Author
Owner

@Fozzyack commented on GitHub (Nov 28, 2025):

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

@Fozzyack commented on GitHub (Nov 28, 2025): @briansunter working for me! I should've known to try use the anthropic sdk.
Author
Owner

@rekram1-node commented on GitHub (Nov 30, 2025):

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

@rekram1-node commented on GitHub (Nov 30, 2025): PR welcome if anyone wants to add it to models.dev
Author
Owner

@briansunter commented on GitHub (Dec 2, 2025):

Just added it here @rekram1-node https://github.com/sst/models.dev/pull/459

@briansunter commented on GitHub (Dec 2, 2025): Just added it here @rekram1-node https://github.com/sst/models.dev/pull/459
Author
Owner

@rekram1-node commented on GitHub (Dec 2, 2025):

merged!

it should deploy shortly and then everything should work as expected

@rekram1-node commented on GitHub (Dec 2, 2025): merged! it should deploy shortly and then everything should work as expected
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2730