Models

MiMo Code uses the AI SDK and Models.dev to support 75+ LLM providers and it supports running local models.


Connect a provider

With MiMo Code you can use any LLM provider by configuring their API keys.

If you are new to using LLM providers, we recommend using MiMo Code Zen. It's a curated list of models that have been tested and verified by the MiMo Code team.

  1. Run the /connect command in the TUI, select mimocode, and head to code.xiaomimimo.com/auth.

    /connect
  2. Sign in, add your billing details, and copy your API key.

  3. Paste your API key.

    ┌ API key
    └ enter

Alternatively, you can select one of the other providers. Learn more.


Providers

Most popular providers are preloaded by default. If you've added the credentials for a provider through the /connect command, they'll be available when you start MiMo Code.

Learn more about providers.


Select a model

Once you've configured your provider you can select the model you want by typing in:

none
/models

The fastest way to get started is the MiMo Platform. It is OpenAI-compatible and authenticates with the api-key HTTP header. Drop the following into your mimocode.jsonc:

mimocode.jsonc
{
  "provider": {
    "mimo": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "MiMo",
      "options": {
        "baseURL": "https://api.xiaomimimo.com/v1",
        "headers": { "api-key": "{env:MIMO_API_KEY}" }
      },
      "models": {
        "mimo-v2.5-pro": { "name": "MiMo V2.5 Pro" }
      }
    }
  },
  "model": "mimo/mimo-v2.5-pro"
}

The flagship model is mimo-v2.5-pro. Reasoning output is returned as reasoning_content. An Anthropic-compatible endpoint is also available at https://api.xiaomimimo.com/anthropic.


Loading models

When MiMo Code starts up, it checks for models in the following priority order:

  1. The --model or -m command line flag. The format is the same as in the config file: provider_id/model_id.

  2. The model list in the MiMo Code config.

    mimocode.json
    {
      "$schema": "https://mimo.xiaomi.com//config.json",
      "model": "mimo/mimo-v2.5-pro"
    }

    The format here is provider/model.

  3. The last used model.

  4. The first model using an internal priority.