# Self-Hosting n8n: What It Really Costs, How to Keep It Safe, and When You Should Not Bother

By Shreyas Raj, founder of RapidXAI. Updated 2026-11-29.

**Short answer:** Self-hosting n8n means running the free Community edition on your own server, usually with Docker on a VPS that costs Rs 600 to Rs 1,200 a month in India as of November 2026. It removes per-execution limits and keeps data on your server, but you take on updates, security, backups and monitoring, and GitHub lists 17 critical n8n advisories published between December 2025 and February 2026 alone. The Sustainable Use License allows internal business use but not selling n8n itself as a service. Self-host if you have someone to maintain it or run high volumes; otherwise n8n Cloud is often cheaper once you count your time.

## The decision in 30 seconds

| Your situation | Our pick | Why |
|---|---|---|
| Under 2,500 runs a month, nobody technical | n8n Cloud Starter | 20 euros a month billed annually, zero server work [2] |
| Up to 10,000 runs, a few workflows that matter | n8n Cloud Pro, or self-host if someone can maintain it | Cloud Pro is 50 euros a month billed annually [2]; a VPS is cheaper only if your time is cheap |
| High volume, many webhooks, or data must stay on your server | Self-host | Your limit becomes your hardware, not a plan |
| You need SSO, Git versioning and environments | Self-hosted Business or Enterprise | Business is 667 euros a month billed annually and is currently self-hosted only [2] |
| You want to resell n8n as your own product | Talk to n8n first | The default license does not allow it [1] |

Our take: most small businesses should start on Cloud and move to self-hosting only after they have three workflows they truly depend on. (Self-hosting your first workflow is like buying a generator before you have a house.)

## The license, in plain words

n8n is not classic open source. It uses its own **Sustainable Use License**, which n8n calls fair-code.

The key line: you may use or modify the software for your own internal business purposes or for non-commercial or personal use [1]. You may distribute it to others only free of charge for non-commercial purposes [1].

Files with ".ee" in the name or folder are carved out entirely and need a paid n8n Enterprise License [1]. That is where features like SSO live.

| What you want to do | Our reading |
|---|---|
| Run n8n to automate your own company's work | Allowed: internal business use [1] |
| Self-host for your company and charge customers for your product, which happens to use n8n in the back office | Generally fine, since n8n is used internally; the customer never gets n8n itself |
| Build workflows for a client inside the client's own n8n | Widely treated as fine, since the client runs it for internal use; confirm for your case |
| Host one n8n and sell clients logins to it | Not allowed under the default license [1] |
| Rebrand n8n and sell it as your automation platform | Not allowed; n8n's docs point embedding use cases to an OEM arrangement [3] |

This is our reading, not legal advice. If your business model touches the last three rows, email n8n before you build.

## What it really costs: Cloud vs your own VPS

Here are real November 2026 prices. Hostinger's India VPS plans as an example [11]:

| Hostinger plan | Sale price | Renewal | Specs |
|---|---|---|---|
| KVM 1 | Rs 599 a month on a 24-month term | Rs 999 a month | 1 vCPU, 4 GB RAM, 50 GB NVMe |
| KVM 2 | Rs 779 a month on a 24-month term | Rs 1,199 a month | 2 vCPU, 8 GB RAM, 100 GB NVMe |
| KVM 4 | Rs 1,099 a month on a 24-month term | Rs 2,399 a month | 4 vCPU, 16 GB RAM, 200 GB NVMe |

Notice the renewal column. The sale price needs 24 months paid upfront, and renewal is roughly 50% to 120% higher [11]. (Budget for year three, not month one.)

### Year-one cost, honestly counted

| Line | n8n Cloud Pro | Self-hosted on KVM 2 |
|---|---|---|
| Plan or server | about Rs 61,060 (50 euros x 12 at Rs 101.76 [2][12]) | Rs 9,348 (779 x 12) |
| Off-site backup storage | Included | about Rs 2,400 (our estimate for small object storage) |
| Your maintenance time | Near zero | Rs 36,000 (3 hours a month at Rs 1,000 an hour, our assumption) |
| Executions | 10,000 a month [2] | Limited by the server |
| Total | about Rs 61,060 | about Rs 47,750 |

