Steps to build an n8n self-hosted AI environment
1. Preparatory work
First make sure that your system has Docker and the Docker Compose tool installed, which is required to run the suite.
2. Cloning of warehouses
Execute the following command to get the project file:
git clone https://github.com/n8n-io/self-hosted-ai-starter-kit.git
cd self-hosted-ai-starter-kit
3. Activation of services
Select different boot commands depending on the hardware configuration:
- Nvidia GPU users::
docker compose --profile gpu-nvidia up - Mac/Apple Silicon usersOptional: Full CPU mode (
--profile cpu) or run Ollama alone - other users: Using the CPU mode (
--profile cpu)
4. Access to the n8n interface
After the service is started, it is accessed through a browser:http://localhost:5678Perform account setup and workflow management.
This answer comes from the articlen8n Self-hosted AI Starter Kit: an open source template for quickly building a local AI environmentThe































