How to Self-Host n8n on a VPS: Cut Your Automation Costs

By TechlyAgent Team | Reading time: 10 minutes
Quick answer: To self host n8n VPS means you install the n8n automation tool on your own rented server instead of paying a monthly cloud fee. You get the same visual workflow builder, full control of your data, and lower long-term costs — but you handle updates, backups, and security yourself.

Monthly software bills add up fast. If you run many automations, the cloud version of n8n can start to feel expensive. There is a cheaper way: when you self host n8n VPS, you rent a small server for a few dollars a month and run n8n on it yourself. This guide shows you exactly how to do it, step by step, with no confusing jargon.

n8n is a workflow automation tool. It lets you connect apps together with a visual builder — you drag boxes called "nodes" onto a canvas and link them. For example, one workflow can take a new website order, add it to a spreadsheet, and send you a message. A VPS is a Virtual Private Server — basically a small computer you rent online that stays on all day and night.

What Does It Mean to Self Host n8n VPS?

Normally you use n8n through their website — you log in, and n8n runs on their computers. That is the cloud version, and you pay a monthly fee for it. When you self host n8n VPS, you install n8n on a server that you rent and control.

Think of it like this: the cloud version is renting a ready-made office. Self-hosting is renting an empty room and setting up your own desk. More work at the start, but the room is yours and the monthly rent is much lower.

The n8n software itself is free to self-host under its license. You only pay for the VPS — the small rented computer. Most small businesses need only the cheapest server size, which costs a few dollars per month.

Why Self Host n8n VPS Instead of Paying Monthly?

The biggest reason to self host n8n VPS is cost. Cloud automation tools charge you per task or per workflow run. The more your business grows, the more you pay. A self-hosted setup costs the same flat server fee whether you run ten workflows or a thousand.

REASON 01

Flat Low Cost

You pay one small server fee per month. Run as many workflows as your server can handle — the price never jumps.

REASON 02

Your Data Stays Yours

Customer details and business data live on your own server, not on someone else's computers. Many owners prefer this.

REASON 03

No Task Limits

Cloud plans count every workflow run. Self-hosted n8n has no such counter — your automations run freely.

REASON 04

Full Control

You choose when to update, which version to run, and how everything is set up. Nobody can change your plan overnight.

The honest trade-off: when you self host n8n VPS, you become the caretaker. If something breaks at midnight, you fix it. For most small setups this is rare — n8n is stable — but you should know it before you start.

What You Need Before You Start

You do not need to be a programmer. But you need three things ready:

  • A VPS account. Popular providers include DigitalOcean, Hetzner, and Linode. Pick the smallest server size (usually 1 CPU and 1–2 GB of memory is enough to start).
  • A domain name (optional but smart). A domain is your web address, like automations.yourbusiness.com. It makes your n8n secure and easy to open. You can buy one from any domain seller.
  • About one hour of quiet time. The setup below takes most beginners 45 to 60 minutes the first time.
Key term — Docker: Docker is a free tool that runs software in sealed boxes called "containers." Think of a container as a lunchbox: everything n8n needs is packed inside, so it runs the same way on any server. We will use Docker because it makes installing n8n a one-line job.

How to Self Host n8n VPS in 7 Steps

Follow these steps in order. Each one builds on the last.

1. Create your VPS

Sign up with a VPS provider and create a new server. Choose Ubuntu as the operating system (it is free and the most common choice). Pick the smallest size. Note down the server's IP address — the provider shows it on your dashboard.

2. Connect to your server

Use a tool called SSH to open a text window into your server. On Windows you can use PuTTY; on Mac and Linux, open the Terminal app. Type the connect command your provider gives you, enter your password, and you will see a command line waiting for input.

3. Install Docker

On the command line, install Docker with your provider's one-click option or the official install script. This takes a few minutes. When it finishes, Docker is ready to run containers for you.

4. Start n8n in a container

Run one Docker command that downloads n8n and starts it. The command also creates a storage folder on your server so your workflows are saved permanently — not lost when the container restarts. n8n's official self-hosting guide shows the exact command and options.

5. Point your domain to the server

In your domain seller's settings, add a DNS record (an "A record") that points your chosen address — for example, automations.yourbusiness.com — to your server's IP address. DNS is the internet's phone book; this entry tells it where to find your server. It can take up to an hour to start working worldwide.

6. Add free security (HTTPS)

Install a free SSL certificate so your n8n opens with a padlock (https://) instead of plain http://. The free tool Certbot does this in minutes. Never log in to n8n over an unsecured connection — your password would travel openly.

7. Log in and create your first workflow

Open your domain in a browser. Create your n8n account (this account lives only on your server). Build a tiny test workflow — for example, one that sends you an email when you click a button. If it runs, your self-hosted n8n VPS is working.

Keep Your Self-Hosted n8n Safe and Healthy

Your server is now running. These five habits keep it safe:

Turn on automatic security updates for the server
Back up the n8n data folder every week (copy it somewhere safe)
Use a long, unique password for your n8n login
Update n8n itself every month or two with one Docker command
Never share your server login details with anyone
Check that your SSL certificate renews automatically
Important: A self-hosted server connected to the internet will get scanned by strangers within hours. This is normal. A firewall (most providers offer a one-click firewall) plus strong passwords blocks nearly all of it. Do not skip this.

Frequently Asked Questions

Is it legal to self host n8n VPS for my business?

Yes. n8n's license allows self-hosting, including for business use. Always check the current license terms on n8n's website, since licenses can change over time.

How much does it cost to self host n8n VPS?

The n8n software is free to self-host. You only pay for the VPS, and the smallest server size is enough for most small businesses — usually a few dollars per month. Your domain name is a small extra yearly cost.

Do I need coding skills to self host n8n?

No. You need to copy and paste a few commands and follow steps carefully. Building the actual workflows inside n8n needs no coding at all — it is all drag and drop.

What happens if my server restarts?

If you set up Docker to restart automatically (one extra option in the start command), n8n comes back up by itself after a reboot. Your workflows are stored in the data folder, so nothing is lost.

Can I move from n8n cloud to self-hosted later?

Yes. You can export your workflows from the cloud version as files and import them into your self-hosted n8n. The workflows work the same in both places.

Want Automation Without the Monthly Bills?

We help small businesses set up self-hosted automation the right way — n8n on your own server, secure backups, and workflows that save you hours every week.

Get a Free Consultation →