5 Best Cheap VPS for n8n and AI Agents

Cheap VPS hosting for self-hosted n8n and AI agents compared: Hostinger, Hetzner, Contabo, DigitalOcean and Oracle's free tier, by RAM, price and setup.

A server with a lightning bolt on a web services gradient background

Here is a list of best cheap VPS providers for n8n and AI agents. Self-hosting n8n gives you unlimited workflows and executions for the price of a small server, and the same server can run AI agent tools, a database or a small model with Ollama.

What matters for these workloads is different from website hosting. You need enough RAM (n8n and agents are memory-hungry, CPU usage is usually low), a server that’s always on, and ideally a one-click template so you don’t have to install Docker and n8n by hand. I compared five providers on exactly those points.

This post contains affiliate links. See our affiliate disclaimer.

How Much Server Do You Need?

  • 2GB RAM: n8n alone with a few light workflows. Tight, but it works.
  • 4GB RAM: the comfortable minimum for n8n with regular use, including workflows that call AI APIs.
  • 8GB RAM or more: n8n plus a database, several agent tools, or small local AI models.

CPU matters less: automations spend most of their time waiting for APIs. One or two vCPUs are enough unless you run local models.

Top Pick:

Hostinger is the easiest choice: its n8n template installs n8n in Docker for you, and the KVM 1 plan gives 4GB of RAM for a low price, if you prepay 24 months. Developers comfortable with the command line get more flexibility from Hetzner, which bills by the hour, and Contabo gives the most RAM for the money.

Comparison Table:

Prices as of September 30, 2026, for the smallest plan with at least 4GB of RAM.

Provider Plan vCPU / RAM / Storage Price Commitment One-click n8n
Hostinger KVM 1 1 / 4GB / 50GB NVMe $6.49/mo (renews $11.99) 24 months ✓
Hetzner CX23 2 / 4GB / 40GB NVMe TODO Hourly billing TODO VERIFY
Contabo Cloud VPS 4 4 / 8GB / 100GB SSD €5.50/mo TODO VERIFY x
DigitalOcean Basic Droplet 2 / 4GB / 80GB SSD $24/mo Per-second billing TODO VERIFY
Oracle Cloud Always Free A1 2 OCPU / 12GB / 200GB total Free None x

Hostinger

Hostinger is the most beginner-friendly option here, because n8n comes pre-installed. When you create the server, you choose the Ubuntu 24.04 with n8n template, and a few minutes later you open n8n from the hPanel dashboard and create your owner account. There are also templates for n8n in queue mode (for heavy workloads) and n8n with 100+ pre-made workflows, as well as templates for Ollama, Docker and popular AI agent tools. I cover the full setup in how to self-host n8n on a VPS.

The KVM 1 plan (1 vCPU, 4GB RAM, 50GB NVMe, 4TB bandwidth) costs $6.49/month on a 24-month term and renews at $11.99/month. KVM 2 (2 vCPU, 8GB RAM, 100GB NVMe) is $8.99/month, renewing at $14.99/month. Shorter terms are more expensive per month.

Pros Cons
n8n, Ollama and AI agent templates Best price needs a 24-month prepayment
Browser-based dashboard, no command line needed to start Renews at almost double the promo price
Good RAM for the price Only 1 vCPU on the entry plan

See Hostinger VPS plans

Hetzner

Hetzner is a German hosting company popular with developers for its low prices and reliable network. Its cloud servers are billed by the hour with a monthly cap, so you can create a server to try something and delete it an hour later for a few cents. The CX23 plan has 2 vCPUs, 4GB of RAM, 40GB of NVMe storage and 20TB of traffic. There are also Arm-based CAX plans with the same resources.

Hetzner’s data centers are in Germany, Finland, the USA and Singapore. You set up n8n yourself with Docker Compose, following n8n’s documentation, which takes some command-line comfort.

Pros Cons
Hourly billing, no long commitment No managed n8n template (TODO VERIFY)
Generous 20TB of traffic Account verification can be strict for new customers
Strong reputation with developers Fewer locations than big cloud providers

Home Page

Contabo

Contabo gives the most resources for the money: the Cloud VPS 4 plan has 4 vCPUs, 8GB of RAM and 100GB of SSD storage for €5.50/month (including VAT), with unlimited traffic under a fair-use policy. That much RAM leaves room for n8n, a database and small local AI models on one server.

The trade-off is performance consistency and support. Independent benchmarks and user reviews commonly report slower disks and CPUs than the specs suggest, and slower support than the other providers here. For automations that mostly wait on APIs, that matters less than it does for websites.

Pros Cons
Most RAM and CPU for the price Performance is less consistent
Many data center locations Slow support, by many user reports
Unlimited traffic (fair use) No one-click n8n template

Home Page

DigitalOcean

DigitalOcean is the most polished developer platform on this list, with excellent documentation, a clean dashboard, managed databases and per-second billing. It is also the most expensive: a Basic Droplet with 2 vCPUs and 4GB of RAM costs $24/month, and the 2GB plan is $12/month.

Choose DigitalOcean if you value its ecosystem and reliability over price, or if you already use it for other projects. New accounts often get free trial credit, which is enough to test n8n for a while.

Pros Cons
Excellent documentation and dashboard Two to four times the price for the same RAM
Per-second billing Smaller RAM per dollar
Managed databases and backups available

Home Page

Oracle Cloud Always Free

Oracle Cloud’s Always Free tier includes Arm-based Ampere A1 compute equal to 2 OCPUs and 12GB of RAM, which you can use as one server or split into two, plus 200GB of block storage and 10TB of outbound traffic per month, all at no cost. On paper it beats every paid plan here.

In practice there are real catches. Free A1 capacity is often unavailable in popular regions, so creating the server can take many attempts. And Oracle may reclaim idle Always Free instances: if, over 7 days, CPU, network and memory use all stay under 20%, the server can be stopped. A lightly used n8n server can easily look idle by that definition. Upgrading the account to pay-as-you-go (while staying within the free limits) is commonly reported to avoid reclamation.

Pros Cons
Completely free, with 12GB of RAM Free capacity often unavailable
10TB of outbound traffic Idle servers may be reclaimed
Arm CPUs run n8n and Docker fine Complex console for beginners

Home Page

Final Thoughts:

If you want n8n running today without touching the command line, Hostinger’s n8n template is the quickest route, and KVM 1’s 4GB of RAM is plenty for personal automations. If you prefer monthly or hourly billing and don’t mind a Docker setup, Hetzner is excellent value, and Contabo is the budget pick when you need lots of RAM for AI tools. DigitalOcean costs more but is the most polished, and Oracle’s free tier is worth a try for experiments, as long as you don’t depend on it for anything important.