# Hermes / OpenClaw 模型 Provider 最小配置片段(可直接拷贝)
## Hermes(~/.hermes/config.yaml)
只保留:minimax(主力)+ mac(oMLX) 三模型(兜底)。
把下面两段直接替换到你的 `config.yaml` 对应位置即可:
“`yaml
custom_providers:
– name: mac
base_url: http://100.88.88.88:8000/v1
api_key: ${LOCAL_OMLX_API_KEY}
models:
– Qwen3.5-9B-OpusRsnDistV2-mlx-4bit
– Qwen3.5-9B-HauhauCS-Aggro-mlx-mxfp4
– qwen35-9b-mlx-turboquant-tq3
fallback_providers:
– provider: minimax-cn
model: MiniMax-M2.7
– provider: mac
model: Qwen3.5-9B-OpusRsnDistV2-mlx-4bit
– provider: mac
model: Qwen3.5-9B-HauhauCS-Aggro-mlx-mxfp4
– provider: mac
model: qwen35-9b-mlx-turboquant-tq3
“`
环境变量建议:
“`bash
export LOCAL_OMLX_API_KEY=’ollama-key’
export MINIMAX_CN_API_KEY=’sk-…’
“`
验证:
– oMLX:`GET http://100.88.88.88:8000/v1/models`(Bearer `${LOCAL_OMLX_API_KEY}`)能看到这 3 个 id。
## OpenClaw(~/.openclaw/openclaw.json)
只保留:minimax-portal(主力)+ mac(oMLX) 三模型(兜底)。
“`json
{
“auth”: {
“profiles”: {
“minimax-portal:default”: {
“provider”: “minimax-portal”,
“mode”: “oauth”
}
}
},
“models”: {
“providers”: {
“mac”: {
“baseUrl”: “http://100.88.88.88:8000/v1”,
“apiKey”: “${LOCAL_OMLX_API_KEY}”,
“api”: “openai-completions”,
“models”: [
{ “id”: “Qwen3.5-9B-OpusRsnDistV2-mlx-4bit”, “name”: “Opus (Top1)” },
{ “id”: “Qwen3.5-9B-HauhauCS-Aggro-mlx-mxfp4”, “name”: “Hauhau (Top2)” },
{ “id”: “qwen35-9b-mlx-turboquant-tq3”, “name”: “TurboQuant (Top3)” }
]
},
“minimax-portal”: {
“baseUrl”: “https://api.minimaxi.com/anthropic”,
“apiKey”: “minimax-oauth”,
“api”: “anthropic-messages”,
“models”: [
{ “id”: “MiniMax-M2.7”, “name”: “MiniMax-M2.7 (Portal)” }
]
}
}
},
“agents”: {
“defaults”: {
“model”: {
“primary”: “minimax-portal/MiniMax-M2.7”,
“fallbacks”: [
“minimax-portal/MiniMax-M2.7”,
“mac/Qwen3.5-9B-OpusRsnDistV2-mlx-4bit”,
“mac/Qwen3.5-9B-HauhauCS-Aggro-mlx-mxfp4”,
“mac/qwen35-9b-mlx-turboquant-tq3”
]
},
“models”: {
“minimax-portal/MiniMax-M2.7”: { “alias”: “m2.7” },
“mac/Qwen3.5-9B-OpusRsnDistV2-mlx-4bit”: { “alias”: “top1” },
“mac/Qwen3.5-9B-HauhauCS-Aggro-mlx-mxfp4”: { “alias”: “top2” },
“mac/qwen35-9b-mlx-turboquant-tq3”: { “alias”: “top3” }
}
}
}
}
“`
使用:
– 切换:`/model m2.7` 或 `/model top1` `/model top2` `/model top3`