Skip to contentNVTO
EN
Get started

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.

Last updated

Synopsis

Usage
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 value or -flag=value; two dashes work as well as one.
  • -h after enroll, run, status or a service subcommand 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.

Terminal
$ 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
Messages for an unmet requirement
RequirementMessage
Apple siliconApple silicon (M1 or later) is required; this machine is "<arch>"
macOS 15macOS 15 or later is required; this machine runs "<version>"
8 CPU coresat least 8 CPU cores are required; this machine has <n>
16 GB memoryat least 16 GB of memory is required; this machine has <n> GB
256 GB diska disk of at least 256 GB is required; this machine has <n> GB
100 GB freeat least 100 GB of free disk space is required; this machine has <n> GB free
Desktoplaptops 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.

Flags of enroll
FlagTypeDefaultMeaning
-apistring$NVTO_API; requiredThe platform API URL, https://app.nvto.com. It is saved in the identity and used by run from then on.
-tokenstring$NVTO_ENROLL_TOKEN; requiredThe one-time enroll code from Add a machine in the console. Valid 30 minutes, single use.
-namestringThe machine's hostnameDisplay name of the node, 1 to 64 characters.
-dirstringThe state directory; see FilesWhere identity.json is written.
-forcebooleanfalseSend the enrollment even if the local check fails. The platform applies the same requirements and may still refuse.

What it does, in order

  1. Stops with enroll needs -api and -token if either is missing, and with already enrolled (<path> exists); remove it to enroll again if the state directory already holds an identity.
  2. Runs the same check as check and prints its result. If the machine is below the minimum and -force is not given, stops with not enrolling. The code has not been used at this point.
  3. Generates an Ed25519 key pair. The private key never leaves the machine.
  4. Fetches the platform's lease-token public key (GET /v1/platform/keys) and refuses a key that is not a valid Ed25519 key.
  5. 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.
  6. Creates the state directory (mode 0700), writes identity.json (mode 0600) and prints enrolled: node <node-id> (<status>). The status is pending until 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 stays pending, an operator cannot activate it, and it gets no orders.
Terminal
$ 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)
Errors from the platform during enroll
CodeMessageMeaning
invalid_enroll_tokenenrollment token is invalid, expired or already usedCreate a new code under Add a machine.
host_below_minimumthis machine does not meet the minimum hardware requirementsThe platform's own check failed.
invalid_namename must be 1 to 64 charactersPass a shorter -name.
invalid_signaturerequest signature is missing or invalidMost often the machine's clock is more than 5 minutes off.
rate_limitedtoo many attempts; try again laterEnrollment 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.

Flags of run
FlagTypeDefaultMeaning
-dirstringThe state directoryWhere the identity and overlay state are kept.
-pausedbooleanfalseStay online but do not accept new leases. The node keeps its uptime record and is left out of the draw for orders.
-ssh-targetstring127.0.0.1:22Where renters' SSH connections are forwarded.
-vnc-targetstring127.0.0.1:5900Where renters' remote desktop connections are forwarded.
-machine-cpusinteger0Cores 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-gbinteger0Memory of that machine, in GB.
-machine-disk-gbinteger0Disk of that machine, in GB.
-eventsbooleanfalseWrite 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

  1. Loads identity.json. Without one: this machine is not enrolled; run nvto-node enroll first.
  2. 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 logs overlay 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 logs overlay still unavailable: ….
  3. Opens the gate on the node's overlay address, port 7422, and logs gate listening on ….
  4. Sends a specification report, then a heartbeat, then starts the first speed probe in the background.
  5. Loops on its timers until interrupted. On Ctrl+C or a termination signal it logs stopping and exits with status 0.
Timers and limits of run
WhatValueNotes
Heartbeat15 sPOST /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 report1 hPOST /v1/nodes/{id}/reports with the hardware and whether leases are accepted. Also sent at start.
Speed probe6 hPOST /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 check1 sConnections are closed once the known end time plus 90 seconds has passed.
Isolation limit3 minWith no contact with the platform for this long, the gate is suspended and every connection is closed until contact returns.
Gate handshake10 sTime allowed for a connection to present its token. At most 32 handshakes at once.
Terminal
$ 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
Log lines of run
LineMeaning
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 | quarantinedThe platform's status for the node, logged when it changes.
speed probe: uplink <n> Mbps, downlink <n> MbpsA 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 closedThe 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> / closedOne 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 returnsThe isolation limit was reached.
contact with the platform restored; remote access resumesThe suspension is over.
gate stopped: … then stoppingThe 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.

Flags of status
FlagTypeDefaultMeaning
-dirstringThe state directoryWhere identity.json is read from.
Terminal
$ nvto-node status
node:  0d6a3c52-8f1e-4b7a-a3c9-5e2b71f0c4d8
api:   https://app.nvto.com
state: /Users/<you>/Library/Application Support/NVTO/node

service

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.

Subcommands of service
SubcommandWhat it doesOutput
installRequires 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
uninstallUnloads 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
statusReports whether the job file exists and whether launchd has it loaded.not installed, installed but not loaded or installed and loaded
Flags of service
FlagTypeDefaultMeaning
-dirstringThe state directoryUsed by install: the directory the service runs with, made absolute. Accepted and ignored by uninstall and status.
-- RUN_FLAGSlistnoneWith install: everything after -- is appended to the service's run command, for example -- -paused.
Terminal
$ 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.log in 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

Environment variables read by nvto-node
VariableRead byEffect
NVTO_APIenrollDefault for -api.
NVTO_ENROLL_TOKENenrollDefault 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.

Files
PathWritten byContents
<state dir>/identity.jsonenrollThe 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.jsonrun, at the first joinThe overlay's coordination URL and the gate port. The join key itself is single use and is not kept.
<state dir>/overlay/runThe node's overlay identity and state. Reused on every start, so a restart does not ask for another join key.
<state dir>/node.logThe serviceEverything run logs when started by launchd.
~/Library/LaunchAgents/com.nvto.node.plistservice installThe 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

Exit status
StatusWhen
0The command succeeded; run was interrupted; -h was given.
1The command failed, with nvto-node: <message> on standard error. Also check on a machine below the minimum.
2No 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

Terminal
# 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