Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 5 min read

Self-Host n8n Nod 24/7 for $19/mo (v0.8.0 Setup & Cost Math)

n8n recently open-sourced Nod (Apache 2.0), a personal AI agent that runs inside its own isolated Linux workspace and headless Chromium browser. On paper, the software is 100% free. In practice, running Nod like a true

n8n recently open-sourced Nod (Apache 2.0), a personal AI agent that runs inside its own isolated Linux workspace and headless Chromium browser. On paper, the software is 100% free.

In practice, running Nod like a true 24/7 personal assistant on a laptop hits two hidden walls immediately:

  1. The Laptop Trap: Closing your MacBook or Windows lid puts the OS to sleep and freezes your Docker containers. Your 6:30 AM cron briefings and remote Telegram commands silently fail.
  2. Frontier Browser Loops: Headless browser tasks aren't 500-token chat prompts. Reading bulky DOM snapshots and looping through tool retries averages ~40,000 tokens per run, easily burning $72 to $144/month on frontier APIs.

Here is the complete breakdown of how to pair Nod's v0.8.0 per-task model splitting with an 8 GB KVM VPS to run 24/7 for roughly $19.45/month (breaking even in Month 2).

Prefer watching? The full video walkthrough is embedded at the top of this post. All commands and cost math are written out below.

VPS used for this setup: RackNerd 8 GB KVM Plans (affiliate link, ~$10/mo on annual promo). Disclosure: I may earn a commission at no extra cost to you.

Version Note: This guide was verified on Nod v0.8.0 (Nov 16). Because Nod is an active research preview with rapid v0.9.x updates shipping frequently, always check the latest release notes in n8n-io/nod before rebuilding.

1. What Actually Runs Inside Nod

Unlike a lightweight Python script, Nod spins up a multi-container stack under the hood:

  • Core Server: Node.js + Fastify (Pi runtime, MCP, and Composio 200+ app integrations)
  • Durable State: PostgreSQL + pg-boss for memory, cron schedules, and job queues
  • Sandbox 1: An isolated Linux workspace container for file & shell execution
  • Sandbox 2: A dedicated headless Chromium container for logging into portals without APIs

It also ships with 4 built-in guardrails: an encrypted credential Vault isolated from raw prompt context, human-in-the-loop Telegram approvals before sending money or emails, a default $5/task cap, and a $200/month default budget ceiling.

