OpenClaw
OpenClaw integration
Integrate OpenClaw with your locally deployed language models using Loc.ai.
What is OpenClaw?
OpenClaw (formerly Clawdbot / Moltbot) is an open-source personal AI assistant that runs on your own computer. It connects to messaging apps and can automate tasks using local or configured models.
Since models served via Loc.ai are OpenAI-API compliant, point OpenClaw at your served model base URL.
Prerequisites
- A language model served via Loc.ai — see Serving a model
- OpenClaw installed — see OpenClaw documentation
Configuration
Edit your OpenClaw JSON configuration:
{
"models": {
"providers": {
"local-llamacpp": {
"title": "Loc.ai Served Model",
"provider": "openai",
"model": "your-model-name",
"apiBase": "http://localhost:8100/v1",
"apiKey": "not-needed"
}
}
}
}
Replace localhost:8100 with the host and port you chose when serving the model. Use the device IP if the model runs on another machine.
Usage
Once configured, OpenClaw routes requests to your locally served model through Loc.ai for low latency, privacy, and no cloud inference costs.
Serve models on different ports and add multiple providers in OpenClaw.