Hermes Agent Configuration

Pay-as-you-go MiMo API and Token Plan both support Hermes Agent. 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 Subscription to obtain the exclusive Base URL and API Key

Install Hermes Agent

Hermes Agent supports Linux, macOS, WSL2 (Windows), and more. For more information, refer to the Hermes Agent Official Documentation.

  • Linux / macOS: No additional steps required.

  • Windows: Refer to Install WSL to install WSL2, then run the commands below in WSL2.

Installation Command:

curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

After installation, reload the terminal environment:

source ~/.bashrc   # or source ~/.zshrc

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

hermes --version

After installation, the following interface will appear:

图片

Configure a Predefined Provider

1. Select Quick Setup

Choose Quick setup for initial configuration.

If not configured initially, you can re-enter the setup wizard via hermes setup.

图片

2. Select Provider Xiaomi MiMo

图片

3. Fill in Configuration

Set API Key, Base URL, and default model as guided. The API Key and Base URL should be filled according to your credential type.

图片

Follow the remaining steps as needed.

If you previously configured Pay-as-you-go MiMo API and need to switch to Token Plan:

  • Method 1: Edit ~/.hermes/.env file, replace XIAOMI_API_KEY and XIAOMI_BASE_URL with Token Plan credentials (open a new terminal after configuration).
  • Method 2: Use a custom provider for configuration.

4. After configuration, the following interface will appear:

图片

Configure a Custom Provider

Configure Basic Settings

Replace BASE_URL and MIMO_API_KEY in the following methods with your actual credentials.

Method 1: Quick configuration via terminal commands

Here model.provider can only be set to custom. Custom names like xiaomi-coding will be invalid.

hermes config set model.provider custom
hermes config set model.base_url BASE_URL
hermes config set model.api_key MIMO_API_KEY
hermes config set model.default mimo-v2.5-pro

After configuration, you can view the settings in ~/.hermes/config.yaml.

Method 2: Manually edit configuration file

Edit ~/.hermes/config.yaml manually:

model:
  provider: custom
  base_url: BASE_URL
  api_key: MIMO_API_KEY
  default: mimo-v2.5-pro

Verify Configuration

After configuration, run the following command to verify:

hermes doctor

Use Hermes Agent

After configuration, run the following command to start:

hermes            # Classic CLI mode
hermes --tui      # Modern TUI mode
Update Time May 13, 2026
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.