So self-hosting saves money, but less than the server price suggests. If your maintenance hour costs Rs 2,000, the two options cost almost the same. The real win from self-hosting is no execution cap and full control of your data.

## Security: the part people skip

Here is the uncomfortable bit. n8n stores the keys to everything: your CRM, Gmail, WhatsApp, payment gateway, database. A compromised n8n is a compromised business.

And n8n has had a busy run of advisories. GitHub's advisory database lists 17 **critical** n8n advisories published between December 2025 and February 2026, and more critical ones through May 2026, as of 29 November 2026. They include remote code execution via expression injection (CVE-2025-68613, 22 December 2025) and unauthenticated expression evaluation via the Form node (CVE-2026-27493, 25 February 2026) [10].

It has not stopped. n8n's own advisory page shows high-severity fixes in October and November 2026, including an expression sandbox escape allowing code execution in the main process, published 26 November 2026 [9].

> **Our take:** This is not a reason to avoid n8n. Active disclosure is a good sign. It is a reason to treat updates as a weekly chore, not a yearly event. An unpatched n8n on a public URL is the risk, not n8n itself.

### The hardening checklist

- **Update weekly.** Subscribe to n8n's GitHub security advisories and patch within days of a critical one.
- **Never expose the editor raw.** Put it behind HTTPS, and ideally behind a VPN or an access proxy. Only webhook URLs need to be public.
- **Turn on 2FA** for every user, and SSO if you have it. n8n's security docs cover SSL, SSO, 2FA and MFA enforcement [8].
- **Shrink the attack surface.** Disable the public REST API if you do not use it, block nodes you do not need, and enable SSRF protection [8].
- **Isolate code execution.** Harden task runners so Code node runs are better isolated [8].
- **Run the built-in security audit** regularly [8].
- **Limit editors.** Several 2026 advisories needed an authenticated user [10]. Fewer people with edit rights means fewer ways in.
- **Set and back up N8N_ENCRYPTION_KEY.** n8n encrypts credentials with this key before saving them; if you do not set it, n8n generates one on first launch and stores it in the ~/.n8n folder [5]. Lose it and every saved credential is unreadable.

## A production setup that will not fall over

The default install is fine for testing. For real work, change four things.

1. **Use Postgres, not SQLite.** n8n uses SQLite by default and supports PostgreSQL, currently versions 16, 17 and 18 [4]. Postgres handles concurrent load and gives you proper backups.
2. **Prune execution data.** Pruning is on by default, keeping executions for 336 hours (14 days) and up to 10,000 runs [6]. On SQLite, pruned space is not freed automatically unless you vacuum [6]. Lower the age if your disk is small.
3. **Run in Docker Compose** with n8n, Postgres and a reverse proxy (Caddy or Nginx) for HTTPS. Pin the n8n version and upgrade deliberately.
4. **Plan for scale only when you need it.** Queue mode sends executions through Redis to separate workers, each running 10 executions at once by default [7]. A distributed setup over SQLite is not supported [7]. Most small businesses never need this.

Shreyas Raj compares local, self-hosted and cloud hosting in his masterclass, then walks through the setup from a blank account to a first AI agent.

