n8n: automate your tasks and self-host it on your own VPS

12 min read

Wayhost visual on a navy blue background with the title “n8n: automate your tasks and self-host it on your own VPS” and a virtual server icon

What n8n does, what its license allows, n8n Cloud or self-hosted, required resources, installing it on a VPS with Docker, security and backups: the guide to automating without losing control of your data.

By Mouhamed BANKOLE, CEO at ITNET Technologies · Updated November 16, 2026 · Reading time: 11 min

Copying form data into a spreadsheet, following up with a client, alerting the team when a website goes down: these repetitive tasks eat up hours every week. n8n promises to automate them without coding everything, and to do it on your own server if you want. The real questions are what the tool actually does, what its license allows, what each option costs and how to install it properly on a VPS. This guide answers them, with an installation procedure and a security checklist.

In short

  • n8n is a workflow automation tool: you connect applications and APIs with visual nodes, and add JavaScript code when you need it.
  • There are two ways to use it: n8n Cloud, hosted and billed by the vendor, or the Community edition, self-hosted on your own server.
  • The license is not open source in the strict sense: internal business use is allowed, reselling n8n as a service to your clients is not without a commercial agreement.
  • On a VPS, Docker Compose is the recommended method, with PostgreSQL in production and a systematic backup of the encryption key.
  • Self-hosting pays off once your execution volumes exceed the Cloud plan quotas, provided you take care of updates.

Contents

  1. What is n8n?
  2. What is n8n used for in practice?
  3. Is n8n free, and under which license?
  4. n8n Cloud or self-hosted n8n: which should you choose?
  5. What resources does an n8n server need?
  6. How do you install n8n on a VPS with Docker?
  7. How do you secure and back up an n8n instance?
  8. n8n, Zapier or Make: what are the differences?
  9. Can you use n8n with AI and a local LLM?

What is n8n?

n8n is workflow automation software that connects applications, APIs and databases through a node-based visual editor. Each node performs one action (read an email, call an API, write to a spreadsheet), and nodes are chained together to form a workflow.

How it works:

  • a trigger starts the workflow: webhook, schedule, new email, event in an application;
  • action nodes transform data or send it somewhere else;
  • data flows as JSON from one node to the next, which makes it easy to manipulate;
  • an HTTP Request node lets you call any REST API, even without a dedicated integration;
  • a Code node accepts JavaScript for cases the visual editor does not cover.

This mix of no-code and free-form code is what sets it apart: a business user builds most of the workflow, a developer adds the fine-grained logic.

What is n8n used for in practice?

n8n removes repetitive manual work between your tools: syncing data, sending notifications, generating documents or monitoring services. In a small business or a web agency, the most common use cases are simple and pay off quickly.

Examples of useful workflows:

  • a contact form that creates the record in the CRM, notifies the salesperson and sends an acknowledgement;
  • website monitoring that tests a URL every five minutes and sends an email or chat alert on error;
  • invoicing: export payments, generate a PDF and archive it in a storage space;
  • news monitoring: read RSS feeds, filter by keywords and send a daily digest;
  • backups: regular export of a database or spreadsheet to remote storage;
  • support: sort incoming emails and create tickets automatically.

Pro tip: start with a workflow that saves you time every day, not the most ambitious one. A quick first win helps the team adopt the tool.

Is n8n free, and under which license?

The n8n Community edition is free to self-host, but it is distributed under the Sustainable Use License, a "fair-code" license that restricts commercial use. n8n moved from Apache 2.0 with Commons Clause to this license on March 17, 2022 (n8n documentation).

What the license allows and forbids:

  • allowed: use for your own internal business purposes, personal or non-commercial use (n8n documentation);
  • allowed: selling consulting or support services, for example building workflows for a client;
  • allowed: modifying the code and redistributing it free of charge for non-commercial purposes;
  • not covered: making n8n available to your customers so they can connect their accounts and build their own workflows;
  • not covered: reselling n8n as a hosted service without a separate commercial agreement with the vendor.

Pro tip: a web agency that wants to offer "hosted n8n" to its clients must first obtain a commercial agreement from the vendor. If in doubt, the official documentation gives a contact address dedicated to licensing questions.

n8n Cloud or self-hosted n8n: which should you choose?

