Local semantic memory search for OpenClaw using Ollama — free, private, no API key required.
Download from https://ollama.ai, then pull the embedding model:
ollama pull nomic-embed-text
Verify Ollama is running:
curl http://127.0.0.1:11434/api/tags
Edit ~/.openclaw/openclaw.json and add under agents.defaults.memorySearch:
{
"agents": {
"defaults": {
"memorySearch": {
"provider": "ollama",
"model": "nomic-embed-text:latest",
"remote": {
"baseUrl": "http://127.0.0.1:11434"
}
}
}
}
}
openclaw gateway restart
provider: "ollama", not "openai". OpenClaw doesn't auto-detect Ollama.http://127.0.0.1:11434 (no /v1 suffix, no trailing slash).references/config-reference.md for advanced tuning (hybrid search, MMR, temporal decay, extra paths).references/troubleshooting.md for common errors and fixes.共 1 个版本