n8n Self-Hosting Guide: Complete Setup on Hostinger

Home Blog AI & Automation n8n Self-Hosting Guide: Complete Setup on Hostinger
AI & Automation

n8n Cloud caps your executions. Self-host on Hostinger for $6.49/mo with unlimited workflows. Setup guide with security, AI workflows, and plan picks.

MS
April 7, 2026 Updated Jun 18 12 min

You built 15 workflows in n8n Cloud and everything was running smoothly. Then your Retell AI call processing workflow burned through 80% of your monthly executions in two days. Now you’re staring at n8n Cloud’s pricing page: $20/month for the Starter plan with capped executions, $50/month for Pro, $667/month for Business. Meanwhile, a Hostinger VPS running n8n costs $6.49/month with unlimited workflows and zero execution caps.

That’s the math that pushes most n8n users toward self-hosting. The tradeoff is real: you’re responsible for your own server, updates, backups, and SSL. But with Hostinger’s one-click n8n template, the setup that used to take an afternoon of Docker configuration now takes about 10 minutes.

This guide walks you through the complete n8n self-hosting setup on Hostinger, from choosing the right VPS plan to securing your instance and connecting your first AI workflow. If you’ve compared n8n against Make and Zapier and decided n8n is your tool, this is the next step.

Key Takeaways

  • Self-hosting n8n on Hostinger gives you unlimited workflows and executions for $6.49/month (KVM 2 plan, as of 2026), compared to $20-$667/month on n8n Cloud depending on usage.
  • Hostinger’s “Ubuntu 24.04 with n8n” VPS template auto-installs n8n inside Docker. No manual Docker setup, no command-line configuration for the initial install.
  • The KVM 2 plan (2 vCPU, 8 GB RAM, 100 GB NVMe) is the sweet spot for most users running 10-100 workflows. KVM 1 works for testing, but you’ll hit memory limits quickly with real workloads.
  • After setup, you still need to configure SSL, set up firewall rules, enable backups, and update n8n regularly. This guide covers all of it.
  • n8n’s self-hosted AI Starter Kit lets you run AI workflows (OpenAI, local LLMs via Ollama) on your own infrastructure with full data privacy.

Why Self-Host n8n Instead of Using n8n Cloud?

n8n Cloud is the managed version of n8n where the company handles hosting, updates, and infrastructure. It’s convenient, but the pricing model creates a ceiling that high-volume users hit fast. Self-hosting n8n on your own VPS removes that ceiling by giving you unlimited workflows and executions for a fixed monthly server cost. Here’s the honest comparison:

n8n Cloud vs Hostinger VPS pricing comparison showing cost and feature differences for self-hosting

Factorn8n CloudSelf-Hosted on Hostinger
Monthly cost$20 (Starter) to $667 (Business)$6.49-$12.99/month (as of 2026)
Workflow limitCapped by plan tierUnlimited
Execution limitCapped by plan tierUnlimited (limited only by server resources)
Data privacyData passes through n8n’s serversAll data stays on your VPS
Setup timeInstant (sign up and go)~10 minutes with Hostinger’s template
MaintenanceHandled by n8nYou manage updates, backups, SSL
Custom environmentLimitedFull control over Docker config and environment variables

The bottom line: if you’re running fewer than five simple workflows and don’t want to think about servers, n8n Cloud is fine. But the moment you need more than a handful of workflows, process sensitive client data, or run high-volume automations (webhook listeners, polling workflows, AI processing), self-hosting pays for itself in month one.

Choosing the Right Hostinger VPS Plan

Hostinger offers four KVM-based VPS plans optimized for n8n. All plans include the one-click n8n template, Docker pre-installed, and NVMe SSD storage. Here’s how they compare (pricing as of 2026, based on the 24-month billing cycle):

PlanPricevCPURAMStorageBest For
KVM 1$6.49/mo14 GB50 GB NVMeTesting and light personal use (under 10 workflows)
KVM 2$8.99/mo28 GB100 GB NVMeMost users. Handles 10-100 workflows comfortably
KVM 4$12.99/mo416 GB200 GB NVMeHeavy automation, multiple concurrent AI workflows
KVM 8$25.99/mo832 GB400 GB NVMeEnterprise-scale, queue mode with worker nodes

