What n8n actually needs
n8n doesn't publish a minimum hardware spec for self-hosting, but its docs tell you enough to size a box. Its benchmark page reports up to 220 workflow executions per second from a single n8n instance in main mode with a Postgres database, on an AWS c5a.large with 4 GB of RAM. A home lab or small team runs a tiny fraction of that, so CPU is almost never what holds you back.
Memory is. n8n's guide to memory problems lists what drives usage. That's the amount of JSON data, the size of binary data, the number of nodes in a workflow, how many executions run at once, the Code node (which it says can increase memory use significantly), and manual executions, which copy the data for the editor. Its fixes are to split data into smaller chunks, use sub-workflows, and raise Node's heap limit with `--max-old-space-size` through `NODE_OPTIONS`. In practice, 8 GB of RAM is enough for n8n alone, 16 GB is comfortable, and 32 GB lets the same box carry Postgres, Redis and other containers.
Use Docker, then pick SQLite or Postgres
Install n8n with Docker. The documented command maps port 5678 and keeps data in an `n8n_data` volume mounted at `/home/node/.n8n`. The npm route requires Node.js 20.19 to 24.x, is deprecated from n8n 3.0, and n8n's own docs call it not safe for production. n8n is also candid about the job. It says self-hosting takes technical knowledge, including setting up servers and containers, managing resources and securing the server, and that mistakes can lead to data loss, security issues and downtime. Plan backups from day one.
By default n8n stores credentials, workflows and execution history in SQLite. It also supports PostgreSQL, currently versions 16, 17 and 18. SQLite is fine for a single-user box. Postgres is the better long-term home if you'll keep a lot of execution history or scale out later. Either way, put the database on an SSD.
Node-RED, Huginn and Activepieces
- Node-RED is flow-based programming that runs on Node.js. Node-RED 5.x needs Node.js 22 or later, 4.x needs Node.js 18, and the project currently recommends Node 24. It's light enough to share a box with everything else here, and it also installs as an app inside Home Assistant OS.
- Huginn calls itself a hackable version of IFTTT or Zapier on your own server, with agents that monitor and act on your behalf. The quickest route is its official Docker image.
- Activepieces calls itself an open source replacement for Zapier. The Community Edition is MIT-licensed, and the recommended self-hosted production setup is Docker Compose with PostgreSQL and Redis, which is a good reason to buy a box that takes 32 GB.
Cron, systemd timers and plain scripts
Not every automation needs a platform. A shell or Python script on a systemd timer or cron schedule is the lightest automation there is, and an always-on mini PC is the natural place to run it. Think nightly backups, scraping a price, renaming downloads or pinging a health check. When a script grows branches, retries and credentials, move it into n8n or Node-RED. If the automation needs an AI agent that writes code or browses the web, see the always-on AI agent server page. For a local model inside workflows, see local LLMs on a mini PC.
Webhooks without opening your router
Many workflows start from a webhook, so something on the internet has to reach your box. Don't forward a port. Cloudflare Tunnel's `cloudflared` connects outbound to Cloudflare, so you need no publicly routable IP and can block all inbound traffic. Tailscale Funnel exposes a local service to the internet on port 443, 8443 or 10000 over TLS, and it's available on all Tailscale plans. Keep n8n's editor UI private (LAN or Tailscale only) and expose only the webhook path.
Mini PC vs cloud hosting
A small VPS is the alternative, and it wins on public uptime and a static IP. A mini PC wins on monthly cost, since there isn't one beyond electricity, and it keeps the credentials for your email, CRM and bank-feed integrations at home. At the 12 to 15 W an M920q draws at idle, the yearly electricity estimate on this page stays small. If you also want to run network services or a Proxmox homelab, one 32 GB tiny can host all of it.
ThinkCentre vs OptiPlex vs EliteDesk compares the big three business brands, and the buying checklist covers what to check on any used unit.









































