Documentation

CodeBuddy Configuration

Pay-as-you-go MiMo API and Token Plan both support CodeBuddy. Refer to this guide for configuration and usage.

Prerequisites

Obtain Credentials

Supports two usage methods, but the corresponding credential acquisition methods are different:

Usage Method Description Acquisition Method (BASE_URL and API Key below are examples)
Pay-as-you-go MiMo API Charged based on actual usage, suitable for light use
  • BASE_URL
    • OpenAI Compatibility Protocol: https://api.xiaomimimo.com/v1
  • API Key
    • Format: sk-xxxxx

Go to API Keys to create an API Key
Token Plan Fixed subscription fee, with limited calls based on the package
  • BASE_URL
    • OpenAI Compatibility Protocol: https://token-plan-cn.xiaomimimo.com/v1
  • API Key
    • Format: tp-xxxxx

After successful subscription, go to Token Plan to obtain the exclusive Base URL and API Key

Use CodeBuddy IDE

Install CodeBuddy

Visit the CodeBuddy website to download and install the IDE, which supports major operating systems (Windows, macOS).

Configure MiMo Model

1. Configure Custom Model

Create or modify the configuration file models.json to add custom models. Example configuration:

  • macOS: ~/.codebuddy/models.json

  • Windows: User Directory\.codebuddy\models.json

BASE_URL and MIMO_API_KEY should be modified according to your credential acquisition method.

{
  "models": [
    {
      "id": "mimo-v2.5-pro",
      "name": "mimo-v2.5-pro",
      "vendor": "MiMo",
      "apiKey": "MIMO_API_KEY",
      "url": "BASE_URL/chat/completions",
      "supportsToolCall": true,
      "supportsImages": false
    },
    {
      "id": "mimo-v2.5",
      "name": "mimo-v2.5",
      "vendor": "MiMo",
      "apiKey": "MIMO_API_KEY",
      "url": "BASE_URL/chat/completions",
      "supportsToolCall": true,
      "supportsImages": true
    }
  ]
}

2. View and Switch Models

After configuration, turn off Auto mode and open the model list to see the configured MiMo models.

图片

Use MiMo Model

Select the configured model to start conversations, coding, and other operations.

图片

Use CodeBuddy IDE Plugin

Install Plugin

Search for Tencent Cloud CodeBuddy in the VS Code extension marketplace and install the plugin.

图片

Configure MiMo Model

Refer to the models.json configuration file in the "Use CodeBuddy IDE" section. If previously configured, it will be automatically loaded.

图片

Use CodeBuddy CLI

Install CodeBuddy CLI

Install via npm (requires Node.js 18.20 or newer):

npm install -g @tencent-ai/codebuddy-code

Verify installation (if a version number is displayed, the installation was successful):

codebuddy --version

Configure MiMo Model

The BASE_URL and API Key for Pay-as-you-go MiMo API and Token Plan are different. Please configure accordingly.

Refer to the models.json configuration file in the "Use CodeBuddy IDE" section. If previously configured, it will be automatically loaded.

Use CodeBuddy CLI

After configuration, navigate to your project directory and run:

codebuddy

After startup, use /model to view or switch models, and /status to check the current model.

FAQ

Model not appearing in the dropdown after configuration?

  • Check if the JSON syntax is correct

  • If the availableModels field is configured, ensure the model id is included

Update Time June 12, 2026

Copyright©2026 Xiaomi. All Rights Reserved | Cookie Policy | Cookie Preferences

We use cookies and similar technologies of our own to ensure the proper functioning of the website, customize content according to user preferences and analyze users' interactions on the website, as well as their browsing habits. You can find more information in our Cookie Policy. Select an option or go to Cookie Settings to manage your preferences. Learn More.