Reference
nvto-node CLI reference
nvto-node is the node-side program. It checks a Mac against the requirements, enrolls it with the platform, and then keeps it reported, measured and reachable for the renter who holds its lease. It runs on macOS on Apple silicon. The NVTO Node app ships it and runs it for you, adding the virtual machine each lease is given; on its own, it forwards renters to the Mac itself, and a node run that way is never put on the market. This page is the complete reference, written from the program's source: every command and flag, the files it keeps, its timers and what it logs. For a guided first run, read the owner quickstart.
Synopsis
nvto-node check
nvto-node enroll -api URL -token TOKEN [-name NAME] [-dir DIR] [-force]
nvto-node run [-dir DIR] [-paused] [-ssh-target ADDR] [-vnc-target ADDR] [-machine-cpus N -machine-memory-gb N -machine-disk-gb N] [-events]
nvto-node status [-dir DIR]
nvto-node service install [-dir DIR] [-- RUN_FLAGS]
nvto-node service uninstall
nvto-node service status
nvto-node version- The first argument is the command. Flags follow it, in the form
-flag valueor-flag=value; two dashes work as well as one. -hafterenroll,run,statusor aservicesubcommand lists its flags and exits with status 0.- Run with no command or an unknown one, it prints
usage: nvto-node <check|enroll|run|status|service|version> [flags]and exits with status 2.
check
Reads this machine's hardware and system, prints them, and reports whether they meet the minimum requirements. It takes no flags, needs no enrollment and contacts nothing.
$ nvto-node check
this machine: Apple M4 (arm64, desktop), 10 cores, 16 GB memory, 228 GB disk (171 GB free), macOS 15.1
meets the minimum requirements to be a NVTO node| Requirement | Message |
|---|---|
| Apple silicon | Apple silicon (M1 or later) is required; this machine is "<arch>" |
| macOS 15 | macOS 15 or later is required; this machine runs "<version>" |
| 8 CPU cores | at least 8 CPU cores are required; this machine has <n> |
| 16 GB memory | at least 16 GB of memory is required; this machine has <n> GB |
| 256 GB disk | a disk of at least 256 GB is required; this machine has <n> GB |
| 100 GB free | at least 100 GB of free disk space is required; this machine has <n> GB free |
| Desktop | laptops cannot be nodes: they sleep when closed and cannot stay online; use a Mac mini, Mac Studio or other desktop Mac |
Exit status 0 if the machine qualifies, 1 if any line is printed. Disk figures are for the data volume, in binary gigabytes; a disk that reports 220 or more passes the 256 GB check.
enroll
Registers this machine as a node of the account that created the enroll code, and writes the node's identity to the state directory.
| Flag | Type | Default | Meaning |
|---|---|---|---|
-api | string | $NVTO_API; required | The platform API URL, https://app.nvto.com. It is saved in the identity and used by run from then on. |
-token | string | $NVTO_ENROLL_TOKEN; required | The one-time enroll code from Add a machine in the console. Valid 30 minutes, single use. |
-name | string | The machine's hostname | Display name of the node, 1 to 64 characters. |
-dir | string | The state directory; see Files | Where identity.json is written. |
-force | boolean | false | Send the enrollment even if the local check fails. The platform applies the same requirements and may still refuse. |
What it does, in order
- Stops with
enroll needs -api and -tokenif either is missing, and withalready enrolled (<path> exists); remove it to enroll againif the state directory already holds an identity. - Runs the same check as
checkand prints its result. If the machine is below the minimum and-forceis not given, stops withnot enrolling. The code has not been used at this point. - Generates an Ed25519 key pair. The private key never leaves the machine.
- Fetches the platform's lease-token public key (
GET /v1/platform/keys) and refuses a key that is not a valid Ed25519 key. - Sends the enrollment (
POST /v1/nodes/enroll), signed with the new key: the code, the public key, the name, the NVTO Node version and the machine's specifications. - Creates the state directory (mode 0700), writes
identity.json(mode 0600) and printsenrolled: node <node-id> (<status>). The status ispendinguntil the platform approves the node, which it does by itself once its checks pass. One of them is that the node reports the renters' virtual machine, which the NVTO Node app does; a node run with this program alone stayspending, an operator cannot activate it, and it gets no orders.
$ nvto-node enroll -api https://app.nvto.com -token <enroll-code> -name studio-01
this machine: Apple M4 (arm64, desktop), 10 cores, 16 GB memory, 228 GB disk (171 GB free), macOS 15.1
meets the minimum requirements to be a NVTO node
enrolled: node 0d6a3c52-8f1e-4b7a-a3c9-5e2b71f0c4d8 (pending)| Code | Message | Meaning |
|---|---|---|
invalid_enroll_token | enrollment token is invalid, expired or already used | Create a new code under Add a machine. |
host_below_minimum | this machine does not meet the minimum hardware requirements | The platform's own check failed. |
invalid_name | name must be 1 to 64 characters | Pass a shorter -name. |
invalid_signature | request signature is missing or invalid | Most often the machine's clock is more than 5 minutes off. |
rate_limited | too many attempts; try again later | Enrollment attempts from one address are limited to 30 an hour. |
Both requests share one 30-second timeout. If the node was registered but the identity could not be saved, the message is enrolled as <node-id> but could not save identity: …; that node cannot be used and a new code is needed.
run
Runs the node: reports, heartbeats, speed probes and the gate that admits the current renter. It stays in the foreground and logs to standard error until it is interrupted.
| Flag | Type | Default | Meaning |
|---|---|---|---|
-dir | string | The state directory | Where the identity and overlay state are kept. |
-paused | boolean | false | Stay online but do not accept new leases. The node keeps its uptime record and is left out of the draw for orders. |
-ssh-target | string | 127.0.0.1:22 | Where renters' SSH connections are forwarded. |
-vnc-target | string | 127.0.0.1:5900 | Where renters' remote desktop connections are forwarded. |
-machine-cpus | integer | 0 | Cores of the virtual machine each lease is given. Reported to the platform only together with -machine-memory-gb and -machine-disk-gb, all above 0. Set by the NVTO Node app. |
-machine-memory-gb | integer | 0 | Memory of that machine, in GB. |
-machine-disk-gb | integer | 0 | Disk of that machine, in GB. |
-events | boolean | false | Write state changes to standard output as JSON lines, for a program that supervises nvto-node, and stop when that program goes away. Used by the NVTO Node app. |
What it does
- Loads
identity.json. Without one:this machine is not enrolled; run nvto-node enroll first. - Joins the overlay network, allowing 60 seconds. The first time, it asks the platform for a single-use join key (
POST /v1/nodes/{id}/overlay-key), which is given only to an approved node; afterwards it reuses the overlay identity saved in the state directory. If the join fails it logsoverlay unavailable, running without remote access for now: …and carries on without a gate. It tries again when the platform reports the node as active and every 5 minutes, without a restart; a retry that fails logsoverlay still unavailable: …. - Opens the gate on the node's overlay address, port 7422, and logs
gate listening on …. - Sends a specification report, then a heartbeat, then starts the first speed probe in the background.
- Loops on its timers until interrupted. On Ctrl+C or a termination signal it logs
stoppingand exits with status 0.
| What | Value | Notes |
|---|---|---|
| Heartbeat | 15 s | POST /v1/nodes/{id}/heartbeat with the overlay address and status: NVTO Node version, uptime, 1-minute load, free disk, sessions, gate state. The reply names the node's status and current lease. |
| Specification report | 1 h | POST /v1/nodes/{id}/reports with the hardware and whether leases are accepted. Also sent at start. |
| Speed probe | 6 h | POST /v1/nodes/{id}/probe for a ticket, then an upload and a download timed by the other end. Also run at start. The platform refuses a probe within 10 minutes of the last. |
| Lease expiry check | 1 s | Connections are closed once the known end time plus 90 seconds has passed. |
| Isolation limit | 3 min | With no contact with the platform for this long, the gate is suspended and every connection is closed until contact returns. |
| Gate handshake | 10 s | Time allowed for a connection to present its token. At most 32 handshakes at once. |
$ nvto-node run
2026/11/12 11:02:40 gate listening on 100.64.0.5:7422 (ssh -> 127.0.0.1:22, vnc -> 127.0.0.1:5900)
2026/11/12 11:02:40 nvto-node 0.1.19 running as node 0d6a3c52-8f1e-4b7a-a3c9-5e2b71f0c4d8
2026/11/12 11:02:40 report sent
2026/11/12 11:02:41 node status: active
2026/11/12 11:02:58 speed probe: uplink 93.4 Mbps, downlink 412.7 Mbps
2026/11/12 14:20:11 lease 5b0c1f6e-2a4d-4e0b-9c57-3f1f0a7d2e91 started, ends 2026-11-19 14:20:09
2026/11/12 14:26:30 gate: ssh open for lease 5b0c1f6e-2a4d-4e0b-9c57-3f1f0a7d2e91 from 100.64.0.9:51844| Line | Meaning |
|---|---|
nvto-node <version> running as node <id> | Start-up finished. |
overlay up: n-<node-id> [<addresses>] | The node has joined the overlay. |
gate listening on <addr>:7422 (ssh -> …, vnc -> …) | Renters holding the lease can now connect. |
overlay unavailable, running without remote access for now: … | No gate. Usual cause: the node is not approved yet (node_not_approved) or is quarantined (node_quarantined). The node joins by itself once the node is active; no restart is needed. |
report sent / report failed: … | The hourly specification report. |
node status: pending | active | quarantined | The platform's status for the node, logged when it changes. |
speed probe: uplink <n> Mbps, downlink <n> Mbps | A measurement completed. |
speed probe skipped: … | No measurement this time, for example probe_too_soon after a quick restart. |
lease <id> started, ends <time> | A renter now holds the machine. The time is local. |
lease <id> ended; its connections are closed | The platform no longer names that lease. |
lease <id> reached its end time; closing <n> connection(s) | The end time passed without word of a renewal. |
gate: <service> open for lease <id> from <addr> / closed | One renter connection started or finished. |
gate: refused <addr>: … | A connection without a valid token for the current lease. |
gate: <service> for lease <id>: cannot reach <target>: … | Nothing is listening at -ssh-target or -vnc-target. |
heartbeat failed: … | One heartbeat did not get through. |
no contact with the platform for 3m0s; remote access is suspended until it returns | The isolation limit was reached. |
contact with the platform restored; remote access resumes | The suspension is over. |
gate stopped: … then stopping | The gate's listener failed; nvto-node exits. Under the service it is started again. |
Lines carry a date and time prefix. The overlay library may print further lines of its own.
status
Prints the node's identifier, the API URL it was enrolled against and the state directory. It reads identity.json only and does not contact the platform; for whether the node is online, look at My machines in the console or the log.
| Flag | Type | Default | Meaning |
|---|---|---|---|
-dir | string | The state directory | Where identity.json is read from. |
$ nvto-node status
node: 0d6a3c52-8f1e-4b7a-a3c9-5e2b71f0c4d8
api: https://app.nvto.com
state: /Users/<you>/Library/Application Support/NVTO/nodeservice
Manages a launchd agent, labeled com.nvto.node, that runs nvto-node run for the current user. The agent starts when that user logs in and is restarted if it exits. These commands work on macOS only.
| Subcommand | What it does | Output |
|---|---|---|
install | Requires an enrolled state directory. Writes the job file, unloads any copy already loaded, and loads the new one, which starts nvto-node at once. Running it again is how the service is restarted or its flags changed. | installed: nvto-node now starts at login and restarts if it stops, with the paths of the job file and the log |
uninstall | Unloads the job, which stops nvto-node, and removes the job file. The state directory and identity are left in place. | uninstalled: nvto-node no longer starts automatically |
status | Reports whether the job file exists and whether launchd has it loaded. | not installed, installed but not loaded or installed and loaded |
| Flag | Type | Default | Meaning |
|---|---|---|---|
-dir | string | The state directory | Used by install: the directory the service runs with, made absolute. Accepted and ignored by uninstall and status. |
-- RUN_FLAGS | list | none | With install: everything after -- is appended to the service's run command, for example -- -paused. |
$ nvto-node service install
installed: nvto-node now starts at login and restarts if it stops
job: /Users/<you>/Library/LaunchAgents/com.nvto.node.plist
log: /Users/<you>/Library/Application Support/NVTO/node/node.log
for the node to return unattended after a restart, enable automatic login for this user
$ nvto-node service status
installed and loaded
$ nvto-node service uninstall
uninstalled: nvto-node no longer starts automatically- Command run
<path of nvto-node> run -dir <state dir>plus any run flags. The program's path is resolved through symbolic links at install time; if you move the binary, install again.- Start and restart
- Starts when the job is loaded and at each login. Restarted whenever it exits, with at least 10 seconds between starts.
- Log
- Standard output and standard error both go to
node.login the state directory. nvto-node does not rotate it. - Unattended restarts
- It is a per-user agent, not a system daemon: after a reboot it starts only once its user is logged in. Enable automatic login for that user if the node must come back with no one present.
version
Prints the version number alone, such as 0.1.19. The same version is sent to the platform with every report and heartbeat and shown in My machines.
Environment variables
| Variable | Read by | Effect |
|---|---|---|
NVTO_API | enroll | Default for -api. |
NVTO_ENROLL_TOKEN | enroll | Default for -token. Keeps the code out of shell history. |
run, status and service read neither. After enrollment the API URL comes from identity.json.
Files and directories
The default state directory is ~/Library/Application Support/NVTO/node. -dir overrides it; use the same value for every command.
| Path | Written by | Contents |
|---|---|---|
<state dir>/identity.json | enroll | The node's identity: api, node_id, private_key (the Ed25519 seed, base64) and platform_key (the platform's lease-token public key, pinned at enrollment). Mode 0600. Whoever holds this file can act as the node. |
<state dir>/overlay.json | run, at the first join | The overlay's coordination URL and the gate port. The join key itself is single use and is not kept. |
<state dir>/overlay/ | run | The node's overlay identity and state. Reused on every start, so a restart does not ask for another join key. |
<state dir>/node.log | The service | Everything run logs when started by launchd. |
~/Library/LaunchAgents/com.nvto.node.plist | service install | The launchd job. Removed by service uninstall. |
To enroll a machine again, uninstall the service, remove the state directory and run enroll with a new code. The result is a new node, which goes through the approval checks again and starts without a record.
Exit status
| Status | When |
|---|---|
| 0 | The command succeeded; run was interrupted; -h was given. |
| 1 | The command failed, with nvto-node: <message> on standard error. Also check on a machine below the minimum. |
| 2 | No command, an unknown command, or a flag that does not exist or has a bad value. |
A refusal by the platform is printed as <METHOD> <path>: <message> (<code>), for example POST /v1/nodes/enroll: enrollment token is invalid, expired or already used (invalid_enroll_token).
Examples
# Enroll with the code in the environment rather than on the command line
$ NVTO_API=https://app.nvto.com NVTO_ENROLL_TOKEN=<enroll-code> nvto-node enroll
# Stay online but take no new leases
$ nvto-node run -paused
# Install the service with run flags; everything after -- is passed to run
$ nvto-node service install -- -paused
# Restart the service, for example after updating nvto-node
$ nvto-node service install
# Follow the service's log
$ tail -f ~/Library/Application\ Support/NVTO/node/node.log