Skip to content

How-to

Homelab checklist ​

This checklist takes a nocturn that runs from a first test to one you leave running for a household. Work through it once; each item says why it matters and links to the how.

Keep it reachable ​

Do thisWhy
1Run it as a service: Docker with restart: unless-stopped, or a systemd unit for the binaryagents and watches run only while the daemon does
2Keep the health check: the image has one; elsewhere probe nocturn health or GET /healthzyou learn when it stops
3Pin a version (ghcr.io/efuturetoday/nocturn:<version>) and update on purposean update is a choice, not a surprise (Updates)

Encrypt what leaves the house ​

Do thisWhy
4Reach it from outside only through a VPN or an HTTPS reverse proxy, never by forwarding port 8080the daemon has no TLS: chats, approvals and device credentials would travel in clear
5Run the proxy on the daemon's machine and allow its name with NOCTURN_HOSTNAMESonly a proxy on the same machine is trusted for typing secrets (Remote access)
6Bind to one interface when the machine has several: NOCTURN_HOST, or 127.0.0.1 behind a local proxyit listens on every interface by default
7To publish only MCP, forward /mcp and no other pathan MCP client needs nothing else

Protect the keys ​

Do thisWhy
8Set NOCTURN_MASTER_PASSPHRASE to a long passphrase and keep a copy outside the machinewithout it there is no vault; lost, the vaults cannot be opened again
9Keep secrets in Vaultwarden with an account of nocturn's own that reads one collectiontaking an item out takes the secret back (Connect Vaultwarden)
10Give every Vaultwarden item an https:// URI with its hostan item without a host cannot be used
11Point Vaultwarden at its https:// addressthe daemon refuses plain http:// to anything but its own machine

Back it up ​

Do thisWhy
12Back up all of nocturn-data/: workspaces/, devices.json, master.salteverything nocturn keeps is in that one folder
13Stop the daemon while you copy, or copy from a snapshotfiles written mid-copy may not match
14Keep master.salt with the backup and the passphrase apart from ita restore needs both; one alone opens nothing
15Never rename a workspace's folderits encrypted files are keyed to the name
sh
docker compose stop nocturn
docker run --rm -v nocturn_nocturn-data:/data -v "$PWD":/backup alpine \
  tar czf /backup/nocturn-data.tgz -C /data .
docker compose start nocturn

Keep control ​

Do thisWhy
16Keep at least one phone paireda browser cannot be woken for approvals
17Forget a lost phone under Settings › Devicesit loses access at once
18Set tools that must never run unseen to Always ask (http_write, mail_send)no answer can keep an allow there (Make a tool always ask)
19Give agents targets, not tools: allow *.home.example, not *an agent's reach stays what you meant
20Look at Permissions under Changed and Allowed now and thenanswers add up (Review what you allowed)

Watch it ​

Do thisWhy
21Set NOCTURN_METRICS_TOKEN and scrape GET /metrics with that bearerPrometheus sees the daemon and its version
22Read the log with docker compose logs nocturn or your service managerrefusals, failed MCP servers and timeouts are logged

nocturn is open source. Example hosts and people on these pages are made up.