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
- Sign Up/Sign In: Go to the Moonshot.ai Platform. Create an account or sign in.
- Navigate to API Keys: Access the API Keys section in your account dashboard.
- Create a Key: Click to generate a new API key. Give it a descriptive name (e.g., "Kilo Code").
- 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 contextmoonshot-v1-32k– Extended context model with 32K tokensmoonshot-v1-128k– Long-context model with 128K tokenskimi-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
- Open Kilo Code Settings: Click the gear icon () in the Kilo Code panel.
- Select Provider: Choose "Moonshot.ai" from the "API Provider" dropdown.
- Enter API Key: Paste your Moonshot.ai API key into the "Moonshot.ai API Key" field.
- 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.