LMU AI Docs
Tools

Hermes Agent

Connect Hermes Agent to LMU AI — edit ~/.hermes/config.yaml with a base_url that includes /v1 and your sk- key to switch to any available model.

Prerequisites

Before you start, make sure you have:

  1. Registered and topped up an LMU AI account (Quick Start)
  2. An API key that starts with sk-
  3. Installed Hermes Agent (GitHub)

Configure LMU AI models

Method 1 — Create the config with one command

Open a terminal and run the following command:

mkdir -p ~/.hermes
cat > ~/.hermes/config.yaml << 'EOF'
providers:
  lumai:
    name: lumai
    base_url: https://api.lmuai.com/v1
    api_key: YOUR_API_KEY
    model: glm-5.2

model:
  provider: lumai
  model: glm-5.2
EOF

Note

Replace YOUR_API_KEY with the actual sk- key you created in the LMU AI console.

Method 2 — Edit the config file manually

If ~/.hermes/config.yaml already exists, open it in an editor:

hermes config edit

Add or modify the following in the file:

providers:
  lumai:
    name: lumai
    base_url: https://api.lmuai.com/v1
    api_key: sk-your-actual-key
    model: glm-5.2

model:
  provider: lumai
  model: glm-5.2

Save and exit.

Available models

In the model field, you can substitute any model name LMU AI supports. For the full model list, see the Model Gallery.

Verify the config

Run the following command to test whether the config works:

hermes chat -q 'Hello, please reply in one sentence' -Q

If you get a reply from the AI, the config is working.

Common issues

401 Unauthorized error

The API key is wrong or has expired. Check the key's status in the LMU AI console.

404 Not Found error

The base_url is wrong. Hermes uses the OpenAI protocol, so the address must include the /v1 suffix:

https://api.lmuai.com/v1    ✅ Correct
https://api.lmuai.com       ❌ Wrong

Last updated:

On this page