Choose n8n Cloud to get started without any administration, and self-hosting if you want to keep your data in-house, lift execution quotas or control costs at high volume. Both options use the same editor.

Criterionn8n CloudSelf-hosted n8n (Community)
Who manages the serverThe vendorYou (or your provider)
Software costMonthly subscriptionFree
Infrastructure costIncludedThe price of your VPS or server
Execution limitDepends on the planDepends on your server's power
UpdatesAutomaticYour responsibility
Data locationThe vendor'sYour hosting provider's
Advanced features (SSO, environments)Depends on the planReserved for paid licensed editions

On pricing, the vendor lists the Starter plan at €20 per month billed annually for 2,500 monthly executions (n8n pricing). The Pro plan goes up to €50 per month billed annually for 10,000 executions (n8n pricing). When self-hosting, the software costs nothing: you pay for the infrastructure and the administration time.

Questions to ask yourself:

  • how many executions per month your workflows will use, especially if they run every minute;
  • where the processed data must reside (customer data, GDPR, trade secrets);
  • who will handle updates and backups, and how fast in case of an incident;
  • whether you need team features such as SSO, which belong to the paid editions.

What resources does an n8n server need?

For the current Docker Compose installation, the n8n documentation requires at least 4 GB of RAM and 2 vCPUs (n8n documentation). That is the baseline; your real needs depend on the number of workflows and the amount of data they handle.

What drives consumption up:

  • very frequent workflows, triggered every minute or by many webhooks;
  • large data volumes processed in a single execution (files, full exports);
  • execution history stored in the database, which grows fast if it is not pruned;
  • AI nodes that call a language model, especially if it runs on the same machine.
ProfileRecommended hostingDatabase
Testing, learningLocal machine or small VPSSQLite
Small business, a few dozen workflowsVPS dedicated to n8nPostgreSQL
Agency, many internal client workflowsMore powerful VPS or dedicated serverPostgreSQL, backed up separately
Integrated local AIServer with a GPUPostgreSQL

A Wayhost VPS runs on KVM virtualization with reserved CPU and RAM, NVMe storage and full root access, and its resources can be scaled up from the customer area (checked on November 16, 2026). For heavy workloads or local AI, a physical server avoids sharing the machine.

How do you install n8n on a VPS with Docker?

The recommended production method is Docker Compose: it runs n8n and its supporting services in containers, with pinned versions and persistent volumes. The documentation also offers a one-line install script and an npm installation, intended for development (n8n documentation).

The steps, on a freshly installed Linux VPS:

  1. update the system and create a non-root user with an SSH key;
  2. install Docker Engine and Docker Compose v2, then check with docker compose version;
  3. create an n8n folder and put in it the compose.yml file provided by the vendor on its GitHub repository;
  4. fill in the .env file: image versions, random secrets, and PostgreSQL settings if you use it;
  5. start the stack with docker compose up -d, then check its status with docker compose ps;
  6. test the instance locally with curl -sf http://localhost:5678/healthz;
  7. put a reverse proxy (Caddy, Traefik or nginx) in front of n8n to serve the interface over HTTPS;
  8. create the DNS record of type A (for example n8n.your-domain.com) pointing to the VPS IP address.

For the access name, Wayhost domain DNS management lets you create unlimited subdomains and A, MX, CNAME and TXT records (checked on November 16, 2026).

Pro tip: always pin the image version in .env instead of using latest. An update then becomes a deliberate step: you read the release notes, back up, then change the version and run docker compose pull and docker compose up -d.

How do you secure and back up an n8n instance?

An n8n instance holds the credentials of all your tools: protect access to it like a safe and back up the database together with the encryption key, otherwise restored credentials will be unusable. The documentation states that, with SQLite, the database and the encryption key live in the n8n-data volume (n8n documentation).

Security checklist:

  • expose only the HTTPS proxy: the n8n port stays closed to the public, only the proxy reaches it;
  • enable a firewall that only allows SSH, HTTP and HTTPS;
  • disable SSH password login and use keys;
  • enable two-factor authentication on n8n accounts;
  • protect sensitive webhooks with a secret header or authentication;
  • dedicate the machine to n8n: the documentation notes that the code execution container runs in privileged mode, which means weak isolation.

