I have the following configuration:
{
"agents": {
"defaults": {
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
},
"compaction": {
"mode": "safeguard"
},
"workspace": "/home/node/clawd",
"model": {
"primary": "ollama/mistral-large-3:675b-cloud"
}
}
},
"models": {
"providers": {
"ollama": {
"baseUrl": "http://redacted.com:8081/api",
"apiKey": "REDACTED",
"api": "ollama", // I have also tried openai and openai-completions here
"models": [
{ "id": "devstral-2:123b-cloud", "name": "Devstral 2", "reasoning": true },
{ "id": "mistral-large-3:675b-cloud", "name": "Mistral Large 3", "reasoning": true },
{ "id": "deepseek-v3.2:cloud", "name": "DeepSeek 3.2", "reasoning": true }
]
}
}
}
}
If I use "ollama" for the "api" configuration parameter, I get an error on startup. If I use openai-completions, I get a 404 error when I send a message to my bot. If I use openai, I get no error or log on the ollama side, and no response from the bot. It then locks me out of my session
clawdbot-gateway-1 | 2026-01-26T16:07:56.871Z [diagnostic] lane task error: lane=main durationMs=10543 error="Error: session file locked (timeout 10000ms): pid=7 /home/node/.clawdbot/agents/main/sessions/a149e1b3-d694-455b-8390-b77061161c16.jsonl.lock"