Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>MiMo Chat AiNew to Visual Studio Code? Get it now.
MiMo Chat Ai

MiMo Chat Ai

Ali Mohammadabadi

|
119 installs
| (2) | Free
A VS Code chat panel for MiMo Code with in-app login, RTL, and Persian font support.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MiMo Chat AI for VS Code

MiMo Chat AI adds a MiMo Code chat panel to VS Code. It uses the official MiMo CLI under the hood, supports browser-based Xiaomi MiMo login, manual API key login, manual Token Plan login, session continuation, and Persian/Arabic right-to-left rendering inside the chat UI.

Features

  • MiMo chat panel in the VS Code Activity Bar.
  • Browser login through Xiaomi MiMo Platform.
  • Manual Xiaomi MiMo API key login.
  • Manual Token Plan login for users who previously purchased a Xiaomi MiMo account or token-based plan.
  • Chat requests powered by mimo run.
  • Work mode selection for MiMo build, plan, and compose primary agents.
  • CLI-like streaming output by default for faster perceived responses.
  • MiMo-managed title support for new sessions based on the first message.
  • Session continuation with preserved previous MiMo sessions and a quick way to start fresh.
  • Session switcher for selecting and continuing previous MiMo sessions.
  • Changed Files panel after MiMo edits, with click-to-open before/after diffs inside VS Code.
  • Quick slash commands such as /init, /models, /thinking, /voice, /connect, /new, and /login.
  • Command to open a full MiMo terminal when MiMo needs a real TTY.
  • Automatic RTL detection and Vazirmatn font support for Persian/Arabic text.

Author

Created and maintained by Ali Mohammadabadi.

Requirements

Install Node.js and the MiMo CLI before using the extension.

npm install -g @mimo-ai/cli
mimo --version

If mimo --version prints a version number, the CLI is ready.

Installation

If you have a .vsix package:

  1. Open VS Code.
  2. Press Ctrl+Shift+P.
  3. Run Extensions: Install from VSIX....
  4. Select the extension package, for example mimo-chat-ai-0.1.2.vsix.
  5. Reload VS Code if prompted.

For local development:

  1. Open this folder in VS Code.
  2. Run the syntax check:
npm run lint
  1. Press F5 to launch an Extension Development Host.

PhpStorm / JetBrains Installation

The VS Code .vsix package cannot be installed directly in PhpStorm. Use the JetBrains plugin ZIP from:

jetbrains\build\distributions\mimo-chat-ai-jetbrains-0.1.13.zip

This JetBrains build declares since-build=251, so it supports PhpStorm 2025.1 and newer, including PhpStorm 2026.x. It has no until-build limit.

To install it:

  1. Open PhpStorm.
  2. Go to Settings > Plugins.
  3. Click the gear icon.
  4. Choose Install Plugin from Disk....
  5. Select jetbrains\build\distributions\mimo-chat-ai-jetbrains-0.1.13.zip.
  6. Restart PhpStorm.

After restart, open View > Tool Windows > MiMo.

Getting Started

After installing the extension, click the MiMo icon in the Activity Bar and open the Chat view. If you are not signed in yet, the login panel appears first. After authentication, the message composer and quick commands become available.

To send a message:

  1. Type your request in the composer at the bottom of the panel.
  2. Press Enter to send.
  3. Use Shift+Enter to insert a new line inside the message.

MiMo runs in the current VS Code workspace. If no workspace is open, the extension falls back to your home directory.

The first normal message in a fresh chat session is used by MiMo to create the session title. After that, follow-up messages continue the same MiMo session by its session id until you start a new one.

Work Modes

MiMo Code has three built-in work modes, also called primary agents in the official MiMo documentation. The extension exposes them in the composer next to the model selector and sends the selected mode to MiMo with mimo run --agent.

Build

build is the default MiMo primary agent. It has full tool access and is intended for normal development work where MiMo may need to read files, edit code, apply patches, run commands, and complete implementation tasks.

Choose Build when you want MiMo to actively work on the project and make changes.

Plan

