Client integrationsBeginnersUpdated

Set up MiMo Code

Copy your I Code Easy key from API keys and choose an available endpoint for the model family in Endpoint selection. This guide uses MiMo-V2.6-Pro.

MiMo Code

Merge the configuration below into ~/.config/mimocode/mimocode.jsonc and replace YOUR_ICODEEASY_API_KEY with your local key. Select MiMo V2.6 Pro under I Code Easy, or run mimo models to check registration.

json
{
  "$schema": "https://mimo.xiaomi.com/mimocode/config.json",
  "model": "icodeeasy/MiMo-V2.6-Pro",
  "provider": {
    "icodeeasy": {
      "name": "I Code Easy",
      "npm": "@ai-sdk/openai-compatible",
      "only_configured_models": true,
      "models": {
        "MiMo-V2.6-Pro": {
          "name": "MiMo V2.6 Pro"
        }
      },
      "options": {
        "baseURL": "https://api.icodeeasy.cc/v1",
        "apiKey": "YOUR_ICODEEASY_API_KEY"
      }
    }
  }
}

The key is saved in this user configuration file. Keep it out of your project repository.

Verify your first request

Send a short text prompt in a new session and check the model and status in Request logs. For a 401, check your key. For model or access errors, check the model ID and selected endpoint. For connection issues, try https://jp.icodeeasy.cc or https://sg.icodeeasy.cc with the same path.

Official client documentation