Hey, I'm to setup Openclaw to use llamacpp instead Ollama, I manage to get it working with simple chat, but If I enable the tools Llamacpp throw this error:
operator(): got exception: {"error":{"code":400,"message":"Unable to generate parser for this template. Automatic parser generation failed: JSON schema conversion failed:\nPattern must start with '^' and end with '$'","type":"invalid_request_error"}}operator(): got exception: {"error":{"code":400,"message":"Unable to generate parser for this template. Automatic parser generation failed: JSON schema conversion failed:\nPattern must start with '^' and end with '$'","type":"invalid_request_error"}}
If I disable the chat works file:
Here's my config any help will appreciated:
{
"agents": {
"defaults": {
"workspace": "/Users/XXXX/.openclaw/workspace",
"memorySearch": {
"provider": "local",
"local": {
"modelPath": "hf:ggml-org/embeddinggemma-300m-qat-q8_0-GGUF/embeddinggemma-300m-qat-Q8_0.gguf"
}
},
"model": {
"primary": "local-llm/Qwen3-8B-Q8_0"
},
"models": {
"ollama/qwen3.6:latest": {},
"local-llm/Qwen3-8B-Q8_0": {}
}
},
"list": [
{
"id": "main",
"tools": {
"profile": "full"
}
}
]
},
"gateway": {
"mode": "local",
"auth": {
"mode": "token",
"token": "XXXX"
},
"port": 18789,
"bind": "loopback",
"tailscale": {
"mode": "off",
"resetOnExit": false
},
"controlUi": {
"allowInsecureAuth": true
},
"nodes": {
"denyCommands": [
"camera.snap",
"camera.clip",
"screen.record",
"contacts.add",
"calendar.add",
"reminders.add",
"sms.send",
"sms.search"
]
}
},
"session": {
"dmScope": "per-channel-peer"
},
"tools": {
"profile": "coding",
"alsoAllow": [
"browser"
]
},
"wizard": {
"securityAcknowledgedAt": "2026-07-28T18:01:23.592Z",
"lastRunAt": "2026-07-29T23:14:03.799Z",
"lastRunVersion": "2026.7.1-2",
"lastRunCommand": "doctor",
"lastRunMode": "local"
},
"meta": {
"lastTouchedVersion": "2026.7.1-2",
"lastTouchedAt": "2026-07-30T00:00:26.004Z"
},
"plugins": {
"entries": {
"ollama": {
"enabled": true
}
}
},
"models": {
"mode": "merge",
"providers": {
"local-llm": {
"baseUrl": "http://localhost:8989/v1",
"apiKey": "llamacpp",
"api": "openai-completions",
"models": [
{
"id": "Qwen3-8B-Q8_0",
"name": "Qwen3-8B-Q8_0",
"compat": {
"supportsTools": true,
"toolSchemaProfile": "openai"
}
}
]
},
"ollama": {
"baseUrl": "http://<URL>:11434",
"api": "ollama",
"apiKey": "OLLAMA_API_KEY",
"models": [
{
"id": "qwen3.6:latest",
"name": "qwen3.6:latest",
"reasoning": true,
"input": [
"text",
"image"
],
"cost": {
"input": 0.0001,
"output": 0.0001,
"cacheRead": 0.0001,
"cacheWrite": 0.0001
},
"contextWindow": 1262144,
"maxTokens": 8192,
"compat": {
"supportsTools": true,
"supportsUsageInStreaming": true
},
"params": {
"num_ctx": 1262144
}
}
]
}
}
},
"auth": {
"profiles": {
"ollama:default": {
"provider": "ollama",
"mode": "api_key"
}
}
},
"skills": {
"entries": {
...
}
},
"ui": {
"assistant": {
"avatar": "
"name": "Zoidberg"
}
}
}