plan is a restricted mode for analysis and planning. According to MiMo documentation, write, edit, patch, and shell command execution are disabled by default in this mode, except editing plan files under .mimocode/plans/*.md.

Choose Plan when you want MiMo to inspect the codebase, reason about a task, suggest an approach, or prepare an implementation plan without modifying the project.

Compose

compose is a workflow-aware primary agent. It orchestrates work through MiMo's built-in skills instead of relying on a single ad-hoc procedure. The official docs describe skills for TDD, debugging, verification, brainstorming, planning, execution, parallel agents, review, feedback, worktrees, merging, subagent-driven development, and creating new skills.

Choose Compose when you want a structured workflow, such as starting from a spec, creating a plan, executing with verification, and reviewing the result before completion.

Login Methods

The extension supports three login methods. Credentials are saved in:

~/.local/share/mimocode/auth.json

1. Browser Login

This is the recommended login method for most users.

  1. Open the MiMo chat panel.
  2. Click Login with MiMo.
  3. Your browser opens the official Xiaomi MiMo Platform authorization page.
  4. Sign in to your Xiaomi MiMo account and approve access.
  5. After the local callback returns, the extension saves the credential and unlocks the chat.

If the browser login is completed but the panel is still locked, click I have approved login to re-check the authentication state.

2. API Key Login

Use this method if you already have a Xiaomi MiMo API key.

  1. Open the MiMo chat panel.
  2. Click Use API key.
  3. Paste your key into the Xiaomi MiMo API key field.
  4. Click Save API key.

The extension saves the key to auth.json and marks the chat as authenticated.

3. Token Plan Login

Use this method if your Xiaomi MiMo account or purchased plan uses token-plan access.

  1. Open the MiMo chat panel.
  2. Click Use Token Plan.
  3. Paste your token into the Xiaomi MiMo token plan field.
  4. Click Save Token Plan.

The extension stores the token in a MiMo CLI-compatible format. It also recognizes older saved auth types such as token, token_plan, token-plan, token plan, and plan, then migrates them to the compatible structure during auth checks.

Chat Controls

The top bar contains a session selector and these actions:

  • Switch session: select a previous MiMo session and continue it by session id.
  • Login: starts browser login.
  • New: clears the current panel state and starts a fresh MiMo session. Previous MiMo sessions are preserved, and the next message is used by MiMo to title the new session.
  • Terminal: opens a full MiMo terminal in VS Code.

When MiMo changes files, a Changed Files panel appears above the composer. Click any changed file to open a VS Code diff between the pre-request snapshot and the current file contents.

Slash Commands

You can type these commands directly in the chat or use the quick command buttons:

  • /init: initialize MiMo for the current project.
  • /models: list available models and select one.
  • /thinking: control MiMo thinking mode, depending on CLI support.
  • /voice: use MiMo voice features, depending on CLI support.
  • /connect: connect providers or related MiMo CLI capabilities.
  • /login: restart the login flow.
  • /help: show MiMo help.
  • /new: start a fresh MiMo session from scratch while preserving previous MiMo sessions.
  • /clear: clear chat messages in the panel without deleting the current MiMo session.
  • /exit: reset the current chat session.

These commands are also available from the Command Palette:

  • MiMo Chat: Open Chat
  • MiMo Chat: Open Full MiMo Terminal
  • MiMo Chat: Login
  • MiMo Chat: Initialize Project
  • MiMo Chat: Models
  • MiMo Chat: New Session
  • MiMo Chat: Send Slash Command

Settings

Search for MiMo Chat in VS Code Settings to configure the extension.

Setting Default Description
mimoChat.executablePath mimo Path to the MiMo CLI executable. Use a full path if mimo is not available in PATH.
mimoChat.autoStart false Automatically prepare the chat when the view opens after authentication.
mimoChat.loginUrl https://platform.xiaomimimo.com/ Fallback login URL.
mimoChat.model empty Optional default model in provider/model format. Leave empty to use the CLI default.
mimoChat.mode build MiMo work mode / primary agent: build, plan, or compose.
mimoChat.runFormat default Output format for mimo run. Use default for CLI-like streaming, or json for structured event parsing.
mimoChat.apiBaseUrl https://api.xiaomimimo.com/v1 API base URL saved with manual API key or Token Plan login.
mimoChat.showToolEvents false Show MiMo tool and build events in the chat.
mimoChat.showChangedFiles true Show files changed by each MiMo request and open before/after diffs from the chat view.
mimoChat.persianFont true Use Vazirmatn for Persian/Arabic text in the chat view.
mimoChat.defaultDirection auto Chat text direction: auto, rtl, or ltr.

Troubleshooting

mimo Is Not Recognized

MiMo CLI is not installed or is not available in PATH. Install it again:

npm install -g @mimo-ai/cli

If the problem continues, set the full executable path in mimoChat.executablePath.

Browser Login Completed but the Panel Is Still Locked

Click I have approved login in the login panel. If it still does not unlock, run MiMo Chat: Login from the Command Palette and try again.

Token Plan Was Saved but Chat Does Not Work

Make sure the token was pasted completely and without extra spaces. The extension stores Token Plan credentials in a MiMo CLI-compatible format, but the token itself must be valid for your Xiaomi MiMo account.

Models Are Not Listed

The /models command reads the output of mimo models. Test it directly in a terminal:

mimo models

If the CLI does not return models, fix the CLI authentication or account access first.

Development and Packaging

Run the syntax check:

npm run lint

To test manually, open this folder in VS Code and press F5.

To package the extension:

npm install -g @vscode/vsce
vsce package
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft