Getting Started

The nfltr CLI connects your laptops, VMs and private servers through the hosted relay at nfltr.xyz: every machine dials out, so nothing needs a public IP, an open port or a firewall change. This guide takes you from install to a shared app, a pipe between two machines and a file sent from one to the other.

The whole path: install the CLI → sign in, which enrols this machine → share a local app → open a pipe between two machines → send a file → check the connection. Each step is a few minutes; the tutorials linked at the end go further.


1. Install the nfltr CLI

On every machine that takes part (your laptop and any server), install the latest CLI (macOS and Linux, amd64 and arm64):

$ curl -fsSL https://nfltr.xyz/install.sh | sh
$ export PATH="$HOME/.local/bin:$PATH"     # the installer's directory, when it is not on PATH yet
$ nfltr version

The installer puts nfltr in ~/.local/bin (NFLTR_INSTALL_DIR changes it). When that directory is not on your PATH, it prints the export line and the shell startup file to add it to (~/.zshrc for zsh, ~/.bashrc or on macOS ~/.bash_profile for bash, else ~/.profile), so new shells find it too. On an Android phone in Termux, the installer puts the client into $PREFIX/bin (see Install). nfltr update --apply keeps nfltr current.

2. Create your account and enrol this machine

Sign in with your Google account in the browser. The CLI makes this machine's key on the machine (it never leaves it), the relay signs its certificate, and the certificate comes back on a 127.0.0.1 callback and is saved beside ~/.config/nfltr/nfltr.json (key file mode 0600). The certificate renews itself:

$ nfltr config login

On a machine without a browser, open nfltr.xyz/dashboard, sign in, take a single-use code from Fleet → Add machine (or run nfltr machines code on a machine already enrolled), and enrol with it from stdin, so it stays off the command line:

$ nfltr config login --code-file - < code

A code made with nfltr machines code on the machine that holds your organisation's issuer also joins this machine to the organisation in the same login: services by machine name, --allow-group and ssh with no first-use prompt.

3. Share a local app

With a web app on localhost:8080, give anyone a link to it:

$ nfltr http 8080

Send the printed Share URL. It works while nfltr http runs and stops the moment you press Ctrl+C; it expires after 24 hours without a visit (--share-ttl 2h for 2 hours). --share-preset review protects it with a generated password. To share a file, a directory or text instead of an app, use nfltr share report.pdf. See Share a local app. On your own relay, share links need a domain of yours (its section 7).

4. Open a pipe between two machines

On the serving machine, serve one session under a capability address, written to a file only you can read:

$ nfltr cat serve chat --address --address-file chat.addr

Copy chat.addr to the other machine over a channel you trust (it is a secret: whoever holds it can open the service), then open the session there:

$ nfltr cat pipe --address-file chat.addr

What you type on one end appears on the other, end to end encrypted. Ctrl+D ends what one end sends; the session closes once both ends have, or when either end stops with Ctrl+C. Machines enrolled in your organisation reach each other by name instead (nfltr cat serve chat --allow-group ops, then nfltr cat pipe work-laptop/chat). nfltr cat serve ssh --ssh and nfltr cat ssh give you a shell the same way: see SSH to a machine behind NAT.

5. Send a file

On the receiving machine, serve a receiving directory:

$ nfltr cat serve inbox --recv ~/Downloads --address --address-file inbox.addr

With inbox.addr copied to the sending machine, send files and directories as one transfer:

$ nfltr cat cp report.txt ./data/ --address-file inbox.addr

The receiver writes nothing outside its directory and replaces nothing: a name that already exists there refuses the whole transfer. See Send files and messages, and nfltr-send, which resumes interrupted transfers.

6. Check the connection

$ nfltr status

nfltr status says whether this machine reaches nfltr.xyz, how fast it answers and which certificate the machine holds; when the relay is not reachable it checks DNS, TCP, TLS and gRPC in turn and names the failing layer. nfltr services lists what your machines serve and how many instances are up. See Diagnose connection problems.

7. Leave the account

$ nfltr config logout

nfltr config logout removes this machine's certificate, key and organisation membership and names each file it removed. An operator machine first revokes itself at the relay; the account's last operator machine is refused until you mark another one operator in the dashboard (Fleet). Any other machine stays enrolled until an operator revokes it (nfltr machines revoke <name>), and the command says so.

8. Remove nfltr

nfltr installs no background service: nfltr up, nfltr http, nfltr share and nfltr cat serve run only while their command runs (or under a launchd job or systemd unit you wrote yourself). Removing nfltr is stopping those, logging out, and deleting the binaries and the config directory:

$ pgrep -fl nfltr                # each nfltr process still running: stop it (and its job or unit, if you made one)
$ nfltr config logout
$ rm -f ~/.local/bin/nfltr ~/.local/bin/nfltr-relay ~/.local/bin/nfltr-mailbox ~/.local/bin/nfltr-accounts ~/.local/bin/nfltr-browser
$ rm -rf ~/.config/nfltr

The installer's directory is NFLTR_INSTALL_DIR when you set one ($PREFIX/bin in Termux), and the config directory is the one holding NFLTR_CONFIG when that is set.

Next steps