Using a VPS for n8n is the most direct way to run automations 24 hours a day, with your data under your control and without depending on execution limits from third-party plans. You rent the server, install n8n, and pay a predictable monthly amount, no matter how many workflows run.
In this guide you will see what you need before you start, how to size the server, and a streamlined step-by-step process for hosting self-hosted n8n.
Why run n8n on a VPS
On the official cloud, costs tend to grow along with the number of executions. With self-hosting, the limit is what your server can handle. For anyone automating online store orders, leads, notifications, and integrations between systems, that changes the math.
The main benefits:
- Data control: credentials, history, and workflows stay on your server.
- No limit imposed by the plan: the ceiling is the VPS resources, which you can expand.
- Predictable cost: a fixed monthly fee, with no surprises at the end of the month.
- Configuration freedom: you choose the system, domain, backups, and anything else that runs on the same server.
The trade-off for this freedom is taking on some maintenance. It is not complicated, and the security section below covers the essentials.
What you need before you start
You do not need to be a programmer, but some familiarity with the terminal helps. Gather these items:
- An active VPS with SSH access (username and password or key).
- A domain or subdomain, such as
automacao.seusite.com.br, to access n8n over HTTPS. It is optional for testing but recommended for real use. - A simple list of what you want to automate: where the data comes from, where it goes, and how often.
- An email address for the first n8n administrator account.
If you would rather skip the technical part, there is a pre-installed option, which we will cover in step 2.
n8n VPS requirements: how much resource to choose
There is no single number. Consumption depends on how many workflows run at the same time, the size of the data passing through them, and how many simultaneous executions you have.
- A few light workflows (alerts, forms, simple integrations): an entry-level plan usually does the job.
- Many active workflows or simultaneous executions: RAM matters more, because each execution occupies memory.
- Workflows that process files, large lists, or heavy API calls: consider more RAM and more vCPU.
- Execution history kept for a long time: the disk grows, so reserve space.
An NVMe SSD helps because n8n constantly writes history and execution data. Fast storage keeps the panel responsive and reduces bottlenecks. If you are unsure, start with a mid-range plan and monitor usage: scaling up later is simple.
Linux or Windows: which system to use
For n8n, choose Linux. It is lighter, uses fewer resources, and works very well with Docker, the most common way to run n8n. You can use Ubuntu, AlmaLinux, CentOS, or Debian on the Linux VPS, and you can even reinstall or switch versions free of charge if needed.
Windows works for those who already run other routines on it, but it uses more resources just to keep the system running.
Server location: latency and geography
The distance between the server and the services you integrate affects how quickly your automations respond. If you connect Brazilian systems, such as ERPs, payment gateways, marketplaces, and national APIs, a datacenter in Brazil usually delivers lower latency. The Brazil VPS has a datacenter in Minas Gerais (a state in Brazil), a Brazilian IP, and support in Portuguese and English.
If most of your integrations are with international services, consider a location outside the country. For most local business cases, Brazil is the safe choice.
How to host self-hosted n8n: a summary step-by-step
The full process has four stages:
- Order the VPS and access the server.
- Install n8n.
- Configure domain, SSL, and access.
- Create and test your first workflow.
Step 1: order the VPS and access the server
Choose the plan according to the resources section, select Linux, and complete the payment. Activation is immediate with Pix (Brazil's instant payment system) or card, with no lock-in contract.
Once the server is active, you receive the IP address and credentials. From your computer's terminal, connect via SSH:
ssh root@IP_DO_SERVIDOR
On the first connection, update the system (for example, apt update && apt upgrade on Ubuntu or Debian).
Step 2: install n8n (manual or 1-click)
You have two paths:
| Option | Who it is for | Note |
|---|---|---|
| Manual with Docker | Those who want full control and are comfortable with the terminal | You install Docker, start the n8n container, and set up a volume to store the data |
| Pre-installed or 1-click | Those who want to start quickly | Available with EasyPanel and Coolify |
In the manual installation, the critical point is creating a persistent volume. Without it, your workflows can be lost if the container is recreated.
If you want to get straight to using it, the n8n VPS comes with self-hosted n8n pre-installed or available in 1 click, with unlimited executions and your data under your control.
Step 3: configure domain, SSL, and access
Point a subdomain to the server's IP by creating an A record in your domain's DNS panel. Then set up a reverse proxy (such as Nginx, Caddy, or EasyPanel/Coolify itself) to serve n8n over HTTPS with an SSL certificate.
Protect access:
- Create the administrator user with a strong password.
- Do not leave the n8n port exposed without HTTPS.
- Set the public URL of n8n correctly so that webhooks work.
Step 4: create and test your first workflow
Start simple. Create a workflow with a Webhook node as the trigger and a node that sends a message or writes a row to a spreadsheet. Activate the workflow, call the webhook URL from your browser or a testing tool, and check the execution in the history.
If it worked, you already have an automation running on its own 24/7, without depending on your computer being on.
Security and maintenance for your automation server
An automation server stores API keys and access to several systems, so it deserves a minimum of care:
- Backup: export your workflows and keep a copy of the data volume and the n8n encryption key. Without the key, saved credentials cannot be recovered. Keep copies in a location outside the server.
- Updates: keep the system and the n8n image up to date, testing first if your workflows are critical.
- Firewall: open only the necessary ports, such as SSH and HTTPS.
- Anti-DDoS: 1.3 Tbps protection is included at no additional cost on the plans.
- Support: if something gets stuck, 24/7 support in Portuguese and English is available to help.
When it makes sense to upgrade the plan
Watch for these signs:
- The n8n panel becomes slow or freezes when opening workflows.
- Executions queue up or take longer than before.
- Workflows that process a lot of data fail due to lack of memory.
- The disk fills up because of execution history.
In these cases, increasing RAM and vCPU solves the problem most of the time. Before that, it is worth clearing old history and reviewing heavy workflows. Since there is no lock-in contract, you can adjust the plan as your real usage grows.
Conclusion: get your automations running
Hosting n8n on a VPS gives you control over your data, executions without plan limits, and a fixed cost. Choose Linux, size RAM and CPU according to the volume of your workflows, prefer a datacenter close to your integrations, and follow the four steps. The next step is to choose a plan and start with a simple workflow.
Explore the VPS options from HostMF and, if you have questions about choosing one, contact our support team in Portuguese or English.