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:
- Registered and topped up an LMU AI account (Quick Start)
- An API key that starts with
sk- - 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
EOFNote
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 editAdd 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.2Save 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' -QIf 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 ❌ WrongLast updated:
Get an LMU AI key and start using Claude, Codex and more
Free sign-up, flexible plans, one key across Claude Code, Codex CLI, Cursor, VS Code, OpenCode, Cherry Studio and other AI tools.
Sign upChatbox
Connect Chatbox on every platform (Windows / macOS / Linux / iOS / Android / Web) to the LMU AI API — dual-protocol, no proxy needed in China.
Codex extension (VS Code / Cursor / Trae)
Connect to the LMU AI API in editors like VS Code, Cursor, and Trae via the Codex extension, using Claude / Codex over an OpenAI-compatible interface.