n8n is a low-code workflow tool: you build automations as connected nodes, such as a chat trigger, a language model, and an action that does something with the reply. Running that model in the cloud would send your workflow’s text away, but n8n’s own Self-hosted AI Starter Kit bundles n8n together with Ollama, Qdrant, and PostgreSQL in one Docker Compose template, so the language model in the workflow can be a model on your own computer. The kit’s README says it is designed to swiftly initialize a local AI and low-code development environment, and that to keep everything local you should use the Ollama node for your language model.
Start the starter kit
Clone the kit, copy the example environment file, and start it with the profile that matches your hardware. The commands below are the README’s own, for a machine without a GPU; NVIDIA GPU users run docker compose --profile gpu-nvidia up and AMD GPU users on Linux run docker compose --profile gpu-amd up instead.
git clone https://github.com/n8n-io/self-hosted-ai-starter-kit.git
cd self-hosted-ai-starter-kit
cp .env.example .env
docker compose --profile cpu up
The README says to update the secrets and passwords inside .env after copying it. On a Mac with Apple Silicon, the GPU cannot be exposed to Docker, so the README gives a different route: run Ollama on the Mac itself, set OLLAMA_HOST to host.docker.internal:11434 in .env, start with plain docker compose up, and change the “Local Ollama service” credential’s base URL in n8n to http://host.docker.internal:11434/.
Try it: run the demo workflow against your local model
Open http://localhost:5678/ in your browser to set up n8n — the README says you only have to do this once — then open the included demo workflow and click the Chat button at the bottom of the canvas. The README warns that on a first run, Ollama may still be downloading Llama3.2 in the background, and that you can check progress in the Docker console logs. Type the fictional sentence below into the chat and ask for a one-sentence summary.
| Check | What you should see | What it means |
|---|---|---|
| n8n opens | http://localhost:5678/ shows the n8n setup page |
The starter kit is running |
| Demo workflow opens | The included demo workflow loads on the canvas | The kit’s preconfigured workflow is ready |
| Model is ready | The Docker console logs show Llama3.2 has finished downloading | Ollama has a local model for the workflow to use |
| Reply | Asking “Summarise this in one sentence: The lighthouse keeper checked the lamp at noon.” returns a one-sentence summary | The workflow’s Ollama node answered from your local model |
Expected result. We checked the n8n Self-hosted AI Starter Kit README, which gives the clone, .env, and docker compose commands, the localhost:5678 address, the demo workflow, and the Llama3.2 download note. We did not clone the kit, start n8n, or run the demo workflow on this machine, and the lighthouse sentence above is fictional.
Limits
The starter kit is a starting point, not a finished system: the README says it is not fully optimized for production environments and combines components that work well together for proof-of-concept projects. The workflow only stays local while its language model is the Ollama node; swapping in a cloud provider’s node would send the workflow’s text to that provider. The first run is slow because the model downloads in the background, and a computer without a GPU runs the model on the CPU. We did not test any of this ourselves.
Sources
- n8n Self-hosted AI Starter Kit README — clone and .env commands, cpu/gpu-nvidia/gpu-amd profiles, localhost:5678, the demo workflow and Chat button, Llama3.2 downloading in the background, Mac host.docker.internal:11434, and use the Ollama node to keep everything local
- Ollama hardware support — the Docker GPU instructions the starter kit README points to for NVIDIA GPUs with Docker
