Skip to content
Select language:English

Local AI with Ollama

Kept’s AI features (filling things in from photos and receipts, the assistant, semantic search) work with whichever provider a location’s owner connects in Settings → AI. Ollama runs the model on your own hardware, so nothing leaves it; Kept talks to it as an OpenAI-compatible provider.

  1. Ollama comes with compose.full.yaml, not compose.yaml: download it and set COMPOSE_FILE=compose.full.yaml in .env (Caddy and Ollama). Start Kept with the ollama profile, then pull a model into it with Ollama’s own command:

    Terminal window
    docker compose --profile ollama up -d
    docker compose exec ollama ollama pull <model>

    The models live in the ollama volume. Nothing is published on the host: only Kept, on Compose’s network, reaches Ollama. The image is about 3.8 GB (amd64) or 2.8 GB (arm64) before any model.

  2. Allow private addresses. http://ollama:11434 is on Compose’s own network, a private address, and Kept refuses those by default (outbound requests). An instance admin turns on Admin → Settings → Allow private addresses first; without it, adding the provider says “That address is on a private network”. The same goes for an Ollama (or LM Studio) elsewhere on your home network.

  3. In Settings → AI, add an OpenAI-compatible provider with the base URL http://ollama:11434/v1 and the model you pulled. Ollama ignores the API key, so any value does.