Backup checklist:

  • back up the n8n-data volume (SQLite database and encryption key) or run a pg_dumpall of PostgreSQL;
  • export the encryption key to a secrets manager, separately from the backups;
  • copy backups off the server, to another provider or another site;
  • test a restore on a blank machine at least once a quarter;
  • prune old execution history to keep the database lean.

On a Wayhost VPS, automatic backups and instant snapshots are managed from the customer area (checked on November 16, 2026): a snapshot right before each n8n update lets you roll back in minutes.

n8n, Zapier or Make: what are the differences?

The main difference is hosting: Zapier and Make are online-only services, while n8n can also run on your own server. The choice depends as much on your data constraints as on your technical skills.

Criterionn8nZapierMake
Self-hostingYes (Community edition)NoNo
Learning curveModerateVery easyEasy
Custom codeJavaScript in a nodeLimitedLimited
Branching workflows and loopsYesPartialYes
Billing modelExecutions (Cloud) or server (self-hosted)TasksOperations
Data on your infrastructurePossibleNoNo

Key points:

  • Zapier remains the simplest for a non-technical user connecting two common applications;
  • Make offers a rich visual interface, suited to moderately complex scenarios;
  • n8n suits teams that want code, complex workflows or control over hosting.

To better understand what running your own machine involves, our guide What is a VPS? explains the responsibilities that come with a virtual server.

Can you use n8n with AI and a local LLM?

Yes: n8n offers AI agent nodes that connect to models such as OpenAI's, Mistral's or a local model served by Ollama (IT-Connect). You can summarize emails, classify tickets or extract data from documents inside a workflow.

Two possible architectures:

  • external API: n8n calls an online AI service; simple, but data leaves your infrastructure;
  • local model: n8n calls Ollama or another model server on your network; data stays in-house, but you need a suitable machine, ideally with a GPU.

Pro tip: run n8n and the AI model on two separate machines. n8n runs fine on a modest VPS, while a language model needs a lot of memory. Our guide host an AI application explains how to size that part.

Frequently asked questions

What is n8n in simple terms?

n8n is a tool that connects your applications to automate tasks. You draw a sequence of steps in a visual editor, and n8n runs it for you. It can run in the vendor's cloud or on your own server.

Is n8n really free?

The self-hosted Community edition is free for internal or personal use. You only pay for the server that hosts it. n8n Cloud plans and advanced features such as SSO are paid.

Is n8n open source?

Not in the strict sense of the Open Source Initiative. Its code is public, but its license, the Sustainable Use License, restricts commercial use. It is described as "fair-code" software.

Can you install n8n on a VPS?

Yes, it is the most common way to self-host it. Docker Compose is the recommended production method. Plan for an HTTPS proxy, a domain name and regular backups.

What hardware does n8n need?

The Docker Compose installation documentation requires at least 4 GB of RAM and 2 vCPUs. Needs grow with workflow frequency and data volume. A local AI model requires a much more powerful machine.

Can an agency host n8n for its clients?

It can build workflows for its clients and bill for that work. However, making an n8n instance available to clients so they build their own workflows is not covered by the free license. That requires a commercial agreement with the vendor.

How do you update n8n installed with Docker?

Back up the database and the encryption key first. Then change the image version in the .env file and run docker compose pull and docker compose up -d. Read the release notes before any major update.

SQLite or PostgreSQL for n8n?

SQLite is enough for testing. PostgreSQL is recommended in production, because it handles load better and is easy to back up. SQLite data is not migrated automatically to PostgreSQL.

Key takeaways

  • n8n automates tasks between your tools with a visual editor, plus code when needed.
  • The Community edition is free to self-host, but its license forbids reselling n8n as a service.
  • n8n Cloud spares you administration, self-hosting lifts quotas and keeps data in-house.
  • Docker Compose, PostgreSQL and an HTTPS proxy are the foundation of a production setup.
  • Back up the encryption key with the database, or your restored credentials are lost.

To host your n8n instance on a KVM machine with root access, NVMe storage and snapshots, discover Wayhost VPS.

Article written by Mouhamed BANKOLE, CEO at ITNET Technologies.

Have a specific question?

Our step-by-step articles answer the most common questions.

Knowledge base