2. Why You Need an Always-On 8 GB VPS (Don't Use 4 GB)

Nod has a keep-awake flag while a job is actively running, but it cannot override a closed laptop lid or OS sleep mode. For reliable morning inbox triage, scheduled web checks, and remote Telegram triggers while traveling, Nod belongs on an always-on Linux box.

Checking nod/deployment/self-host in the official repo, the recommended baseline is:

  • CPU: 2+ cores
  • RAM: 8 GB minimum
  • Storage: 50+ GB SSD (Docker images, Postgres, and Chromium add up quickly)
  • Runtime: Docker Engine 25+ (with Compose v2) & HTTPS on ports 80/443

Reality check on 4 GB servers: Do not try to squeeze Nod onto a 2 GB or 4 GB VPS if you are building from source. Running docker compose build alongside PostgreSQL and headless Chromium tabs routinely spikes memory and triggers OOM crashes. On an 8 GB KVM VPS, peak load hovers cleanly around ~4.6 GB, leaving comfortable headroom.

3. Nod v0.8.0 Model Splitting: The 24-Month Cost Math

Before v0.8.0, one expensive frontier model handled everything, including repetitive background cron jobs. Now, you can assign a dedicated Scheduled Model using a low-cost open-weight API while reserving frontier models only for high-stakes interactive prompts.

Workload Assumptions

  • Browser task average: ~40,000 tokens per run (~30k DOM input + ~10k actions/summary output)
  • Volume: 15 scheduled runs/day = 18 Million tokens/month (13.5M input / 4.5M output)

Monthly & 24-Month Comparison

Setup (18M tokens / month) API / mo VPS / mo Total / mo 24-Month Total
Laptop + Claude Opus 5.5 ($4 / $20) $144.00 $0 (sleeps) $144.00 $3,456
Laptop + Claude Sonnet 5.5 ($2 / $10) $72.00 $0 (sleeps) $72.00 $1,728
RackNerd 8 GB (Annual) + Open API $9.45 ~$10.00 $19.45 $467
RackNerd 8 GB (Monthly) + Open API $9.45 $36.59 $46.04 $1,105

Routing those 18M scheduled tokens through an open-weight API like DeepSeek v4.1 Flash ($0.30 input / $1.20 output per million) slashes the monthly API bill from $72.00 down to $9.45.

Even if you pay the $119.99/year RackNerd 8 GB KVM promo upfront (6 to 7 vCPU, 150 GB SSD, locked renewal), your token savings against Sonnet 5.5 pay off the entire first year of hosting in Month 2, saving over $1,260 across 24 months. If promotional stock is unavailable or you prefer zero annual lock-in, the standard monthly 8 GB plan ($36.59/mo, 220 GB RAID-10 SSD) still beats Sonnet every month while giving you true 24/7 uptime.

4. Step-by-Step Self-Host Setup (Ubuntu 24.04)

Step 1: Prep Docker & Firewall

SSH into your fresh Ubuntu 24.04 server, install Docker Engine 25+ with Compose v2, and lock down firewall ports:

# 1. Install Docker Engine & Compose v2
curl -fsSL https://get.docker.com | sh

# 2. Lock down UFW ports
ufw allow 22/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable

Step 2: Clone & Initialize Nod

Clone the official repository and run the setup script to generate your .env, database credentials, and Vault encryption keys:

git clone https://github.com/n8n-io/nod.git
cd nod/deployment/self-host
sh setup.sh

Step 3: Build, Launch & Verify

Build and start the containers in detached mode, waiting for health checks:

docker compose up -d --build --wait

# Verify PostgreSQL, Workspace, and Chromium are all healthy
docker compose ps

Step 4: Configure v0.8.0 Model Splitting

Open the dashboard over HTTPS (remote web browser logins require HTTPS):

  1. Add your primary frontier API key (optional, for complex interactive reasoning) and your open-weight API key.
  2. Under v0.8.0 Settings, assign your cheap open-weight model as the Scheduled Model.
  3. Pair your Telegram bot for remote control and human-in-the-loop approvals.

5. Four Real Gotchas Before You Deploy

Gotcha #1: Port 80 / 443 Collision (Bundled Caddy)

If your VPS already hosts n8n, Coolify, Traefik, or Nginx on ports 80 and 443, do not enable Nod's bundled Caddy HTTPS profile, or it will crash trying to bind the same ports.

  • Fix: Keep Caddy disabled and point your existing reverse proxy to 127.0.0.1:4310 with WebSockets enabled, or access it privately via Tailscale or an SSH tunnel.

Gotcha #2: Unmanaged VPS Backups Are on You

Low-cost KVM providers like RackNerd give you clean root Linux performance, not a managed PaaS control panel. Set up automated off-server backups for your .env file, Vault keys, and PostgreSQL volumes.

Gotcha #3: Don't Use Tiny Models on Vault / Write Actions

Even n8n notes that safety approvals are model-driven. Smaller open-weight models are noticeably weaker at spotting prompt injections buried inside untrusted emails or scraped web pages.

  • Smart Split: Use open-weight models for read-only morning briefs and web summaries; keep high-risk financial, email-sending, or Vault actions gated by a strong frontier model + Telegram approval.

Gotcha #4: Fast Release Velocity

Nod is evolving fast (v0.7 βž” v0.8 βž” v0.9+). Before running git pull && docker compose up --build, always read the latest release notes for .env or schema changes, and back up your volumes first.

Resources & Links

Are you keeping Nod on your desktop or moving it to a VPS? Drop your stack or token usage numbers in the comments below!

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.