Video: [THE BEST N8N MASTERCLASS PART 1 | INTRO, HOW TO SETUP, FIRST AI AGENT](https://www.youtube.com/watch?v=RkElb4AUOPE)

## Backups: the 3-2-1 version for n8n

A VPS snapshot is not a backup plan. It lives with the same provider that just had the problem.

### What to back up

- The Postgres database (workflows, credentials, execution history)
- The encryption key, stored separately in a password manager
- Your docker-compose file and environment file
- Workflow JSON exports, ideally committed to a private Git repo

### How often

- **Nightly** automated Postgres dump, copied off the server to object storage
- **Weekly** provider snapshot (Hostinger includes free weekly backups on these plans [11])
- **Monthly** restore test: spin up a fresh server, restore, open a workflow, run it

That last one is the backup. Everything else is a hope. (We have never met anyone who regretted testing a restore.)

## Monitoring and the Google login trap

Self-hosted means nobody else is watching. Set up three alerts on day one:

- **Uptime:** an external ping on your n8n URL every few minutes
- **Failures:** an n8n error workflow that sends failed runs to WhatsApp or Slack
- **Disk:** alert at 80% full, because execution logs grow quietly

The most common silent failure on self-hosted n8n is Google. OAuth credentials for Sheets, Drive and Calendar can expire on unverified apps, and the redirect URL must match your own domain. Shreyas explains why, and how service accounts avoid the expiry, in this walkthrough using his Hostinger-hosted n8n.

Video: [Why Most n8n Users Get Google Authentication Wrong](https://www.youtube.com/watch?v=c3kpLrnG9XU)

## When not to self-host

Be honest with yourself. Do not self-host if:

- Nobody on the team can SSH into a server and read a log
- You will not patch within a week of a critical advisory
- Your workflows touch payments or health data and you have no security owner
- You run under 2,500 executions a month and your time is worth more than the 20 euro plan
- You plan to sell n8n access to clients (the license blocks it [1])

If you do self-host, give one named person the job. For the broader comparison with Make and Zapier, see [n8n vs Make vs Zapier](/guides/n8n-vs-make-vs-zapier/), and before you build anything big, read [the 12 automation mistakes](/guides/ai-automation-mistakes/). We set up and maintain n8n for clients as part of our [automation services](/services/).

## Questions people ask

### Is self-hosted n8n free?
The Community edition software is free under the Sustainable Use License for internal business, personal or non-commercial use. You still pay for the server, typically Rs 600 to Rs 1,200 a month for a small VPS in India as of November 2026, plus the time to maintain it.

### Can I use self-hosted n8n for client work as an agency?
Building workflows inside a client's own n8n instance is widely treated as fine because the client uses it internally. Hosting one n8n and selling clients access to it, or rebranding it as your product, is not allowed under the default license. Check with n8n for your specific model.

### What server do I need for n8n?
For a small business, 2 vCPU and 4 to 8 GB RAM is plenty, such as Hostinger's KVM 2 plan. Use Postgres instead of the default SQLite for production, and keep execution pruning on so the disk does not fill.

### Is n8n secure?
n8n actively publishes and fixes vulnerabilities, including 17 rated critical between December 2025 and February 2026. It is secure enough if you patch weekly, keep the editor off the open internet, use 2FA, limit who can edit, and back up the encryption key.

### Should I choose n8n Cloud or self-host?
Choose Cloud if you run modest volumes and have no one to maintain a server; Starter is 20 euros and Pro 50 euros a month billed annually. Self-host for high volume, data control, or if you already have someone who can patch and back it up.

## Sources

1. [Sustainable Use License (LICENSE.md)](https://github.com/n8n-io/n8n/blob/master/LICENSE.md), n8n on GitHub
2. [n8n plans and pricing](https://n8n.io/pricing/), n8n
3. [Hosting n8n](https://docs.n8n.io/hosting/), n8n Docs
4. [Supported databases and settings](https://docs.n8n.io/hosting/configuration/supported-databases-settings/), n8n Docs
5. [Set a custom encryption key](https://docs.n8n.io/hosting/configuration/configuration-examples/encryption-key/), n8n Docs
6. [Execution data](https://docs.n8n.io/hosting/scaling/execution-data/), n8n Docs
7. [Queue mode](https://docs.n8n.io/hosting/scaling/queue-mode/), n8n Docs
8. [Securing n8n](https://docs.n8n.io/hosting/securing/overview/), n8n Docs
9. [Security advisories, n8n-io/n8n](https://github.com/n8n-io/n8n/security/advisories), GitHub
10. [GitHub Advisory Database: critical advisories affecting the n8n npm package](https://github.com/advisories?query=ecosystem%3Anpm+n8n+severity%3Acritical), GitHub
11. [VPS hosting plans (India)](https://www.hostinger.com/in/vps-hosting), Hostinger
12. [EUR to INR currency calculator (28 Nov 2026)](https://www.x-rates.com/calculator/?from=EUR&to=INR&amount=1), X-Rates
