Skip to main content

Using Moonshot.ai With Kilo Code

Moonshot.ai is a Chinese AI company known for their Kimi models featuring ultra-long context windows (up to 200K tokens) and advanced reasoning capabilities. Their K2-Thinking model delivers extended thinking and problem-solving abilities.

Website: https://www.moonshot.cn/

Getting an API Key

  1. Sign Up/Sign In: Go to the Moonshot.ai Platform. Create an account or sign in.
  2. Navigate to API Keys: Access the API Keys section in your account dashboard.
  3. Create a Key: Click to generate a new API key. Give it a descriptive name (e.g., "Kilo Code").
  4. Copy the Key: Important: Copy the API key immediately. Store it securely.

Supported Models

Kilo Code supports the following Moonshot.ai models:

  • moonshot-v1-8k – General-purpose model with 8K context
  • moonshot-v1-32k – Extended context model with 32K tokens
  • moonshot-v1-128k – Long-context model with 128K tokens
  • kimi-k2-thinking – Advanced reasoning model with extended thinking capabilities

Refer to the Moonshot.ai documentation for detailed information on each model's capabilities and pricing.

Configuration in Kilo Code

  1. Open Kilo Code Settings: Click the gear icon () in the Kilo Code panel.
  2. Select Provider: Choose "Moonshot.ai" from the "API Provider" dropdown.
  3. Enter API Key: Paste your Moonshot.ai API key into the "Moonshot.ai API Key" field.
  4. Select Model: Choose your desired model from the "Model" dropdown.

Tips and Notes

  • Ultra-Long Context: Kimi models excel at handling large codebases and complex projects with their extended context windows.
  • Reasoning Capabilities: The K2-Thinking variant provides enhanced problem-solving through extended reasoning chains.
  • Language Support: Kimi models have strong support for both English and Chinese languages.
  • Pricing: Refer to the Moonshot.ai platform for current pricing information on different models.