> ## Documentation Index
> Fetch the complete documentation index at: https://docs.presenton.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Use a local model with Ollama

> Connect Docker-based Presenton to an Ollama model running on your machine.

This setup keeps text-generation requests on your machine. Image or search requests remain external unless you also choose local providers or disable those features.

## 1. Install and start Ollama

Install Ollama for your operating system, then pull a model:

```bash theme={null}
ollama pull llama3.2:3b
```

Confirm the service responds:

```bash theme={null}
ollama list
```

## 2. Start Presenton with the Ollama settings

```bash theme={null}
docker run --name presenton \
  --publish 5001:80 \
  --add-host host.docker.internal:host-gateway \
  --volume "./app_data:/app_data" \
  --env LLM=ollama \
  --env OLLAMA_URL=http://host.docker.internal:11434 \
  --env OLLAMA_MODEL=llama3.2:3b \
  --env DISABLE_IMAGE_GENERATION=true \
  --env MEM0_ENABLED=false \
  ghcr.io/presenton/presenton:v0.9.0-beta
```

On Docker Desktop, `host.docker.internal` normally works without the extra host mapping. Keeping it in the command is useful for compatible Linux Docker setups.

## 3. Verify the connection

Open [http://localhost:5001](http://localhost:5001), go to text-provider settings, choose Ollama, and use the model check. Confirm `llama3.2:3b` appears as available.

## 4. Generate a small test deck

Create a three- or four-slide presentation with a straightforward prompt. Smaller local models may need simpler instructions and may be less reliable with complex structured layouts.

## 5. Add local capabilities gradually

* Enable Mem0 after configuring a compatible local memory model.
* Use ComfyUI for local image generation.
* Use SearXNG for self-hosted web search.
* Give Docker GPU access when the model runtime can use it.

<Warning>
  `localhost` inside the Presenton container points to the container itself. Use a host gateway or container-network hostname that Presenton can reach.
</Warning>
