n8n VPS Self-managed n8n hosting, 24/7 on a server of your own
An n8n VPS keeps your workflows running around the clock: webhooks get an answer and scheduled workflows run while your own computer is off. Here it is a KVM VPS with Ubuntu or Debian and full root from €4.99/month in Amsterdam, paid by PayPal or crypto with no ID check. There is no one-click n8n image. You run n8n's official Docker image with Docker Compose, and this page has the commands and the settings that decide whether your instance survives a restore, an update and the open internet.
- Ubuntu or Debian, full root
- Docker Compose, pinned release
- PayPal or crypto
- Always-on DDoS protection
n8n VPS
What runs where
- System
- Ubuntu · Debian
- Runtime
- Docker Compose
- Editor port
- 5678, localhost only
- Public access
- HTTPS reverse proxy
- Database
- SQLite or PostgreSQL
- From
- €4.99/month
01Why a VPS
Why run n8n on a VPS?
n8n runs on a laptop too. A server makes sense once other services call your webhooks, or once workflows have to run while you are offline.
Webhooks need an address that answers
A webhook only works if n8n is reachable when the caller fires it. On a VPS the instance stays online while your computer is shut, under a subdomain of your own and with its own IPv4 address, which stays the same when you upgrade the plan.
A machine for n8n alone
n8n's Docker Compose install page asks for a host or VM with nothing else on it. A KVM VPS is exactly that: its own kernel, full root, and room for PostgreSQL, Redis and a reverse proxy next to n8n.
Credentials on your server
n8n keeps the API keys and passwords of every connected service in its database, encrypted with a key from its data folder. On your own VPS both stay on a machine you control. The panel adds a browser VNC console, reinstall, snapshots, backups, reverse DNS and power control.
A price per server, not per run
€4.99/month for the smallest plan in Amsterdam, the same every month however many workflows run on it. Prepay up to 12 months and the rate drops by up to 15%. Model and API costs of your workflows are billed by those providers, not by us.
02Install
How do I install n8n on a VPS?
With n8n's official Docker image and Docker Compose on a fresh Ubuntu or Debian server, following n8n's own Compose guide. Five steps, with the lines that matter beside them:
- 01
Order and log in
Pick Ubuntu 24.04 LTS or Debian 13 (Trixie) at checkout; a Linux server is online about a minute after your payment is confirmed. Log in over SSH and create a normal user with sudo rights and SSH keys. Our first-ten-minutes checklist covers it.
- 02
Docker and a subdomain
Install Docker Engine with the Compose plugin, then point a subdomain such as
n8n.example.comat the server's IPv4 (how to point a domain at a VPS). Use a subdomain, not a path: n8n's docs warn that a path behind a reverse proxy can cause folder navigation issues. - 03
Create the encryption key
Run
openssl rand -hex 32and set the output asN8N_ENCRYPTION_KEYin the n8n service'senvironmentincompose.yamlbefore the first start. Without it, n8n generates a key on first launch and keeps it only in its data volume. Store a copy in your password manager, off the server. - 04
Start n8n with Compose
n8n's Compose guide already binds the editor to
127.0.0.1:5678and setsN8N_WEBHOOK_URL. Add what it leaves out: an exact image tag instead of the unpinnedn8nio/n8n, andN8N_PROXY_HOPS=1. Set itsGENERIC_TIMEZONEandTZto your own zone, then rundocker compose up -d. - 05
HTTPS, then the owner account
The guide puts Traefik in front for Let's Encrypt certificates; NGINX or Caddy work as well (Nginx reverse proxy with SSL). Then open your subdomain over HTTPS and create the owner account at once: a fresh instance shows that signup screen to whoever arrives first.
# on the VPS: create the key once, keep a copy off the server
openssl rand -hex 32
# compose.yaml, n8n service, as items under environment:
# (a line only in .env does not reach the container)
N8N_ENCRYPTION_KEY=paste-the-64-hex-characters
N8N_HOST=n8n.example.com
N8N_PROTOCOL=https
N8N_WEBHOOK_URL=https://n8n.example.com/
N8N_PROXY_HOPS=1
GENERIC_TIMEZONE=Europe/Amsterdam
TZ=Europe/Amsterdam
# in compose.yaml: an exact tag, the editor on localhost only
# image: n8nio/n8n:2.48.7
# ports: ["127.0.0.1:5678:5678"]
# start
docker compose up -d
# update: back up first, raise the tag, then
docker compose pull
docker compose down
docker compose up -dFrom n8n's Docker Compose guide and its page on webhook URLs behind a reverse proxy, checked on 20 November 2026. n8n ships a new minor version most weeks: where a line here differs from the docs, the docs are right.
Ports Docker publishes skip UFW's rules, because traffic to a container is routed before UFW sees it. Keep 5678 on 127.0.0.1 and let UFW allow only SSH, 80 and 443.
n8n also has a one-line setup (curl -fsSL https://get.n8n.io | sh) with SQLite and the n8n Assistant sandbox. n8n says that sandbox is for development and testing, not production, and that this setup should never be exposed to the internet, so on a VPS that webhooks have to reach, use the Compose route above.
The full walkthrough with PostgreSQL, Nginx and certbot, every file explained, is our guide how to self-host n8n.
Older Ubuntu and Debian releases are on the order form too, and a reinstall from the panel gives you a clean system whenever you want to start over. More on Ubuntu VPS and Debian VPS.
03Webhooks
How do n8n webhooks work over HTTPS?
n8n builds every webhook URL from its own settings. Behind a reverse proxy, those settings have to describe the public address, not the container.
Never expose port 5678
n8n's docs say not to expose the n8n process directly to the internet. Terminate TLS at the reverse proxy and keep 5678 on 127.0.0.1, where only the proxy reaches it.
Set N8N_WEBHOOK_URL
Without it, n8n builds URLs from N8N_PROTOCOL, N8N_HOST and port 5678, and the editor shows addresses no caller can reach. Set N8N_WEBHOOK_URL=https://n8n.example.com/. It exists from n8n 2.30.0; earlier releases read WEBHOOK_URL, which still works as an alias but is deprecated from 2.35.0.
N8N_PROXY_HOPS and forwarded headers
Set N8N_PROXY_HOPS=1 for one proxy, and have that proxy pass X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Proto. The setting decides whether n8n trusts those headers for the client IP and protocol, and a Webhook node's IP allowlist depends on it.
Test URL and production URL
Each Webhook node has both. The test URL (path webhook-test) answers only while the editor is listening. The production URL (path webhook) is registered when you publish the workflow, and that is the one to give other services.
HTTPS for the editor too
N8N_SECURE_COOKIE is on by default, so n8n's cookies are only sent over HTTPS. Serve the editor through the proxy with a valid certificate, not over plain HTTP on the server's IP.
Lock each webhook down
A production URL is public. The Webhook node can check an IP allowlist and Basic, Header or JWT authentication, and the maximum payload is 16 MB, set by N8N_PAYLOAD_SIZE_MAX.
This section follows n8n's page on webhook URLs behind a reverse proxy. Since n8n 2.0, the Execute Command node is disabled by default, and file nodes only reach ~/.n8n-files unless N8N_RESTRICT_FILE_ACCESS_TO names another folder (n8n's Compose guide sets /files). Widen either only when a workflow needs it.
04Backups
What does a complete n8n backup contain?
A database dump alone does not bring an n8n instance back. Without the encryption key, every credential in it stays unreadable.
The encryption key
n8n encrypts credentials before saving them, with a key in the config file of its .n8n folder; in Docker that is the volume at /home/node/.n8n. Set it yourself with N8N_ENCRYPTION_KEY and use the same value on every instance and worker.
No key, no credentials
n8n's docs say a restored database or credential export cannot be decrypted without the key. If the data volume is missing when n8n starts, it creates a new key, and the existing credentials can no longer be decrypted.
What goes in
The whole .n8n folder (the key, and the database file if you use SQLite), a PostgreSQL dump made with Postgres's own tools, custom node folders, external binary storage, and your compose and env files. Stop n8n before you copy a SQLite file: a copy taken mid-write can be inconsistent.
What the CLI export leaves out
The export:workflow and export:credentials commands skip users and roles, execution history, variables and instance settings, the key included. Good as a second copy, not as the only one. A decrypted credential export holds every secret in plain text.
A restore drill, before you need one
Run it once on a second small VPS. If a stored credential works there, your backup works.
- 01
Restore the files
Put back the compose file, the env file and the whole
.n8nfolder, with theconfigfile that holds the key. - 02
Restore the database
Load the PostgreSQL dump into an empty database, then start n8n on the image tag the backup came from. With SQLite, the database file is already in the folder.
- 03
Test a credential
Run a workflow that uses a stored credential. If it cannot be decrypted, the key is not the one that encrypted the database, and the backup is not complete.
- 04
Shut the copy down
A restored instance can run its active workflows against your real services. Stop it once the test passes, and repeat the drill before every major upgrade.
A snapshot from the panel before an update gives you a quick way back on the same server. It is not an off-server copy: keep the key and the dumps somewhere else as well. n8n's backup and restore page has the details.
05Plans
Sized by the data your workflows move
n8n itself is small: on n8n Cloud the software alone uses about 180 MiB of RAM on average. n8n's Docker Compose install, which includes the n8n Assistant sandbox, asks for at least 4 GB and 2 vCPUs. Beyond that, memory depends on your workflows.
Standard KVM
Most setupsThe most RAM per euro: 4 GB and 2 vCores for €4.99, the size n8n asks for once the n8n Assistant sandbox runs beside it. Room for n8n, PostgreSQL and the reverse proxy on one server.
| Plan | vCores | RAM | Storage | Amsterdam |
|---|---|---|---|---|
| STANDARD KVM 12 vCores4 GB DDR420 GB | 2 | 4 GB DDR4 | 20 GB | €4.99/mo |
| STANDARD KVM 24 vCores8 GB DDR440 GBQueue mode, big files | 4 | 8 GB DDR4 | 40 GB | €9.99/mo |
| STANDARD KVM 36 vCores12 GB DDR460 GB | 6 | 12 GB DDR4 | 60 GB | €14.99/mo |
Hi-CPU KVM
Fast single threadsFewer GB per plan, on AMD EPYC. Take at least 4 GB (€9.99) to match n8n's figure for the Compose install with the Assistant sandbox; the smallest plan has less. For workflows that spend their time in Code nodes, where a fast thread shortens each run.
| Plan | vCores | RAM | Storage | Amsterdam |
|---|---|---|---|---|
| HI-CPU 11 vCore2 GB ECC20 GB | 1 | 2 GB ECC | 20 GB | €4.99/mo |
| HI-CPU 22 vCores4 GB ECC40 GBSmallest for n8n | 2 | 4 GB ECC | 40 GB | €9.99/mo |
| HI-CPU 33 vCores6 GB ECC60 GB | 3 | 6 GB ECC | 60 GB | €14.99/mo |
What fills the memory
Data, not n8n: large JSON items, binary files, Code nodes and manual runs, whose data is copied to the editor. Each execution running at the same time holds its own data, so parallel runs add up. N8N_CONCURRENCY_PRODUCTION_LIMIT caps parallel production runs; it is off by default.
Execution history
n8n saves successful, failed and manual executions, deletes those older than 336 hours (14 days) and keeps at most 10,000. On SQLite, pruned space is not freed by itself: DB_SQLITE_VACUUM_ON_STARTUP or a manual VACUUM gets it back.
Where to start
The €4.99 plan with 4 GB and 2 vCores meets n8n's minimum for the Compose install with the Assistant sandbox. Move to 8 GB (€9.99) when workflows handle large files, run heavy Code nodes or often overlap, or for queue mode.
AI workflows
A hosted model runs at its provider, not on your server. The Simple Vector Store does use your RAM, with no limit on self-hosted n8n; n8n recommends it for development only. None of our VPS plans has a GPU, so a local model runs on the CPU alone: workable for small models, slow for larger ones.
Start small: an upgrade from the panel gives the same server more vCores, RAM and storage; your data and your IP address stay, and the new resources apply after a reboot. If the kernel kills processes for lack of memory, move up, add swap as a buffer, or follow n8n's advice: smaller batches, sub-workflows and a larger V8 heap through NODE_OPTIONS.
Pay by PayPal or crypto (Bitcoin, Ethereum, USDT, Litecoin, Monero and more), with no ID check: how paying in crypto works.
06Scaling
When is n8n queue mode worth it?
Queue mode splits n8n into a main instance, which receives webhooks and timers and creates executions, and workers, which run them. It adds moving parts, so it should solve a problem you actually have.
Our rule of thumb
n8n names no threshold, and its performance page states that a single instance can handle up to 220 workflow executions per second. Our rule of thumb, not n8n's: stay in regular mode while the editor stays responsive. Switch when long runs keep webhooks waiting, or when more than about ten production executions regularly run at the same time.
What it needs
PostgreSQL, since n8n does not support SQLite in queue mode; Redis as the message broker; and EXECUTIONS_MODE=queue on the main instance and every worker. Workers and webhook processors need the main instance's N8N_ENCRYPTION_KEY.
Workers and concurrency
Start each worker with n8n worker. A worker runs 10 executions at once by default, and n8n recommends a concurrency of 5 or more. Every container must run the same image and the same version.
What changes for data
If Redis loses queued jobs, n8n does not rebuild them and marks those executions as crashed. Binary data goes into the database by default; filesystem mode needs one shared volume for all processes, and S3 or Azure storage needs a licence that includes external storage.
Task runners for Code nodes
Code nodes run in task runners, on by default since n8n 2.0. The 2.x default, internal mode, starts the runner as a child process of n8n, which n8n calls insecure by design. For production and sensitive data, n8n says to use external mode: an n8nio/runners sidecar matching the n8n version. Python Code nodes need it, and internal mode is deprecated from 3.0.
Multi-main is Enterprise
Queue mode is part of the Community edition. Running several main instances at once (multi-main mode) is not: it needs a self-hosted Enterprise licence.
On one VPS, queue mode means n8n, workers, runners, PostgreSQL and Redis side by side. Our rule of thumb: plan it from 8 GB (€9.99). Details are in n8n's queue mode and task runner documentation.
07Updates
How do I update n8n, and what changes with 3.0?
As read on 20 November 2026: n8n 2.x is the stable line, n8n 3.0 is in early access, and the stable 3.x release is announced for early December 2026.
Pin the tag
Run an exact version such as n8nio/n8n:2.48.7, not stable or latest, so updates happen when you decide. n8n advises updating at least once a month and checking the release notes for breaking changes.
Back up first
Changing the image tag back does not reverse the database migrations a newer version has run. Take a full backup, key included, and a panel snapshot before every update.
The update itself
docker compose pull, then docker compose down and docker compose up -d; the data stays in the volume. With workers, every container moves to the same version, runners included.
3.0 runs on Docker only
From 3.0, npm and npx installs are no longer supported; self-hosted n8n runs on Docker, while Kubernetes and Helm setups are not affected. The upgrade is one way, with no rollback to 2.x, and there is no direct path from 1.x: move to 2.x first.
Read the Migration Report
Every instance on 2.39 or later has Settings > Migration Report, which lists the workflows and settings 3.0 affects. 3.0 removes nodes such as Function, Cron, Interval and the legacy OpenAI node, and a workflow that uses one fails when it runs.
Support windows
Support for 1.x ends on 31 December 2026. After the stable 3.x release, 2.x gets security and critical bug fixes for 12 months. 3.0 also cuts the task runner timeout default from 300 to 60 seconds, which long Code nodes will notice.
From n8n's update guide, the 3.0 breaking changes and the 3.0 announcement, read on 20 November 2026. Where this section differs from them, n8n's pages are right.
08Licence
What does n8n's licence allow on your own VPS?
n8n is fair-code and source-available under its Sustainable Use License. Running it for your own business costs nothing; agencies should know where the limits are.
Allowed
Using and changing n8n for your own internal business, or for personal and non-commercial use. Building workflows for clients on your instance and charging for setup, maintenance, training and consulting, as long as clients cannot create or edit them. Running n8n behind the scenes, where users only trigger automations you built.
Not allowed
Hosting n8n as a service where clients build their own workflows, white-labelling it, or letting external users build or configure workflows through your product. Installing n8n on a client's own server is fine, as long as you do not host it for them as well.
What Community edition lacks
Sharing of workflows and credentials, projects, SSO (SAML, LDAP), environments and Git version control, external secrets, external binary storage, log streaming, custom variables and multi-main mode. A free registration by e-mail adds folders, debug in editor and custom execution data.
A summary, not legal advice: the Sustainable Use License and n8n's licence FAQ are the reference, and n8n takes unclear cases at license@n8n.io. On our side, the Acceptable Use Policy names “automated tasks, bots, and scripts for lawful purposes” as permitted use. Weighing n8n against hosted tools on cost? Read n8n vs Zapier vs Make.
09FAQ
n8n VPS: questions
Everything you need to know before deploying, and a human if you need more.
Still have questions?
Real engineers on the other end: typical first response within about two hours.
< 2 hours Typical first response
24/7/365 Engineers on shift
10Use cases & related
Related plans and guides
Other servers we run for neighbouring jobs, each with its starting price, and three guides worth reading before you order.
Related planseach from €4.99/mo
- Websites, apps and game servers
Standard KVM VPS
Intel KVM with the most vCores per euro: 2 to 32 vCores in nine sizes, in Amsterdam.
- Bots, game servers and builds
AMD EPYC Hi-CPU VPS
1 to 14 AMD EPYC vCores at Standard KVM's nine prices, built for single-thread work.
- AI agents
OpenClaw VPS
Your OpenClaw gateway 24/7 on Ubuntu or Debian, kept on loopback and reached through an SSH tunnel.
- Ubuntu servers
Ubuntu VPS
Ubuntu LTS with root over SSH and a kernel of its own, so Docker and WireGuard work without workarounds.
- Debian servers
Debian VPS
Debian with root over SSH: pick the release at checkout, reinstall a clean system from the panel.
- Paying in crypto
Anonymous crypto VPS
BTC, ETH, USDT, LTC, XMR and more through Cryptomus, against a euro invoice.
GuidesFrom the VMHeaven blog
Ready to run n8n 24/7?
Enterprise-grade compute in the EU: no contracts, cancel anytime.
