How to self-host n8n on a VPS (Hostinger and alternatives)

By Tried AI Tools · Published · Updated

Short answer

Self-hosting n8n means renting a small virtual server (VPS) and running n8n's free Community Edition on it with Docker. A server with 2 vCPUs and 4 GB of RAM covers most personal and small-team use: Hostinger's KVM 2 is $8.79 a month on a 24-month term (renewing at $14.99), Hetzner's CX23 is about €5.49 a month before VAT, and DigitalOcean's 4 GB Droplet is $24. That's cheaper than n8n Cloud from $20 a month billed yearly, but you handle updates, backups and security yourself.

n8n is a workflow automation tool, similar to Zapier or Make, with strong AI agent features. Unlike those two, you can run it on your own server for free. This guide covers what that takes, what a server costs and how to set one up. It's based on n8n's documentation and each host's own pages, checked on the date above; we haven't set up and timed these servers ourselves. For how n8n compares with Zapier and Make, see n8n vs Make vs Zapier for AI automations.

What you need

What a server costs

Host Plan that fits Price What's included
Hostinger KVM 2 (2 vCPU, 8 GB RAM, 100 GB NVMe) $8.79/month on a 24-month term, renews at $14.99 n8n template that installs it for you; free weekly backups
Hostinger KVM 1 (1 vCPU, 4 GB RAM, 50 GB NVMe) $6.49/month on a 24-month term, renews at $11.99 Same, for light use
Hetzner CX23 (2 vCPU, 4 GB RAM, 40 GB) About €5.49/month before VAT Servers in Europe, the US and Singapore
DigitalOcean Basic Droplet (2 vCPU, 4 GB RAM) $24/month n8n 1-Click app in its Marketplace
n8n Cloud (no server) Starter $20/month billed yearly, $24 monthly 2,500 executions a month, hosted and updated by n8n

Sources: Hostinger VPS hosting, Hostinger's n8n VPS requirements guide and n8n page, Hetzner cost-optimized cloud, DigitalOcean Droplet pricing and its n8n 1-Click app, n8n pricing. Hostinger's prices differ by country and Hetzner's pages show more than one figure for small servers, so check the price at checkout. DigitalOcean's cheaper 2 GB Droplets ($12 and $18 a month) can run n8n without the Assistant.

How to set it up

  1. Pick a server and an operating system. On Hostinger, you can choose the n8n template when you set up the VPS and skip to step 4. On DigitalOcean, the n8n 1-Click app does much the same. Otherwise, pick a recent Ubuntu.
  2. Point your domain at the server. Add a DNS A record for your subdomain with the server's IP address.
  3. Install n8n with Docker and a reverse proxy. n8n's step-by-step guides for Hetzner and DigitalOcean use Docker Compose with Caddy, which gets and renews the HTTPS certificate for you. Its general Docker Compose guide uses Traefik instead. n8n's production requirements say to serve it over HTTPS.
  4. Create the owner account the first time you open n8n in your browser, and keep that login safe; anyone with it can run workflows on your server.
  5. Set up backups and updates. Turn on your host's backups or snapshots, and update n8n regularly by pulling the new Docker image. Updates include security fixes, so don't leave a public server on an old version.

Self-host or n8n Cloud?

Self-hosted Community Edition n8n Cloud
Software cost Free From $20/month billed yearly
Server cost About €5 to $24 a month Included
Executions No limit from n8n; your server sets the limit 2,500 a month on Starter, 10,000 on Pro
Updates, backups, security You n8n
Where your data lives Your server n8n's servers

The Community Edition is free under n8n's Sustainable Use License, which allows internal business and personal use but not reselling n8n itself as a hosted service. n8n's paid Business plan is also self-hosted, but it costs far more than the server and is aimed at larger companies.

Who should pick which

Want to run AI models on the same server? Small VPS plans have no graphics card, so connect n8n to a hosted model API instead. For other automation tools, see our AI tool finder.

Frequently asked questions

Is self-hosted n8n free?

The software is. n8n's Community Edition is free under its Sustainable Use License, which allows personal and internal business use but not reselling n8n as a service. You pay for the server, a domain if you want one, and any AI model or app accounts your workflows use.

How much RAM does n8n need?

n8n's docs size plain n8n at 320 MB to 2 GB of memory, depending on your workflows, and ask for at least 4 GB of RAM and 2 vCPUs for their Docker Compose setup with the n8n Assistant. Hostinger's guide calls 4 to 8 GB the sweet spot. Large files in workflows can use a lot more.

Is Hostinger good for n8n?

It's the easiest of the VPS options here, because Hostinger offers an n8n template that installs it for you and includes free weekly backups. Its low prices are for a 24-month term and rise at renewal, so compare the renewal price with Hetzner and DigitalOcean.

Should I self-host n8n or use n8n Cloud?

Self-host if you're comfortable with a server and want to keep data on your own machine or run many workflows cheaply. Pick n8n Cloud, from $20 a month billed yearly for 2,500 executions, if you'd rather not maintain anything.