Our recommendation: start with KVM 2. After testing n8n on Hostinger across several setups, the KVM 2’s 8 GB RAM and 2 vCPUs handle most real-world B2B automation workloads without breaking a sweat. Multiple API calls, cached responses, and AI-generated content all run within the resource limits. You can always upgrade to KVM 4 later with a few clicks in Hostinger’s panel if your workflows grow.

Hostinger VPS plan selector for n8n self-hosting showing KVM 2 as the recommended starting point

PRO TIP

Choose a server location close to the services you’ll integrate with most. If your CRM, email provider, and most APIs are US-based, pick a US data center. Hostinger has locations across North America, Europe, Asia, and South America. Closer proximity means lower latency on API calls, which matters when workflows chain multiple requests.

Step-by-Step: Setting Up n8n on Hostinger

Here’s the complete setup process using Hostinger’s one-click template. Total time: roughly 10-15 minutes.

Step 1: Purchase Your VPS Plan

Go to Hostinger’s n8n hosting page and select your plan (KVM 2 recommended). During checkout, choose your billing period (24 months gets the best rate), pick your server location, and create your account. Hostinger offers a 30-day money-back guarantee, so there’s no risk in testing.

Step 2: Apply the n8n Template

After purchasing, log into Hostinger’s hPanel and navigate to the VPS section. Click “Manage” on your VPS. Then go to OS & Panel > Operating System. Search for “n8n” and select the “Ubuntu 24.04 with n8n” template. Click “Change OS” and confirm.

This template auto-installs Ubuntu 24.04, Docker, Docker Compose, and n8n inside a Docker container. The entire process takes two to three minutes. Hostinger also offers an “Ubuntu 24.04 with n8n (queue mode)” template for high-volume setups that need worker nodes to process workflows asynchronously.

n8n self-hosting setup flow on Hostinger showing VPS template Docker container and live n8n instance

Step 3: Access Your n8n Instance

Once the template finishes installing, go back to your VPS Overview page and click “Manage App.” This opens your n8n instance in a browser. You’ll see a registration screen where you create your admin account: enter your name, email, and a strong password. Click through the setup prompts, and you’ll land on the n8n dashboard.

Your n8n instance is now live at https://n8n.[your-vps-hostname]. You can start building workflows immediately.

Step 4: Set a Root Password and Access SSH

For server management beyond n8n’s interface, you’ll need terminal access. In hPanel, go to your VPS settings and set a root password if you haven’t already. You can access the terminal two ways:

  • Browser terminal: Click “Terminal” directly in Hostinger’s hPanel. No SSH client needed.
  • SSH client: Use a tool like Termius or PuTTY to connect via SSH. Your VPS IP address is shown in the hPanel overview. Connect as root@your-vps-ip.

Step 5: Configure Environment Variables

n8n’s behavior is controlled through environment variables in the Docker Compose file. To customize your setup, SSH into your VPS and edit the configuration:

  1. Connect via SSH or browser terminal
  2. Open the Docker Compose file: nano /root/docker-compose.yml
  3. Find the environment section under the n8n service
  4. Add or modify variables as needed
  5. Save the file (Ctrl+X, then Y, then Enter)
  6. Apply changes: docker compose up -d

Common environment variables you’ll want to set:

  • N8N_HOST: Your domain or subdomain (if using a custom domain)
  • WEBHOOK_URL: Required if you use webhooks with a custom domain
  • GENERIC_TIMEZONE: Set to your timezone (e.g., “America/New_York”)
  • N8N_PORT: Default is 5678, change if needed

Securing Your n8n Instance (Don’t Skip This)

A fresh n8n install on a VPS is functional but not hardened. If you’re running business automations with API keys, OAuth tokens, and client data, security isn’t optional. Here’s what to configure immediately after setup.

n8n self-hosting security checklist showing firewall HTTPS backups and secret management

Enable Firewall Rules

