How to Install the n8n Self-Hosted AI Starter Kit
An open-source Docker Compose template that sets up a complete local AI environment in one go: n8n, Ollama, Qdrant and PostgreSQL for building self-hosted AI workflows.
What is the n8n Self-Hosted AI Starter Kit?
The n8n Self-Hosted AI Starter Kit is an open-source Docker Compose template that sets up a complete local AI and low-code environment in one go. It is curated by n8n and published on GitHub as n8n-io/self-hosted-ai-starter-kit. It bundles self-hosted n8n with a set of compatible AI tools: Ollama for running language models locally, Qdrant as a vector store, and PostgreSQL as the database.
Instead of installing each piece separately, you start one template and get a working environment for building self-hosted AI workflows.
What can you do with it?
- Set up a local AI environment quickly, with the tools already chosen for you
- Build AI agents, for example for scheduling or summarising documents
- Run language models locally with Ollama, keeping data on your own machine
- Analyse private documents without sending them to a cloud service
- Use n8n's 400-plus integrations in automated workflows
How to install the starter kit
You need Docker installed first. Then clone the repository. Open a terminal and run:
git clone https://github.com/n8n-io/self-hosted-ai-starter-kit.gitMove into the folder and copy the example environment file:
cd self-hosted-ai-starter-kit
cp .env.example .envOpen the .env file and update the secrets and passwords inside it. Then start the stack with Docker Compose:
docker compose upIf you have an Nvidia GPU and have set it up with Docker, use the GPU profile instead:
docker compose --profile gpu-nvidia upWait for the services to start, then open n8n in your browser and begin building.
First steps after installing
Start with a small workflow, such as an agent that summarises a PDF or a bot that answers questions from your own documents. Because everything runs locally, your files stay on your machine. Check the Ollama service first if a model does not load: it needs to download the model the first time you use it.
Change the default passwords in the .env file before exposing anything outside your own network. The template is built for local use, so treat the default secrets as placeholders, not as settings to keep.
Frequently asked questions
Is the starter kit free? Yes. It is an open-source project on GitHub, and you can download and use it free of charge. Note that the language models run locally, so there are no per-message API charges, but you need a machine that can run them.
Is it hard to install? No, if you already use Docker. Clone, copy the environment file, and start the stack.
Do I need a GPU? No. The standard profile runs without one; the GPU profile is only for faster local model inference.
Comments (0)