FIELD REPORT
How to run n8n's Nod 24/7 on a Mac mini in 1 hour (full setup)
·
Grok Bot is easy. Hermes is work.
I wanted the first without the second. Nod got close, but it stops when your laptop sleeps. So I gave it a Mac mini.
Nod is n8n Labs’ open-source AI assistant, out as a research preview since 10 November. This is how mine runs: Docker on a Mac mini, a private HTTPS address over Tailscale, an encrypted nightly backup and a restore I actually tested. It took me an hour, with my coding agent typing the commands.
Why Nod: easy like Grok Bot, mine like Hermes
Grok Bot was the easy one. In August I had about 20 agents on it, on my Mac mini, laptop and phone. On 29 August the quota ran out for every one of them at once, because they all draw from one pool.
Hermes was the powerful one. I hosted it myself: three gateways, a dashboard and a watchdog, an 8-model fallback chain and 48 scheduled jobs. Keeping it alive became a job. On 28 October I switched it all off, and on 14 November I stopped using it.
Nous now hosts Hermes for you, as Hermes Cloud. That removes the upkeep, but the agent and its memory live on their servers. I wanted mine at home.
Nod sits in between. Its desktop app walks you through a few setup screens. It works with the model you connect, from a ChatGPT plan to MiniMax or OpenRouter. And it runs on your own machine, which is also its one catch.
The catch: Nod sleeps with your laptop
Nod’s docs say it plainly. A desktop install runs schedules and background work “only while Nod is open and your computer is awake.”
A run that comes due while Nod is stopped “runs once when Nod is running again.” So a 7:00 brief on a sleeping laptop runs after you wake it, not at 7:00. Nod’s desktop release of 16 November stops idle sleep while local work runs, but closing the lid still puts the computer to sleep, and a schedule needs it awake when it comes due.
The docs’ answer is a server. A self-hosted one “keeps running after you close its web or desktop client, provided the server stays awake and connected.” A Mac mini can be that server.
What you need
A Mac mini, Docker Desktop and Tailscale. Nod’s Mac mini page says to start with 8 GB of memory for Docker and 50 GB of free disk. I gave Docker 4 CPUs and 8 GB.
Budget disk for the build too. After my first build, Nod’s images took 4.7 GB and Docker’s build cache another 8.2 GB. docker builder prune gives the cache back.
You need no model key to install. You connect a model once the server is up. Tailscale was already on my Macs; if it isn’t on yours, set it up first.
Install the stack
I built Nod from source, at commit df4cd601. Pin yours too: by the next night, Nod’s main branch was 53 commits past the one I installed.
It takes three commands. Clone the repo, then run sh setup.sh. It writes a private .env with a server token, a Vault key and a database password, and never prints them.
Then docker compose up -d --build --wait builds and starts everything. The first build takes a few minutes.
That .env already binds Nod to 127.0.0.1 and turns analytics off. The one line I changed was NOD_PUBLIC_URL, set to the private address from the next step.
When the command returns, six containers are running. The server is Nod itself and the only one with a port. Postgres keeps conversations, settings and schedules.
The workspace is Nod’s own Linux computer for files and commands, behind a small firewall container. The browser is where it opens websites. The runtime is a narrow Docker connection that lets the server run commands only in those two.
Reach it privately
The server token opens everything. In Nod’s words, it “grants full access to that person’s assistant and connected accounts.” So I kept Nod off the internet.
The Mac mini page offers two private ways in: an SSH tunnel, or an HTTPS proxy you reach over a VPN. Tailscale Serve is that proxy in one command, tailscale serve --bg 4310. It gives the mini an HTTPS address that only devices on my tailnet can open, and Nod’s own port answers only on the mini itself.
That exact address goes into NOD_PUBLIC_URL. Then I checked it: no token gave 401, a wrong token 401, the right token 200.
Connect your laptop and phone
On the laptop, the Nod app has “Connect to a server.” Paste the address and the token. The app keeps the token in the system’s secure storage, and closing the app does not stop the server.
What it shows first is the server’s own setup: connect a model there. It is the server’s first run, not a second assistant.
On the phone, Telegram is the quick way in. It needs no open port, because Nod reaches Telegram over an outbound connection. Safari also works at the same address while Tailscale is on. App sign-ins go through that address as well; mine are Gmail, Drive and Sheets.
Keep it alive
Three settings keep Nod up without me. Every container has restart: unless-stopped. Docker Desktop starts when I sign in. And sudo pmset -a autorestart 1 turns the Mac back on after a power cut.
The mini’s sleep timer was already off. If yours isn’t, sudo pmset -a sleep 0 turns system sleep off.
The catch is the order. Docker starts after sign-in, not at boot, and my auto-login is off. So after a power cut, someone has to sign in before Nod comes back.
Nod’s own docs say the same, and add that FileVault keeps automatic login off on a Mac. Plan on typing that password after every restart.
Back it up, then prove the restore
Nod ships backup.sh. It stops the server, browser and workspace while it copies, then starts them again. The copy includes .env, so it holds the server token, the Vault key and the database password. The docs say to store it encrypted: without the original Vault key, saved credentials can’t be recovered.
Mine runs every night at 04:20 from launchd. It calls backup.sh, encrypts the result with age, decrypts it once to check it and keeps the newest 7, in a folder my cloud backup already copies off the Mac.
A backup you have never restored is a guess, so I restored one. I decrypted the first backup, made a fresh checkout at the same commit and ran restore.sh under a new project name. Decrypting and checking out took 1 second, the restore 6 seconds, and 50 of 50 tables came back.
By then the live database had 56 tables. The 6 extra appeared when I connected Telegram after that backup. So run a backup again after every setup change.
I never started the restored copy. The docs warn that two copies “can run the same schedules or receive messages for the same bot.” Mine would have polled the same Telegram bot. I deleted the drill copy, and the live server kept running through all of it.
The numbers so far
On the first evening, the six containers used about 1.1 GB of memory. The server took 535 MiB, the browser 456 MiB and Postgres 110 MiB. The data volumes held 84 MB.
My first 7:00 brief, my Gmail and the day’s AI news, started at 07:00:02 and was in the app at 07:06:09. The first nightly backup had run at 04:20 that morning and came to about 4 MB encrypted, up from 41 KB at setup. Through that first night no container exited or restarted.
What broke
Nothing serious, but each of these cost me time:
- Two Docker engines. I also had Homebrew’s
dockercommand and Colima. Thedockerfirst on your PATH decides which engine you talk to, so I unlinked Homebrew’s. Nod’s Mac mini page assumes Docker Desktop. - Two steps need your Mac password: installing Docker Desktop and
pmset. My agent could not do those alone. - “This host is not permitted.” Once
NOD_PUBLIC_URLwas the HTTPS address, Nod refused 127.0.0.1 with a 403. It answers at that one address only. Nod documented the error the same night. - The health check wants the token.
/api/healthanswered 401 without it, so an uptime check must send the token or count a 401 as up. - My laptop’s agent blamed Tailscale. The first coding agent I tried there had no network at all, not even example.com, and it offered to reinstall Tailscale. Tailscale was fine. If an agent says your server is unreachable, test a public site from the same session first.
- Memory doubled after onboarding: about 550 MB right after the first start, about 1.1 GB that evening.
Which one should you pick?
Pick Grok Bot if you want the least setup and can live with its cloud, its choice of model and one shared quota.
Pick Hermes if you want every knob. Run it yourself if you enjoy that, or pay Nous to run it in Hermes Cloud.
Pick Nod on a Mac mini if you want your assistant at home, on the model you choose, and can give it an hour and a tested backup. My upkeep log from the first day: one Docker restart by hand, and a laptop app that lost its connection to the server more often than I liked. The server never went down by itself.
Copy this
This is my setup, pinned to commit df4cd601 on macOS. Replace every <...> with your own value. Docker Desktop and pmset ask for your Mac password.
# 1. Docker Desktop. In its settings: start at sign-in, 8 GB of memory.
brew install --cask docker-desktop
# 2. A private HTTPS address on your tailnet. It prints the address.
tailscale serve --bg 4310
# 3. Nod, cloned into your home folder (the backup below expects ~/nod)
cd ~
git clone https://github.com/n8n-io/nod.git
cd nod/deployment/self-host
git checkout df4cd601
sh setup.sh
The .env lines that matter. setup.sh fills in the last three; never share them.
PORT=4310
NOD_BIND_ADDRESS=127.0.0.1
NOD_PUBLIC_URL=https://<your-mac>.<your-tailnet>.ts.net
NOD_ANALYTICS_ENABLED=false
NOD_AUTH_TOKEN=<generated>
NOD_VAULT_KEY=<generated>
NOD_POSTGRES_PASSWORD=<generated>
Start it, keep the Mac on, and look at what you have:
docker compose up -d --build --wait
sudo pmset -a sleep 0 autorestart 1
docker compose ps
docker system df
My nightly backup, trimmed. Run it from launchd at 04:20, and keep the age identity that decrypts it in your password manager. Mine is in pass.
#!/bin/bash
set -euo pipefail
export PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
STACK="$HOME/nod/deployment/self-host"
DEST="$HOME/Backups/nod"
TS=$(date -u +%Y%m%dT%H%M%SZ)
WORK=$(mktemp -d)
mkdir -p "$DEST"
# Docker Desktop starts only after sign-in, so wait for it
for _ in $(seq 1 30); do docker info >/dev/null 2>&1 && break; sleep 10; done
sh "$STACK/backup.sh" "$WORK/nod-$TS"
tar -C "$WORK" -czf - "nod-$TS" | age -r <your-age-public-key> -o "$DEST/nod-$TS.tar.gz.age"
rm -rf "$WORK"
# check that it decrypts and holds the database dump
pass show <your-age-identity-entry> | age -d -i - "$DEST/nod-$TS.tar.gz.age" | tar -tzf - | grep -q "nod-$TS/postgres.dump"
# keep the newest 7
ls -1t "$DEST"/nod-*.tar.gz.age | tail -n +8 | while read -r old; do rm -f "$old"; done
The restore drill. It restores into its own project and starts only that project’s database, so the copy never runs as a second assistant.
mkdir -p ~/nod-drill/backup
pass show <your-age-identity-entry> | age -d -i - ~/Backups/nod/nod-<TS>.tar.gz.age | tar -xz -C ~/nod-drill/backup
git clone https://github.com/n8n-io/nod.git ~/nod-drill/checkout
cd ~/nod-drill/checkout && git checkout "$(cat ~/nod-drill/backup/nod-<TS>/source-commit)"
cd deployment/self-host
sh restore.sh ~/nod-drill/backup/nod-<TS> nod-drill
# count the tables in the drill's database only
docker compose -p nod-drill up -d --wait postgres
docker compose -p nod-drill exec -T postgres psql -U nod -d nod -tAc "select count(*) from information_schema.tables where table_schema='public'"
# delete the drill project and its files, never your live one
docker compose -p nod-drill down --volumes
cd ~ && rm -rf ~/nod-drill
Where does your always-on agent live today: in someone’s cloud, or on a box you own?
One email a week with each new field report, plus Agent Checklists, my free 37 page starter AGENTS.md and habits guide.
Instant PDF download on the next page. Unsubscribe any time.