In Hostinger’s hPanel, go to Firewall and enable it. At minimum, allow these ports and block everything else:

  • Port 22 (SSH): For terminal access. Consider restricting to your IP address only.
  • Port 443 (HTTPS): For secure web access to n8n.
  • Port 5678 (n8n): The default n8n port. If you’re using a reverse proxy with SSL, you may not need this exposed directly.

Set Up SSL/HTTPS

n8n requires HTTPS for secure operation. If you’re using Hostinger’s default hostname, SSL is typically handled automatically. If you’re pointing a custom domain to your VPS, you’ll need to configure SSL manually using Let’s Encrypt and a reverse proxy like Caddy or Nginx. Hostinger’s n8n self-hosting tutorial covers the full SSL setup process.

Enable Backups

Hostinger includes free automatic weekly backups on all VPS plans. However, for production n8n instances, consider enabling Hostinger’s daily auto-backup add-on ($6/month) or setting up your own backup script that exports your n8n data directory regularly. Your workflows, credentials, and execution history live in Docker volumes. If the server fails and you don’t have backups, you lose everything.

IMPORTANT

Store sensitive values like API keys and OAuth tokens in a .env file in the same directory as your docker-compose.yml, then reference them as ${SECRET_NAME}. Docker Compose substitutes them automatically, keeping your secrets out of the main config file. This matters if you ever share your configuration or commit it to version control.

Updating n8n on Hostinger

n8n releases updates frequently with new nodes, bug fixes, and security patches. Updating your self-hosted instance takes three commands via SSH:

  1. Pull the latest version: docker compose pull
  2. Stop the current container: docker compose down
  3. Restart with the new version: docker compose up -d

Your workflows and data are stored in Docker volumes, not inside the container itself. So updating the container doesn’t delete your workflows. However, always take a backup before updating, just in case. Check the n8n hosting documentation for release notes before applying major version updates.

Connecting n8n to AI Workflows

One of the strongest reasons to self-host n8n is running AI-powered automations without execution caps or data privacy concerns. n8n offers a self-hosted AI Starter Kit that bundles n8n with compatible AI components for building workflows that use large language models. n8n is the workflow engine; the AI marketing tools that run on top of your workflows (content, SEO, outreach, ads, intent) are profiled separately.

Once your n8n instance is live, the next step is identifying which workflows to build — our business process automation guide covers how to prioritize by ROI.

What You Can Build

With a self-hosted n8n instance on Hostinger, you can connect to OpenAI’s API, Anthropic’s API, or run local LLMs through Ollama for fully private AI processing. Some practical B2B automations:

  • AI-powered lead enrichment: Trigger on new CRM contact, use OpenAI to research the company, append enriched data back to HubSpot or Salesforce
  • Automated content summarization: Pull RSS feeds or Slack messages, summarize with GPT, post to a team channel
  • AI chatbot backend: Connect WhatsApp or web chat to n8n, route messages to OpenAI for responses, log conversations in your CRM
  • Document processing: Extract data from uploaded PDFs using AI, populate spreadsheets or databases automatically

Example n8n AI workflow connecting a trigger to AI processing and CRM update on a self-hosted Hostinger VPS

For AI workflows specifically, the KVM 2 plan handles API-based AI calls (OpenAI, Anthropic) without issues since the heavy processing happens on the AI provider’s servers. If you want to run local LLMs with Ollama, upgrade to KVM 4 or KVM 8 for the additional RAM and CPU.

n8n Self-Hosting vs n8n Cloud: Cost Comparison at Scale

The cost advantage of self-hosting grows as your usage increases. Here’s what the math looks like for a B2B team running real automation workloads:

Scenarion8n Cloud CostHostinger VPS CostAnnual Savings
10 workflows, light use$20/mo (Starter)$6.49/mo (KVM 1)$162/year
50 workflows, moderate use$50/mo (Pro)$8.99/mo (KVM 2)$492/year
100+ workflows, heavy use$667/mo (Business)$12.99/mo (KVM 4)$7,848/year

