客户端接入
OpenClaw 接入
OpenClaw 通过 OpenAI-compatible Chat Completions 或 Responses 接入。
export LUMOSWITCH_API_KEY="your-lumoswitch-access-key"在 OpenClaw 配置中加入:
{
"models": {
"providers": {
"lumoswitch": {
"baseUrl": "https://api.lumoswitch.com/v1",
"apiKey": "${LUMOSWITCH_API_KEY}",
"api": "openai-completions",
"models": [
{
"id": "your-client-facing-model-name",
"name": "Lumoswitch model"
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "lumoswitch/your-client-facing-model-name"
}
}
}
}如改用 Responses,将 api 设为 openai-responses,Base URL 仍使用 Lumoswitch /v1 地址。