Repository navigation
Installation
This page covers installing NodePilot: downloading a release binary, setting it up as a systemd service on Ubuntu/Debian, running it on Windows, macOS or in Docker, building it from source, putting it behind a TLS reverse proxy, and creating the first administrator.
NodePilot is a single binary with the web UI built in. It keeps all its state (SQLite database, master key, local backups) in one data directory. For every option mentioned here, see Configuration.
Release binaries are on the Releases page:
| Platform | File |
|---|---|
| Linux x86_64 (static musl build, any distribution) | nodepilot-linux-x86_64 |
| Linux ARM64 (static musl build) | nodepilot-linux-aarch64 |
| Windows x86_64 | nodepilot-windows-x86_64.exe |
| macOS Apple Silicon | nodepilot-darwin-aarch64 |
| macOS Intel | nodepilot-darwin-x86_64 |
| Linux installer, systemd unit, TPM sealing script | nodepilot-linux-packaging.tar.gz |
Each release also has a SHA256SUMS file. If release signing is set up, there is also a <file>.sig (Ed25519) next to each file; see Updates.
Check the download:
curl -LO https://github.com/vlasovmood/nodepilot/releases/latest/download/SHA256SUMS
sha256sum -c SHA256SUMS --ignore-missingThe "latest" URLs always point to the newest stable release:
https://github.com/vlasovmood/nodepilot/releases/latest/download/<file>.
This is the supported production setup on Ubuntu/Debian. Run as root:
curl -LO https://github.com/vlasovmood/nodepilot/releases/latest/download/nodepilot-linux-x86_64
curl -LO https://github.com/vlasovmood/nodepilot/releases/latest/download/nodepilot-linux-packaging.tar.gz
tar -xzf nodepilot-linux-packaging.tar.gz # creates ./packaging/
chmod +x nodepilot-linux-x86_64
sudo ./packaging/install.sh ./nodepilot-linux-x86_64On ARM64 servers use nodepilot-linux-aarch64 instead.
packaging/install.sh takes the path to the binary as its only argument (default ./nodepilot) and must run as root. It:
| Step | Result |
|---|---|
| Creates a system user |
nodepilot, home /var/lib/nodepilot, shell /usr/sbin/nologin (skipped if it exists) |
| Creates the data directory |
/var/lib/nodepilot, mode 0700, owned by nodepilot
|
| Installs the binary |
/var/lib/nodepilot/bin/nodepilot (mode 0755). It lives in the data directory so the service can replace it during a self-update |
| Adds a CLI symlink |
/usr/local/bin/nodepilot → /var/lib/nodepilot/bin/nodepilot
|
| Creates the env file |
/etc/nodepilot/nodepilot.env with commented-out defaults, only if the file does not exist yet |
| Installs the unit |
/etc/systemd/system/nodepilot.service, then daemon-reload, enable and restart
|
| TPM hint | If systemd-creds has-tpm2 succeeds, prints the command to seal the master key into the TPM |
The unit (packaging/nodepilot.service) runs /var/lib/nodepilot/bin/nodepilot serve as nodepilot with:
-
NODEPILOT_DATA=/var/lib/nodepilotandNODEPILOT_LISTEN=127.0.0.1:7780; -
EnvironmentFile=-/etc/nodepilot/nodepilot.env(values there override the two above); -
Restart=on-failure,RestartSec=3,LimitNOFILE=65536; - sandboxing:
ProtectSystem=strict,ProtectHome=true,PrivateTmp=true,NoNewPrivileges=trueand others. The only writable path isReadWritePaths=/var/lib/nodepilot.
Because of ProtectSystem=strict, the panel can only write under /var/lib/nodepilot. Keep local backup storages there (the UI suggests /var/lib/nodepilot/backups), or add another ReadWritePaths= in a drop-in.
sudo systemctl status nodepilot
sudo systemctl restart nodepilot # after editing /etc/nodepilot/nodepilot.env
sudo journalctl -u nodepilot -f # logsThe panel listens on 127.0.0.1:7780 only. Reach it through a reverse proxy (see below) or, for the first login, through an SSH tunnel:
ssh -L 7780:127.0.0.1:7780 admin@panel-host
# then open http://127.0.0.1:7780 on your machineNormally you update from Settings → Updates (see Updates). Running install.sh again with a new binary also works: it replaces /var/lib/nodepilot/bin/nodepilot, keeps the data and the existing env file, and restarts the service.
If the host has TPM 2.0 and systemd 250+ (Ubuntu 24.04+, Debian 12+), you can seal the master key so it is no longer stored in plaintext on disk:
sudo ./packaging/seal-master-key.sh --backup-to /root/nodepilot-master.key.backup
# move the backup off the server, then delete it thereDetails and options are in Configuration and Security.
install.sh has no uninstall mode. To remove the service by hand:
sudo systemctl disable --now nodepilot
sudo rm -f /etc/systemd/system/nodepilot.service /usr/local/bin/nodepilot
sudo rm -rf /etc/systemd/system/nodepilot.service.d
sudo systemctl daemon-reload/var/lib/nodepilot (database, master key, backups) and /etc/nodepilot are left in place. Delete them only once you are sure you no longer need the data.
.\nodepilot-windows-x86_64.exe serve --data-dir C:\NodePilotThen open http://127.0.0.1:7780.
- Always pass
--data-dir(or setNODEPILOT_DATA). The default isdata, relative to the current directory. - On Windows
master.keyis written without extra permission restrictions. Keep the data directory in a folder only your account can read. - The
.exeis not code-signed, so SmartScreen may warn on first start. See Troubleshooting. - Self-update needs write access to the folder that holds the
.exe(so notC:\Program Filesunless the panel runs elevated). - The release build links the C runtime statically, so no Visual C++ redistributable is needed.
The binaries are not notarized. Clear the quarantine flag once:
chmod +x nodepilot-darwin-aarch64
xattr -d com.apple.quarantine nodepilot-darwin-aarch64
./nodepilot-darwin-aarch64 serve --data-dir ~/NodePilotUse nodepilot-darwin-x86_64 on Intel Macs.
On a desktop or laptop, the panel only works while the computer is awake: stats history and scheduled backups pause while it sleeps.
The repository has a Dockerfile. No image is published to a registry, so you build it yourself:
git clone https://github.com/vlasovmood/nodepilot.git
cd nodepilot
docker build -t nodepilot .
docker run -d --name nodepilot \
-p 127.0.0.1:7780:7780 \
-v nodepilot-data:/var/lib/nodepilot \
nodepilotWhat the image does:
| Item | Value |
|---|---|
| Base |
debian:bookworm-slim with ca-certificates
|
| Binary | static musl build at /usr/local/bin/nodepilot
|
| User |
nodepilot (system user) |
| Data volume | /var/lib/nodepilot |
| Environment |
NODEPILOT_DATA=/var/lib/nodepilot, NODEPILOT_LISTEN=0.0.0.0:7780, NODEPILOT_IN_DOCKER=1
|
| Port | 7780 |
| Entrypoint / command |
nodepilot / serve
|
Notes:
- Inside the container the panel listens on all interfaces. Publish the port on
127.0.0.1(as above) and put a TLS proxy in front, or run it on a private network. - Behind HTTPS, add
-e NODEPILOT_SECURE_COOKIES=true. - To keep the master key outside the data volume, mount it as a file (for example a Docker secret) and point
NODEPILOT_MASTER_KEY_FILEat it, for example-e NODEPILOT_MASTER_KEY_FILE=/run/secrets/nodepilot_master_key. The file must be readable by thenodepilotuser in the container. - The panel does not update itself in a container. To update, rebuild the image from a newer checkout and recreate the container with the same volume. See Updates.
- The Dockerfile builds an x86_64 binary (
x86_64-unknown-linux-musl). On ARM64 hosts, use thenodepilot-linux-aarch64release binary instead. - A proxy that reaches the container over a Docker network is not loopback. Add its address or network to
NODEPILOT_TRUSTED_PROXIES(for example172.18.0.0/16), otherwise the login lockout and the audit log see the proxy's address instead of the client's.
Run CLI commands inside the running container:
docker exec -it nodepilot nodepilot user passwd admin --password 'new-password'Requirements: Rust 1.88+ and Node.js 22+. The web UI must be built first: the binary embeds web/dist at compile time.
git clone https://github.com/vlasovmood/nodepilot.git
cd nodepilot
cd web && npm ci && npm run build && cd ..
cargo build --release -p nodepilot # -> target/release/nodepilotIf web/dist is missing, the build still succeeds, but the panel serves only a placeholder page saying the web UI was not built (the API works).
scripts/build-linux.sh builds a static x86_64 musl binary that runs on any Ubuntu/Debian. Run it on Linux or WSL. It needs rustup, gcc, musl-tools, node and npm.
sudo apt install musl-tools
./scripts/build-linux.sh # -> dist/nodepilot-linux-x86_64The script adds the x86_64-unknown-linux-musl target, builds the web UI if web/package.json exists, and builds with --locked. It uses CARGO_TARGET_DIR, defaulting to $HOME/.cache/nodepilot-target, which is much faster under WSL than building on a Windows drive.
The Dockerfile has an export stage that contains only the binary:
docker build --target export --output dist . # -> dist/nodepilotRelease builds have the update repository and public key baked in. A binary you build yourself has neither, so the in-panel updater reports that the repository is not configured. Set NODEPILOT_UPDATE_REPO at build time or at runtime to enable it. See Updates.
Build from a checkout with LF line endings. The repository's .gitattributes enforces this. The database migrations are embedded with checksums, so a CRLF checkout produces a binary that rejects existing databases. See Troubleshooting.
Expose the panel only through a reverse proxy with TLS, ideally also behind a VPN. The panel speaks plain HTTP on 127.0.0.1:7780.
Once the panel is served over HTTPS, enable secure cookies in /etc/nodepilot/nodepilot.env and restart:
NODEPILOT_SECURE_COOKIES=trueThe session cookie np_session is always HttpOnly and SameSite=Strict. This option adds Secure. Don't enable it while you still open the panel over plain HTTP from another host: the browser drops a Secure cookie on such a connection and you can't stay logged in.
Things the proxy must handle:
-
WebSockets. The web terminal uses a WebSocket at
/api/servers/{id}/terminal. - Large request bodies. File uploads through the file manager are allowed up to 512 MiB.
-
Client address. The panel reads
X-Forwarded-Foronly when the request comes from a trusted proxy: loopback, plus anything listed inNODEPILOT_TRUSTED_PROXIES(see Configuration). It walks the header from the right and takes the first address that is not a trusted proxy, so a client cannot spoof its address even when the proxy appends to the header.
panel.example.com {
reverse_proxy 127.0.0.1:7780
}Caddy gets a certificate automatically, proxies WebSockets, and by default replaces incoming X-Forwarded-For from untrusted clients.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 443 ssl;
server_name panel.example.com;
ssl_certificate /etc/letsencrypt/live/panel.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/panel.example.com/privkey.pem;
client_max_body_size 512m; # file manager uploads
location / {
proxy_pass http://127.0.0.1:7780;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr; # overwrite, don't append
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 3600s; # long commands and idle terminals
proxy_send_timeout 3600s;
}
}Only needed if a web app on another origin calls the API. See NODEPILOT_CORS_ORIGINS in Configuration.
To serve the panel at, for example, https://example.com/nodepilot/:
-
Build the web UI with the base path, then build the binary. Release binaries are built for
/and cannot be used for this.cd web && npm ci && NODEPILOT_BASE_PATH=/nodepilot/ npm run build && cd .. cargo build --release -p nodepilot
Keep the leading and trailing slash.
NODEPILOT_BASE_PATHis read byweb/vite.config.tsat build time only. -
Have the proxy strip the prefix. The backend always serves from the root (
/api/...).Caddy:
example.com { handle_path /nodepilot/* { reverse_proxy 127.0.0.1:7780 } }
nginx (the trailing slash in
proxy_passstrips the prefix):location = /nodepilot { return 301 /nodepilot/; } location /nodepilot/ { proxy_pass http://127.0.0.1:7780/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_read_timeout 3600s; client_max_body_size 512m; }
The API and MCP endpoints are then at https://example.com/nodepilot/api/..., for example https://example.com/nodepilot/api/mcp.
On first start with an empty data directory, the panel:
- creates
nodepilot.dband applies the migrations; - generates
master.keyin the data directory (unless a key is supplied through a systemd credential orNODEPILOT_MASTER_KEY_FILE); - logs
no users yet — open http://127.0.0.1:7780 to create the administrator account.
Open the panel and fill in the setup form: a username and a password of at least 8 characters. Setup is only available while there are no users. Until then, anyone who can reach the panel can claim the admin account, so do it right away, over localhost or an SSH tunnel.
You can also create the first user from the command line:
sudo -u nodepilot nodepilot --data-dir /var/lib/nodepilot user create admin --password 'a-long-password'To keep the password out of the shell history, pass it in NODEPILOT_PASSWORD instead of --password. See CLI Reference.
Then:
-
Back up
master.keysomewhere off the server. Without it, the stored server passwords and keys cannot be decrypted. See Configuration. - Turn on 2FA and set up the panel SSH key: Security.
- Add your servers: Getting Started.
NodePilot · Releases · Report a vulnerability · Apache-2.0
Set up
Use
Secure
Integrate
Reference