#Kimi

1 messages ยท Page 1 of 1 (latest)

solemn coralBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

torn stratusBOT
#

Based on the docs, here's how to add Kimi (Moonshot AI) as a model:

Moonshot AI (Kimi)

Kimi uses OpenAI-compatible endpoints, so you configure it via models.providers:

1. Set your API key:

export MOONSHOT_API_KEY="your-api-key"

2. Add to your config (~/.clawdbot/clawdbot.json):

{
  agents: {
#
    defaults: { model: { primary: "moonshot/kimi-k2-0905-preview" } }
  },
  models: {
    mode: "merge",
    providers: {
      moonshot: {
        baseUrl: "https://api.moonshot.ai/v1",
        apiKey: "${MOONSHOT_API_KEY}",
        api: "openai-completions",
        models: [{ id: "kimi-k2-0905-preview", name: "Kimi K2 0905 Preview" }]
      }
    }
  }
}
#

Available Kimi K2 models:

  • moonshot/kimi-k2-0905-preview
  • moonshot/kimi-k2-turbo-preview
  • moonshot/kimi-k2-thinking
  • moonshot/kimi-k2-thinking-turbo

Kimi Code (for coding)

There's also a separate Kimi Code service:

{
  env: { KIMICODE_API_KEY: "sk-..." },
  agents: {
    defaults: { model: { primary: "kimi-code/kimi-for-coding" } }
  },