Using Moonshot With Roo Code
Roo Code supports accessing models through the Moonshot AI API, which provides an OpenAI-compatible interface.
Website: https://platform.moonshot.cn/
Getting an API Key
- Sign Up/Sign In: Go to the Moonshot Platform. Create an account or sign in.
- Navigate to API Keys: Find your API keys in the API keys section of the platform.
- Create a Key: Create a new API key. Give your key a descriptive name (e.g., "Roo Code").
- Copy the Key: Important: Copy the API key immediately. You will not be able to see it again. Store it securely.
Available Models
Roo Code supports all models available through the Moonshot API.
For the complete, up-to-date model list, see Moonshot's API documentation.
Configuration in Roo Code
- Open Roo Code Settings: Click the gear icon () in the Roo Code panel.
- Select Provider: Choose "Moonshot" from the "API Provider" dropdown.
- Enter API Key: Paste your Moonshot API key into the "Moonshot API Key" field.
- Select Model: Choose your desired model from the "Model" dropdown.
Tips and Notes
- OpenAI-Compatible: Moonshot uses an OpenAI-compatible API format, making it easy to integrate with Roo Code.
- Pricing: Refer to the Moonshot platform for details on model costs and pricing.