How to Self-Host n8n in 2026 (The Cheapest Automation Setup)

SBy the Stackferret engineer · human reviewer · Updated 2026-06-11

Self-hosting n8n is what makes it the cheapest serious automation tool: unlimited executions for the price of a small server, with full control over your data. This guide covers the ways to self-host, rough costs, and what to set up so it's reliable.

Why self-host n8n

n8n is open-source, so when you run it yourself there's no per-task or per-execution platform fee — you pay only for the server it runs on. That flips the economics: a workload that would cost hundreds a month on Zapier or Make can run for a few dollars on a self-hosted n8n. You also keep your data and credentials entirely on your own infrastructure, which matters for privacy-sensitive or regulated work. The trade is that you're responsible for running and updating it.

Ways to self-host n8n

OptionRough costBest forEffort
Docker on a cheap VPS~$5-10/moMost people — full controlLow-medium
1-click on a managed host~$7-15/moSkip server setupLow
Your own hardware / homelab~$0 (electricity)Tinkerers, max savingsMedium
n8n Cloud (not self-host)from $24/moNo-ops, hosted by n8nNone
Advertisement

The simplest reliable setup

For most people the sweet spot is Docker on a small cloud VPS. Spin up a $5-10/month instance, run n8n via Docker (or Docker Compose with a Postgres database for durable storage), put it behind a reverse proxy with HTTPS, and point a subdomain at it. Postgres rather than the default SQLite is the one upgrade worth making early — it keeps your executions and credentials safe as volume grows. That's it: unlimited executions for the cost of a coffee or two a month.

Don't skip these

A few things separate a hobby instance from a dependable one. Use HTTPS (a reverse proxy like Caddy or Nginx makes this trivial). Back up your database and your encryption key — losing the encryption key means losing access to stored credentials. Set up basic auth or SSO so your instance isn't open to the internet. And keep n8n updated; pulling a new Docker image periodically gets you fixes and new nodes.

Self-host vs n8n Cloud — when to pay

Self-hosting is cheapest and most private, but you own the uptime. n8n Cloud (from $24/month) removes all of that — n8n runs it, updates it, and keeps it online. The honest rule: self-host if you're comfortable running a small server and want the lowest cost or data control; use Cloud if your time is worth more than the savings or you can't have an automation go down because a server did. Many people start on Cloud and move to self-hosting once volume makes the math obvious.

FAQ

How much does it cost to self-host n8n?

Around $5-10/month for a small VPS, or essentially free on hardware you already own. There's no n8n licensing fee or per-execution charge when self-hosted — you pay only for the server.

Is self-hosting n8n hard?

Not very — a Docker install on a cheap VPS is the common path and is well-documented. The main responsibilities are HTTPS, backups (including your encryption key), and occasional updates.

Should I use SQLite or Postgres for self-hosted n8n?

Use Postgres for anything beyond light testing. The default SQLite works to start, but Postgres is more durable and scales better as your executions grow.

Self-host or n8n Cloud?

Self-host for the lowest cost and data control if you can run a small server; use n8n Cloud (from $24/month) if you'd rather n8n handle uptime, updates and hosting.

Stackferret verdict
Self-hosting is the whole reason n8n is the value king of automation — unlimited executions for the price of a small VPS is unbeatable if you're comfortable running one. The setup most people should use is boring and bulletproof: Docker on a $5-10/month server, Postgres instead of SQLite, HTTPS via a reverse proxy, and backups of your database and encryption key. Do that and you've got a serious automation platform for the cost of a coffee. If running a server isn't your thing, n8n Cloud is a fair trade — you pay for someone else to keep it alive.— the Stackferret engineer, human reviewer

Get started

Get n8n — free to self-host, unlimited runs

Related

n8n reviewBest free automation toolsCheapest Zapier alternativeZapier vs n8n

Rankings are never paid for. Last reviewed 2026-06-11.