At 100+ workflows, self-hosting saves nearly $8,000 per year. Even at 50 workflows, the savings cover the cost of a nice SaaS tool for your team. The only scenario where n8n Cloud makes more financial sense is if your time is worth significantly more than the cost difference, and you have zero capacity to run three update commands once a month.

Troubleshooting Common Issues

n8n Won’t Load After Template Installation

Wait two to three minutes after applying the template. The Docker container needs time to pull the image and start. If it still won’t load after five minutes, SSH in and check: docker compose logs n8n to see error messages. The most common cause is a port conflict or DNS not yet propagating.

Workflows Stop Running When You Close the Browser

This shouldn’t happen on a VPS since Docker runs in the background. If workflows stop, check that the container is running: docker ps. If the container isn’t listed, restart it: docker compose up -d. Also verify your VPS hasn’t been suspended due to billing issues.

Running Out of Memory

If n8n crashes or workflows fail with memory errors, your plan may be undersized. Check memory usage with free -m or Hostinger’s monitoring dashboard. If you’re consistently above 80% RAM usage, upgrade to the next VPS tier. You can also set resource limits in your docker-compose.yml to prevent n8n from consuming all available memory.

n8n self-hosting troubleshooting triage map for loading workflow and memory issues

Frequently Asked Questions

Yes. n8n is open-source and designed for self-hosting. You can install it on any Linux server using Docker or npm. Hostinger simplifies this with a one-click VPS template that pre-installs n8n inside a Docker environment on Ubuntu 24.04, so you don’t need to configure Docker or the server manually. The self-hosted community edition includes unlimited workflows and executions.

Hostinger is one of the best options for n8n self-hosting because they offer purpose-built n8n VPS templates, competitive pricing starting at $6.49/month, NVMe SSD storage for fast execution, and a built-in AI assistant (Kodee) that helps with server management. Their KVM 2 plan is specifically recommended by multiple review sites as the sweet spot for most n8n users.

The KVM 2 plan ($8.99/month as of 2026) is the best choice for most users. It provides 2 vCPU cores, 8 GB RAM, and 100 GB NVMe storage, which comfortably handles 10-100 workflows with multiple API integrations. Start with KVM 1 ($6.49/month) only for testing. Upgrade to KVM 4 ($12.99/month) if you run AI workflows with local models or have 100+ concurrent automations.

Hostinger’s n8n VPS plans range from $6.49/month (KVM 1, 1 vCPU, 4 GB RAM) to $25.99/month (KVM 8, 8 vCPU, 32 GB RAM) on the 24-month billing cycle. The most popular plan is KVM 2 at $8.99/month. Optional add-ons include daily auto-backup at $6/month. All plans include the one-click n8n template, Docker support, and 30-day money-back guarantee. Prices are as of 2026 and may change.

Yes. n8n’s self-hosted AI Starter Kit works on Hostinger VPS. For API-based AI workflows (OpenAI, Anthropic), the KVM 2 plan is sufficient since processing happens on the AI provider’s servers. For running local LLMs via Ollama, you’ll need at least the KVM 4 plan (16 GB RAM) to handle the model’s memory requirements alongside n8n itself.

Build Your First Workflow

Your n8n instance is running, secured, and ready. Here’s what to do next: open n8n, click “New Workflow,” and build something simple first. Connect Gmail to Slack (send new email notifications to a channel) or set up a scheduled workflow that checks an API daily. Once you’re comfortable with the basics, explore n8n’s workflow template library for more complex automations. If you want to see how n8n fits into a broader AI agents and RevOps strategy, that guide covers the strategic context for automation in revenue operations.

Share
MS
Written by
Mahesh Sirvi
Founder, Ivris Tech
Started in sales, moved into B2B demand generation — ABM, lead scoring, BANT, and pipeline operations. Now focused on technical SEO, AI workflows, and n8n automation. Writes about B2B strategy, AI & automation, and MarTech at Ivris Tech from hands-on experience. MBA in Business Analytics. Still learning, still building.

Get B2B marketing insights weekly

Strategies, frameworks, and tools — no fluff. Join operators who read Ivris Tech.

No spam. Unsubscribe anytime.
Link copied!