CLI Reference nfltr
Reference for nfltr.xyz users. Use this page for client-side nfltr commands that connect to the hosted relay: tunnels, sharing, messages and files between machines, and your account. Orchestration (nfltr-orch) is not part of nfltr and is not publicly available.
New to NFLTR? Start with Getting Started, then return here for command-level detail.
Start From The Right Command Path
| Goal | Start here | Next step |
|---|---|---|
| Secure transport or sharing | nfltr http 8080 | Getting started |
After you choose a path, use the sections below as the deep command reference for flags, environment variables, examples, and operational details.
Installation
curl -fsSL https://nfltr.xyz/install.sh | sh installs nfltr; --with relay adds nfltr-relay (your own relay) and --with browser nfltr-browser. nfltr update --apply keeps every installed binary current. Or download the binary for your platform from the landing page:
| Platform | Binary |
|---|---|
| macOS (Apple Silicon) | nfltr-darwin-arm64 |
| macOS (Intel) | nfltr-darwin-amd64 |
| Linux (x86_64) | nfltr-linux-amd64 |
| Linux (ARM64) | nfltr-linux-arm64 |
| Windows (x86_64) | nfltr-windows-amd64.exe |
| Windows (ARM64) | nfltr-windows-arm64.exe |
# Example: macOS Apple Silicon
chmod +x nfltr-darwin-arm64
sudo mv nfltr-darwin-arm64 /usr/local/bin/nfltr
Commands
Generated from the nfltr binary: every public command, its flags as --help prints them, and an example. Run nfltr <command> --help for the same text in your terminal.
nfltr http
Expose a local HTTP service
nfltr http <port> [flags]
Tutorials: Share a local app
| Flag | Default | Description |
|---|---|---|
--acme-domain domain | — | obtain Let's Encrypt certificate for domain (implies --e2ee; requires port 443 reachable) |
--agent string | this machine's name, then -http | agent identity |
--allow-path /prefix | — | forward only requests under this path /prefix (repeatable; e.g. a single webhook endpoint); any other path gets 404 without reaching the local service. Every path by default. Turns off end-to-end TLS, since the agent must see each request |
--basic-auth user:password | $NFLTR_BASIC_AUTH | require HTTP Basic Auth user:password for all incoming requests (optional) |
--duration seconds | — | maximum runtime in seconds (0=unlimited) |
--e2ee | true | enable E2EE TLS termination (generates self-signed cert; clients connect via SNI router) |
--e2ee-cert file | — | TLS certificate file for E2EE termination (implies --e2ee) |
--e2ee-key file | — | TLS key file for E2EE termination (implies --e2ee) |
--health-addr address | 127.0.0.1:0 | health check HTTP endpoint address |
--host-header Host | preserve | Host your service gets: preserve (the public host the visitor asked for) or rewrite (your service's own host, for dev servers and virtual hosts that accept only that); X-Forwarded-Host carries the public host either way |
--http-addr address | — | HTTP address of the relay for share and control-plane APIs |
--insecure-skip-verify | — | skip TLS verification for local service |
--intercept | — | live-print request/response summaries to stderr (traffic inspector); needs --mode inspectable |
--keepalive preset | — | how the agent notices a relay gone silent: preset default, fast, nat, datacenter, mobile, or interval=<duration>,timeout=<duration> (default: default, dead within 15s; NFLTR_KEEPALIVE) |
--labels key=value | — | comma-separated key=value labels for fleet matching (e.g. fleet=web,zone=us-east) |
--mode verified | — | tunnel mode: verified, `inspectable` or `passthrough` (preferred over --e2ee). passthrough: the relay and the agent pass the client's TLS on to your HTTPS service, which holds the certificate for the share host name |
--no-share | — | disable automatic share URL |
--record | — | capture request/response traffic to a file for later replay; needs --mode inspectable |
--record-file file | — | output file for captured traffic (default: nfltr-capture-<timestamp>.json) |
--replace | — | take the agent over from another nfltr process serving it on this machine (that one exits 13); without it a second one is refused (exit 14) |
--retries attempts | 12 | connection retry attempts |
--retry-wait seconds | 5 | seconds between connection attempts once an outage passes a minute, doubling on repeated failures (a second at most before that) |
--route /prefix=port | — | path route: /prefix=port or `/prefix=url` (repeatable); the prefix is stripped and the rest appended to the URL's path (/hook=http://localhost:9000/github sends /hook/x to /github/x); needs --mode inspectable |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay gRPC address (host:port) |
--share | true | request a public share URL after connecting (default: true) |
--share-auth user:password | $NFLTR_SHARE_AUTH | HTTP Basic Auth user:password for share URL visitors |
--share-bearer token | — | require Bearer token for share URL visitors |
--share-header Header=Value | — | require HTTP Header=Value for share URL visitors (repeatable) |
--share-ip-allowlist IP/CIDR | — | comma-separated IP/CIDR allowlist for share URL visitors |
--share-login | — | share URL visitors must sign in to the relay's accounts as this machine's owner (or a --share-login-allow email); not with an agent certificate (--e2ee-cert, --acme-domain) or --mode passthrough |
--share-login-allow emails | — | comma-separated emails a --share-login share also admits |
--share-preset public | — | share workflow preset: public, `review`, or `webhook` |
--share-ttl duration | — | how long the share URL lives without a visit, duration (for example 30m or 2h; default and cap: the relay's, 24h on nfltr.xyz); each visit starts it again |
--timeout seconds | 60 | local service request timeout in seconds |
--tls | true | enable TLS for the gRPC connection |
--tls-ca file | — | CA bundle file |
--tls-cert file | — | client certificate file for mTLS |
--tls-key file | — | client key file for mTLS |
--token-file file | — | read an identity provider's token (the relay's OIDC identity provider), never an nfltr key, from this file (mode 0600 on Unix; read again at each connection, so a token helper may rewrite it; default $NFLTR_TOKEN_FILE); it is the credential instead of this machine's certificate |
--transport transport | — | how the agent's sessions reach the relay: transport tcp, quic, auto (tcp: link over TLS/TCP; quic: QUIC over UDP, TCP when it fails; auto: both raced, QUIC first); the gRPC stream when neither connects (default: tcp; NFLTR_TRANSPORT) |
--verbose | — | enable verbose per-request logging |
Example:
nfltr http 8080
nfltr cat
Byte streams between nfltr machines: pipe, forward, ssh, cp, perf and serve
nfltr cat <pipe|forward|ssh|cp|perf|serve> ...
Tutorials: SSH to a machine behind NAT · Send files and messages
| Command | Description |
|---|---|
nfltr cat pipe | One session to a remote service on stdin/stdout, with JSON events and exit codes |
nfltr cat forward | A local endpoint whose every connection is one session to the remote service; --udp: a datagram listener for a udp service |
nfltr cat ssh | Run ssh to a service nfltr cat serve --ssh serves |
nfltr cat cp | Copy files and directories to a service nfltr cat serve --recv serves (organisation mode or an nf1... address; never plain) |
nfltr cat serve | Serve a service of this machine: stdio (one session), a TCP or UDP target, the embedded SSH server, a command, a receiving directory or a perf sink |
nfltr cat pipe
One session to a remote service on stdin/stdout, with JSON events and exit codes
nfltr cat pipe <target>
| Flag | Default | Description |
|---|---|---|
--address-file file | — | read the target, an nf1... address, from this file (mode 0600 on Unix), or from stdin with - (not cat pipe's: its stdin is the session); an address is a secret, refused on the command line |
--cert-sha256 fingerprint | — | accept only the relay certificate with this SHA-256 fingerprint; without it a pin saved by nfltr config set-relay --cert-sha256 applies |
--direct | — | move sessions to a direct path to the agent's machine when one can be punched, relayed when none works (organisation mode or an nf1... address; not when the agent's service is off): the agent learns this machine's public and LAN addresses and this one the agent's; --direct=off relayed only; without it the machine's org_direct (nfltr config set-direct), on when unset; an nf1... address served with no account runs on a direct path only, so with --direct=off, or when no direct path works, it exits 12 direct_required |
--exit-with-parent | — | end the session and exit 8 when the process that started pipe exits |
--open-timeout duration | 10s | give up opening the session after this duration; an offline agent is waited for until then (exit 3, else 5); an nf1 address defaults to 60s unless --direct=off, the direct-path bound of an address served with no account (exit 12 at 55s) |
--plain | — | open this session plain on purpose (the relay can read it), to a service that is not in organisation mode; without it an enrolled machine's session is end to end encrypted in organisation mode |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay address (host:port); grpc.<domain> is reached over HTTP at <domain> |
--tls | true | use TLS for the relay connection |
--tls-cert file | — | client certificate file the relay's mTLS identity provider authenticates (with --tls-key), instead of this machine's certificate |
--tls-key file | — | client key file for --tls-cert |
--token-file file | — | read an identity provider's token (the relay's OIDC identity provider), never an nfltr key, from this file (mode 0600 on Unix; read again at each connection, so a token helper may rewrite it; default $NFLTR_TOKEN_FILE); it is the credential instead of this machine's certificate |
--udp | — | refused: stdio has no datagram boundaries (nfltr cat forward --udp) |
Example:
nfltr cat pipe home/db < query.bin > answer.bin
nfltr cat forward
A local endpoint whose every connection is one session to the remote service; --udp: a datagram listener for a udp service
nfltr cat forward [--udp] <target> --listen <endpoint>
| Flag | Default | Description |
|---|---|---|
--address-file file | — | read the target, an nf1... address, from this file (mode 0600 on Unix), or from stdin with - (not cat pipe's: its stdin is the session); an address is a secret, refused on the command line |
--allow-sources CIDRs | — | udp: listen: the source CIDRs it answers (comma separated); required on a non-loopback listen, which then also caps each source's replies at 10x what it sent plus 64 KiB per 10 s |
--cert-sha256 fingerprint | — | accept only the relay certificate with this SHA-256 fingerprint; without it a pin saved by nfltr config set-relay --cert-sha256 applies |
--direct | — | move sessions to a direct path to the agent's machine when one can be punched, relayed when none works (organisation mode or an nf1... address; not when the agent's service is off): the agent learns this machine's public and LAN addresses and this one the agent's; --direct=off relayed only; without it the machine's org_direct (nfltr config set-direct), on when unset; an nf1... address served with no account runs on a direct path only, so with --direct=off, or when no direct path works, it exits 12 direct_required |
--exit-with-parent | — | stop and exit 8 when the process that started forward exits |
--listen endpoint | — | local endpoint: host:port (a host-less :PORT binds 127.0.0.1; name a host such as 0.0.0.0 to serve other machines), unix:<path> (a 0600 socket in a directory only you can write to) or pipe:<name> (Windows named pipe, current user only) |
--log-format string | text | events on stderr: text or json |
--max-datagram bytes | — | udp: listen: the largest datagram in bytes (default and at most 65535); a larger one is dropped |
--open-timeout duration | 10s | give up opening the session after this duration; an offline agent is waited for until then (exit 3, else 5); an nf1 address defaults to 60s unless --direct=off, the direct-path bound of an address served with no account (exit 12 at 55s) |
--plain | — | open this session plain on purpose (the relay can read it), to a service that is not in organisation mode; without it an enrolled machine's session is end to end encrypted in organisation mode |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay address (host:port); grpc.<domain> is reached over HTTP at <domain> |
--status endpoint | — | serve GET /status (JSON: this mapping as nfltr up's mappings row, with a udp listen's flows and drops by reason) and GET /metrics on a local endpoint: 127.0.0.1:<port>, unix:<path> or pipe:<name> |
--tls | true | use TLS for the relay connection |
--tls-cert file | — | client certificate file the relay's mTLS identity provider authenticates (with --tls-key), instead of this machine's certificate |
--tls-key file | — | client key file for --tls-cert |
--token-file file | — | read an identity provider's token (the relay's OIDC identity provider), never an nfltr key, from this file (mode 0600 on Unix; read again at each connection, so a token helper may rewrite it; default $NFLTR_TOKEN_FILE); it is the credential instead of this machine's certificate |
--udp | — | the target is a udp service; --listen is udp:host:port |
--udp-idle duration | 60s | udp: listen: close a flow (one source address) with no datagram either way for this duration |
--udp-max-flows flows | — | udp: listen: at most this many open flows (default 256); a new source past it is dropped |
--udp-queue int | — | udp: listen: datagrams queued per flow toward the remote (default 64); past it a datagram is dropped |
Example:
nfltr cat forward home/db --listen 127.0.0.1:5432
nfltr cat ssh
Run ssh to a service nfltr cat serve --ssh serves
nfltr cat ssh [user@]<target> [-- ssh args]
| Flag | Default | Description |
|---|---|---|
--address-file file | — | read the target, an nf1... address, from this file (mode 0600 on Unix), or from stdin with - (not cat pipe's: its stdin is the session); an address is a secret, refused on the command line |
--cert-sha256 fingerprint | — | accept only the relay certificate with this SHA-256 fingerprint; without it a pin saved by nfltr config set-relay --cert-sha256 applies |
--direct | — | move sessions to a direct path to the agent's machine when one can be punched, relayed when none works (organisation mode or an nf1... address; not when the agent's service is off): the agent learns this machine's public and LAN addresses and this one the agent's; --direct=off relayed only; without it the machine's org_direct (nfltr config set-direct), on when unset; an nf1... address served with no account runs on a direct path only, so with --direct=off, or when no direct path works, it exits 12 direct_required |
--exit-with-parent | — | end the session and exit 8 when the process that started pipe exits |
--open-timeout duration | 10s | give up opening the session after this duration; an offline agent is waited for until then (exit 3, else 5); an nf1 address defaults to 60s unless --direct=off, the direct-path bound of an address served with no account (exit 12 at 55s) |
--plain | — | open this session plain on purpose (the relay can read it), to a service that is not in organisation mode; without it an enrolled machine's session is end to end encrypted in organisation mode |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay address (host:port); grpc.<domain> is reached over HTTP at <domain> |
--tls | true | use TLS for the relay connection |
--tls-cert file | — | client certificate file the relay's mTLS identity provider authenticates (with --tls-key), instead of this machine's certificate |
--tls-key file | — | client key file for --tls-cert |
--token-file file | — | read an identity provider's token (the relay's OIDC identity provider), never an nfltr key, from this file (mode 0600 on Unix; read again at each connection, so a token helper may rewrite it; default $NFLTR_TOKEN_FILE); it is the credential instead of this machine's certificate |
Example:
nfltr cat ssh admin@home/ssh
nfltr cat cp
Copy files and directories to a service nfltr cat serve --recv serves (organisation mode or an nf1... address; never plain)
nfltr cat cp <file|dir>... <target>
| Flag | Default | Description |
|---|---|---|
--address-file file | — | read the target, an nf1... address, from this file (mode 0600 on Unix), or from stdin with - (not cat pipe's: its stdin is the session); an address is a secret, refused on the command line |
--cert-sha256 fingerprint | — | accept only the relay certificate with this SHA-256 fingerprint; without it a pin saved by nfltr config set-relay --cert-sha256 applies |
--direct | — | move sessions to a direct path to the agent's machine when one can be punched, relayed when none works (organisation mode or an nf1... address; not when the agent's service is off): the agent learns this machine's public and LAN addresses and this one the agent's; --direct=off relayed only; without it the machine's org_direct (nfltr config set-direct), on when unset; an nf1... address served with no account runs on a direct path only, so with --direct=off, or when no direct path works, it exits 12 direct_required |
--exit-with-parent | — | end the transfer and exit 8 when the process that started cp exits |
--open-timeout duration | 10s | give up opening the session after this duration; an offline agent is waited for until then (exit 3, else 5); an nf1 address defaults to 60s unless --direct=off, the direct-path bound of an address served with no account (exit 12 at 55s) |
--plain | — | refused: what lands on disk must not be alterable by the relay |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay address (host:port); grpc.<domain> is reached over HTTP at <domain> |
--tls | true | use TLS for the relay connection |
--tls-cert file | — | client certificate file the relay's mTLS identity provider authenticates (with --tls-key), instead of this machine's certificate |
--tls-key file | — | client key file for --tls-cert |
--token-file file | — | read an identity provider's token (the relay's OIDC identity provider), never an nfltr key, from this file (mode 0600 on Unix; read again at each connection, so a token helper may rewrite it; default $NFLTR_TOKEN_FILE); it is the credential instead of this machine's certificate |
Example:
nfltr cat cp report.pdf laptop/inbox
nfltr cat serve
Serve a service of this machine: stdio (one session), a TCP or UDP target, the embedded SSH server, a command, a receiving directory or a perf sink
nfltr cat serve <service> [--forward host:port | --udp (--forward host:port | --perf) | --ssh | --exec -- argv | --recv DIR | --perf]
| Flag | Default | Description |
|---|---|---|
--address | — | serve it under a capability address (nf1...): reached with no account, end to end; printed once, kept for restarts |
--address-file file | — | with --address or --show-address: write the address to this file (created or replaced mode 0600 at every start) instead of printing it; the client reads it with --address-file |
--agent name | this machine's name in its account, else one derived from the hostname | agent name the service is under |
--allow-group group | — | organisation group whose machines may open sessions (repeatable or comma separated): organisation mode, end to end |
--authorized-keys file | ~/.ssh/authorized_keys | authorized_keys file of --ssh |
--browser-direct | — | with --address: let browser visitors (the nfltr extension) open streams on WebRTC data channels to this machine, which shows them its addresses (off: the relay path only) |
--browser-stun host:port | — | with --browser-direct: the STUN server host:port its answers name, so visitors behind NAT can reach this machine (none unless given: host candidates only) |
--direct mode | — | direct paths for its organisation or --address sessions: mode on or off (unset: organisation mode takes the machine's org_direct, on unless nfltr config set-direct off; --address with an account: off; off hides this machine's addresses from its peers; --address with no account: off refused, its sessions are direct only) |
--exec | — | run the command after -- for each session (needs --allow-group or --address) |
--exit-with-parent | — | stop and exit 8 when the process that started serve exits |
--forward host:port | — | serve every session to this TCP host:port |
--max-sessions sessions | — | refuse a session beyond this many open sessions (0: no limit; --exec: default 1) |
--new-address | — | with --address: replace the service's address (the old one stops working) |
--once | — | exit after the first session |
--perf | — | serve a perf sink for nfltr cat perf |
--publish group | — | also serve it by name as <service>@group (organisation mode; this machine's certificate must hold the group) |
--recv directory | — | receive nfltr cat cp transfers into this directory (needs --allow-group or --address) |
--relay-cap size | — | with --address: what the relay may carry a UTC day for this address's sessions (but those opened with your own account), a size (4GiB, 500MB; 0 refuses every one: a session starts relayed); past it they are refused (exit 4) until 00:00 UTC (default: the relay's, 4GiB unless its operator sets nf1.relay_cap) |
--replace | — | take the agent over from the process serving it (that one exits 13); without it a second process of the agent is refused (exit 14) |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay gRPC address (host:port) |
--session-timeout duration | — | close a session after this duration (0: none; --exec: default 60s, then the command is killed) |
--show-address | — | print the service's address (--address) to stdout and exit (a shell's > file is readable by others under the usual umask: --address-file writes it owner-only) |
--ssh | — | serve the embedded SSH server (keys only; needs this machine enrolled: nfltr org join) |
--status endpoint | — | serve GET /status (JSON: nfltr up's status document, with a udp service's flows and drops by reason) and GET /metrics on a local endpoint: 127.0.0.1:<port>, unix:<path> or pipe:<name> |
--tls | true | use TLS for the relay connection |
--tls-cert file | — | client certificate file the relay's mTLS identity provider authenticates (with --tls-key, instead of the machine certificate; the relay's CA from $NFLTR_TLS_CA_FILE) |
--tls-key file | — | client key file for --tls-cert |
--token-file file | — | read an identity provider's token (the relay's OIDC identity provider), never an nfltr key, from this file (mode 0600 on Unix; read again at each connection, so a token helper may rewrite it; default $NFLTR_TOKEN_FILE); it is the credential instead of this machine's certificate |
--udp | — | a datagram service: --forward is a UDP host:port (clients: nfltr cat forward --udp) |
Example:
nfltr cat serve db --forward localhost:5432 --allow-group ops
nfltr services
The services this machine may reach, by the name a client dials (<where>/<service>) and its local name, with their instances and health
nfltr services [--watch] [--json] [<name>]
Tutorials: Organisations
| Flag | Default | Description |
|---|---|---|
--json | — | JSON: the listing as an array; with --watch, one change per line |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay address (host:port) |
--tls | true | use TLS for the relay connection |
--watch | — | after the listing, print each change until interrupted |
Example:
nfltr services db/pg
nfltr up
Run several http and tcp services from one config file in one process
nfltr up [-c nfltr.yaml] [flags]
Tutorials: Share a local app
| Flag | Default | Description |
|---|---|---|
--c file | nfltr.yaml | services config file |
--config file | nfltr.yaml | services config file (same as -c) |
--drain long | 5s | at shutdown, let open connect: sessions and the open sessions of published services run this long before closing them (services leave the relay at once) |
--exit-with-parent | — | stop everything and exit 8 when the process that started nfltr up exits |
--http-addr address | — | HTTP address of the relay for share URLs and connect: sessions |
--log-format string | text | connect: events on stderr: text or json (one JSON object per line, as nfltr cat) |
--open-timeout long | 10s | a connect: session that has not opened after this long fails (code unreachable); an offline agent is waited for until then (code not_found); an nf1 mapping defaults to 60s unless direct: off, the direct-path bound of an address served with no account (direct_required at 55s) |
--replace | — | take the agents over from the process serving them on this machine (that one exits 13); without it a second process of an agent is refused (exit 14) |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay gRPC address (host:port) for every service |
--token-file file | — | read an identity provider's token (the relay's OIDC identity provider), never an nfltr key, from this file (mode 0600 on Unix; read again at each connection, so a token helper may rewrite it; default $NFLTR_TOKEN_FILE); it is the credential instead of this machine's certificate |
Example:
nfltr up
nfltr share
Share text, a file, or stdin via an ephemeral URL
nfltr share [text|file|dir] [flags] | --follow <file> | --every <interval> -- <command>
Tutorials: Share a local app · Share a log file or command output
| Flag | Default | Description |
|---|---|---|
--acme-domain domain | — | obtain Let's Encrypt certificate for domain (implies --e2ee; requires port 443 reachable) |
--agent string | this machine's name, then -share | agent identity |
--basic-auth user:password | $NFLTR_BASIC_AUTH | HTTP Basic Auth user:password |
--capability value | — | additional capability identifier to advertise on the shared tunnel (repeatable) |
--e2ee | true | enable E2EE TLS termination (generates self-signed cert; clients connect via SNI router) |
--e2ee-cert file | — | TLS certificate file for E2EE termination (implies --e2ee) |
--e2ee-key file | — | TLS key file for E2EE termination (implies --e2ee) |
--every interval | — | run the command after -- every interval (at least 500ms) and share its latest output live |
--expire duration | — | end the share URL and this command after duration (e.g. 30m, 1h, 24h; the relay may cap it) |
--file file | — | path to file to share (mutually exclusive with stdin) |
--follow | — | share FILE's live tail (tail -f): new lines appear on the page as they are written |
--health-addr address | 127.0.0.1:0 | health check HTTP endpoint address |
--http-addr address | — | HTTP address of the relay for share and control-plane APIs |
--json | — | emit share metadata as JSON {share_id, url, expires_at, size_bytes} |
--lines lines | 50 | with --follow: trailing lines shown at first |
--mode verified | — | tunnel mode: verified or `inspectable` (preferred over --e2ee) |
--no-share | — | disable automatic share URL |
--raw | — | serve text as plain text (no HTML wrapper) |
--replace | — | take the agent over from another nfltr process serving it on this machine (that one exits 13); without it a second one is refused (exit 14) |
--retries attempts | 12 | connection retry attempts |
--retry-wait seconds | 5 | seconds between connection attempts once an outage passes a minute, doubling on repeated failures (a second at most before that) |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay gRPC address (host:port) |
--share | true | request a public share URL after connecting (default: true) |
--share-auth user:password | $NFLTR_SHARE_AUTH | HTTP Basic Auth user:password for share URL visitors |
--share-bearer token | — | require Bearer token for share URL visitors |
--share-header Header=Value | — | require HTTP Header=Value for share URL visitors (repeatable) |
--share-ip-allowlist IP/CIDR | — | comma-separated IP/CIDR allowlist for share URL visitors |
--share-login | — | share URL visitors must sign in to the relay's accounts as this machine's owner (or a --share-login-allow email); not with an agent certificate (--e2ee-cert, --acme-domain) or --mode passthrough |
--share-login-allow emails | — | comma-separated emails a --share-login share also admits |
--share-preset public | — | share workflow preset: public, `review`, or `webhook` |
--share-ttl duration | — | how long the share URL lives without a visit, duration (for example 30m or 2h; default and cap: the relay's, 24h on nfltr.xyz); each visit starts it again |
--tcp-forward host:port | — | optional local TCP host:port exposed through the same agent identity (for example localhost:22 or localhost:3389) |
--tls | true | enable TLS for the gRPC connection |
--tls-ca file | — | CA bundle file |
--tls-cert file | — | client certificate file for mTLS |
--tls-key file | — | client key file for mTLS |
Example:
nfltr share "error: connection refused"
nfltr config
Manage nfltr configuration (sign in, the relay)
nfltr config <command>
Tutorials: Getting started
| Command | Description |
|---|---|
nfltr config login | Sign this machine in with your browser, or with a code, a group token or an OIDC token (once: it stays signed in by itself) |
nfltr config set-relay | Use your own relay (beta): its gRPC address, HTTPS URL, pinned certificate and, with --code-file, this machine's enrolment |
nfltr config set-direct | Direct paths for this machine's organisation sessions and services that name none (direct: or --direct wins; on by default; off hides this machine's addresses from its peers) |
nfltr config list | Show the configuration file's path and current configuration (exit 1 when the file is not valid) |
nfltr config logout | Leave the account: an operator machine revokes itself (not the account's last operator), then this machine's certificate, key and organisation membership are removed, each path named |
nfltr config login
Sign this machine in with your browser, or with a code, a group token or an OIDC token (once: it stays signed in by itself)
nfltr config login [--no-browser] [--machine name] | --code <code> | --code-file <file> | --token <file> --machine <name> | --oidc-token <file>
| Flag | Default | Description |
|---|---|---|
--code code | — | enrol this machine instead, with the enrolment code the dashboard's Add machine shows (no browser) |
--code-file file | — | enrol with the enrolment code in file (- reads stdin): --code kept off the command line |
--machine string | — | this machine's name in the account (lower-case letters, digits, '-'; default: one the relay makes, renamed with nfltr machines rename); dial its services as <machine>.<service> |
--no-browser | — | print the sign-in URL instead of opening a browser (headless or remote shells) |
--oidc-token file | — | enrol this machine (a CI job, a cloud VM) with its OIDC token from file (- reads stdin) |
--replace | — | enrol although this machine holds a good certificate: a new machine replaces it here (revoke the old one with nfltr machines revoke) |
--timeout duration | 10m0s | how long to wait for the browser sign-in |
--token file | — | enrol this machine with a group enrolment token from file (- reads stdin) and --machine as its name |
Example:
nfltr config login --no-browser
nfltr config set-relay
Use your own relay (beta): its gRPC address, HTTPS URL, pinned certificate and, with --code-file, this machine's enrolment
nfltr config set-relay <host:port> --proxy-url URL [--cert-sha256 FP] [--code-file F] | --reset
| Flag | Default | Description |
|---|---|---|
--cert-sha256 fingerprint | — | SHA-256 fingerprint of the relay's self-signed certificate (nfltr relay serve prints it); omit for a CA-issued certificate |
--code-file file | — | then enrol this machine with a certificate, with the enrolment code in file (- reads stdin) from nfltr-relay machines code |
--proxy-url url | — | the relay's HTTPS url (nfltr relay serve prints it) |
--replace | — | with --code-file: enrol although this machine holds a good certificate (a new machine replaces it here) |
--reset | — | forget the saved relay (server, URL, pin): back to nfltr.xyz |
Example:
nfltr config set-relay relay.lan:8443 --proxy-url https://relay.lan:8444 --cert-sha256 <fingerprint> --code-file - < admin-enrol-code
nfltr config set-direct
Direct paths for this machine's organisation sessions and services that name none (direct: or --direct wins; on by default; off hides this machine's addresses from its peers)
nfltr config set-direct on|off
Example:
nfltr config set-direct on
nfltr config list
Show the configuration file's path and current configuration (exit 1 when the file is not valid)
nfltr config list
Example:
nfltr config list
nfltr config logout
Leave the account: an operator machine revokes itself (not the account's last operator), then this machine's certificate, key and organisation membership are removed, each path named
nfltr config logout
Example:
nfltr config logout
nfltr machines
List, rename, move and revoke the account's machines
nfltr machines [list|rename|move|revoke] ...
| Command | Description |
|---|---|
nfltr machines list | List the account's machines: name, id, group |
nfltr machines rename | Give a machine a new name (its id, agents and open sessions stay) |
nfltr machines move | Move a machine to another group |
nfltr machines revoke | Revoke a machine: its sessions are cut and its key refused |
nfltr machines code | Print a single-use enrolment code for one machine (nfltr config login --code-file) |
nfltr machines list
List the account's machines: name, id, group
nfltr machines list [--json]
Example:
nfltr machines list
nfltr machines rename
Give a machine a new name (its id, agents and open sessions stay)
nfltr machines rename <machine> <new name>
Example:
nfltr machines rename box1 build-01
nfltr machines move
Move a machine to another group
nfltr machines move <machine> <group>
Example:
nfltr machines move build-01 ci
nfltr machines revoke
Revoke a machine: its sessions are cut and its key refused
nfltr machines revoke <machine>
Example:
nfltr machines revoke build-01
nfltr machines code
Print a single-use enrolment code for one machine (nfltr config login --code-file)
nfltr machines code --name <machine> [--group <group>]
Example:
nfltr machines code --name build-01 --group ci
nfltr groups
List the account's groups and reach rules; add and remove rules
nfltr groups [list|allow|remove-rule] ...
| Command | Description |
|---|---|
nfltr groups list | List groups and reach rules |
nfltr groups allow | Let a group or a machine list or dial another group's machines |
nfltr groups remove-rule | Remove a reach rule |
nfltr groups token | Print a group enrolment token (nfltr config login --token) |
nfltr groups list
List groups and reach rules
nfltr groups list [--json]
Example:
nfltr groups list
nfltr groups allow
Let a group or a machine list or dial another group's machines
nfltr groups allow <from group | machine> <to group> [list,dial]
Example:
nfltr groups allow ci prod dial
nfltr groups remove-rule
Remove a reach rule
nfltr groups remove-rule <rule id>
Example:
nfltr groups remove-rule <rule id>
nfltr groups token
Print a group enrolment token (nfltr config login --token)
nfltr groups token <group> [--max n] [--ttl d] [--label k=v]
Example:
nfltr groups token ci --max 5 --ttl 24h
nfltr org
Your organisation's root of trust: its issuer, bootstrap tokens, revocation, rotation and audit log
nfltr org init|issuer renew|issuer sign|token|revoke|approve|rotate|audit|serve|status|move|join|trust ...
Tutorials: Organisations
| Command | Description |
|---|---|
nfltr org init | Make the root (a passphrase-encrypted file, or a Mac's Secure Enclave with its helper), the recovery key and the issuer |
nfltr org issuer | Certify the issuer for 30 more days and checkpoint its log (Touch ID or passphrase) |
nfltr org token | A single-use bootstrap token for a new machine name |
nfltr org revoke | Revoke a name and write the issuer's new CRL |
nfltr org approve | On the root's machine: approve the dashboard's revoke and renew wishes (one Touch ID or passphrase each), or decline one |
nfltr org rotate | Move to a new root, certified by the recovery key |
nfltr org audit | Print or check the issuer's hash-chained log |
nfltr org serve | The issuer's service on the relay in the foreground: enrolments, renewals, the CRL and the root |
nfltr org status | The issuer's certificate, the CRL's next update and whether a process serves it (exit 1 when not) |
nfltr org move | Move the issuer to another machine: receive there, send here, finish here once it serves |
nfltr org join | On a machine: enrol it with a single-use token |
nfltr org trust | Trust the organisation's nfltr cat serve --ssh hosts in ssh's known_hosts |
nfltr org init
Make the root (a passphrase-encrypted file, or a Mac's Secure Enclave with its helper), the recovery key and the issuer
nfltr org init --groups <g,g> --recovery-out <file> [--root file|secure-enclave]
| Flag | Default | Description |
|---|---|---|
--groups groups | — | the groups the issuer may issue, comma separated (required) |
--key-label label | org | the root's label: the Secure Enclave key's keychain label, or the file root-<label>.key |
--recovery-out FILE | — | write the recovery key to FILE (required; move it offline: it alone rotates the root) |
--root kind | — | the root primary's kind: file (a passphrase-encrypted file) or secure-enclave (a Mac's Secure Enclave; needs the helper nfltr-approval-signer, which the release does not include yet) |
Example:
nfltr org init --groups web,db --recovery-out /Volumes/USB/recovery.key
nfltr org issuer
Certify the issuer for 30 more days and checkpoint its log (Touch ID or passphrase)
nfltr org issuer renew [--groups <g,g>]
Example:
nfltr org issuer renew
nfltr org token
A single-use bootstrap token for a new machine name
nfltr org token --name <name> --group <g,g> [--machine-id <id>] [--ttl 1h]
| Flag | Default | Description |
|---|---|---|
--bundle | — | print the join bundle (lines root, recovery and token) instead of the bare token: after an own relay's enrolment code (code <code>), the file nfltr config login --code-file enrols and joins with |
--group groups | — | its groups, comma separated (required) |
--machine-id id | — | its A2A machine id, carried in its certificate |
--name name | — | the new machine's name (required) |
--rebind name | — | an enrolled name to move to --machine-id |
--ttl duration | 1h0m0s | how long the token can be redeemed |
Example:
nfltr org token --name web-1 --group web --ttl 1h
nfltr org revoke
Revoke a name and write the issuer's new CRL
nfltr org revoke <name>
Example:
nfltr org revoke web-7
nfltr org approve
On the root's machine: approve the dashboard's revoke and renew wishes (one Touch ID or passphrase each), or decline one
nfltr org approve [<wish id> | --decline <wish id>]
| Flag | Default | Description |
|---|---|---|
--decline | — | drop the wish, signing nothing |
--wait duration | 2m0s | how long to wait for the issuer (nfltr org serve) to apply the order or install the renewal |
Example:
nfltr org approve w-3f9a
nfltr org rotate
Move to a new root, certified by the recovery key
nfltr org rotate --recovery-key-file <file|->
| Flag | Default | Description |
|---|---|---|
--key-label label | — | the new root's label (default: the current one with the date) |
--recovery-key-file FILE | — | the recovery key FILE, - for stdin (required) |
Example:
nfltr org rotate --recovery-key-file -
nfltr org audit
Print or check the issuer's hash-chained log
nfltr org audit [--verify] [--json]
| Flag | Default | Description |
|---|---|---|
--json | — | print the log's lines as they are |
--verify | — | check the chain and every signature of the log |
Example:
nfltr org audit --verify
nfltr org serve
The issuer's service on the relay in the foreground: enrolments, renewals, the CRL and the root
nfltr org serve
Example:
nfltr org serve
nfltr org status
The issuer's certificate, the CRL's next update and whether a process serves it (exit 1 when not)
nfltr org status
Example:
nfltr org status
nfltr org move
Move the issuer to another machine: receive there, send here, finish here once it serves
nfltr org move receive --root <fp> [--from <file>] | send --to <receive key> [--out <file>] [--restored] | finish
Example:
nfltr org move receive --root sha256:...
nfltr org join
On a machine: enrol it with a single-use token
nfltr org join --root <fp> --recovery <fp> --token-file <file|->
| Flag | Default | Description |
|---|---|---|
--a2a-pin pin | — | this machine's A2A key pin from its token's provisioning ("<key id> sha256:..."), where the issuer is not beside the hubs: the hubs' machine seals the key and this join takes it; on an enrolled machine without its key, it only takes the key |
--recovery fingerprint | $NFLTR_ORG_RECOVERY | its recovery key's fingerprint |
--root fingerprint | $NFLTR_ORG_ROOT | the organisation root's fingerprint, sha256:... |
--token-file file | — | the single-use token's file, - for stdin (required) |
--wait duration | 2m0s | how long to wait for the issuer (nfltr org serve), and with --a2a-pin for the hubs' key |
Example:
nfltr org join --root sha256:... --recovery sha256:... --token-file -
nfltr org trust
Trust the organisation's nfltr cat serve --ssh hosts in ssh's known_hosts
nfltr org trust [--known-hosts <file>] [--print]
| Flag | Default | Description |
|---|---|---|
--known-hosts file | ~/.ssh/known_hosts | the known_hosts file to write |
--print | — | print the line, write no file |
Example:
nfltr org trust
nfltr status
Check the relay and this machine's sign-in; on failure, diagnose the path (DNS, TCP, TLS, gRPC)
nfltr status [flags]
Tutorials: Diagnostics
| Flag | Default | Description |
|---|---|---|
--json | — | output as JSON (for scripting/CI) |
--quiet | — | suppress info lines; print only the status summary |
--server address | $NFLTR_SERVER, else grpc.nfltr.xyz:443 | relay gRPC address (host:port) |
--tls | true | server uses TLS |
Example:
nfltr status
nfltr replay
Replay captured traffic against a local server
nfltr replay <capture-file> --target <url> [flags]
| Flag | Default | Description |
|---|---|---|
--delay milliseconds | — | milliseconds between requests (0 = as fast as possible) |
--dry-run | — | print requests without executing them |
--json | — | emit per-message status as JSON lines on stdout |
--method method | — | only replay requests matching this HTTP method (e.g. GET, POST) |
--path substring | — | only replay requests whose URL contains this substring |
--preserve-host | — | send the original Host header |
--rate float | — | max requests per second (0 = unlimited) |
--target URL | — | base URL to replay requests against (required) |
--timeout seconds | 30 | request timeout in seconds |
--verbose | — | print response bodies |
Example:
nfltr replay capture.json --target http://localhost:3000
nfltr update
Self-update to the latest version
nfltr update [flags]
Example:
nfltr update --check
nfltr completion
Generate shell completion script (bash, zsh)
nfltr completion <bash|zsh>
| Command | Description |
|---|---|
nfltr completion bash | Generate bash completion |
nfltr completion zsh | Generate zsh completion |
nfltr completion bash
Generate bash completion
nfltr completion bash
Example:
eval "$(nfltr completion bash)"
nfltr completion zsh
Generate zsh completion
nfltr completion zsh
Example:
eval "$(nfltr completion zsh)"
nfltr version
Print version information
nfltr version [--json]
| Flag | Default | Description |
|---|---|---|
--json | — | emit structured build metadata as JSON |
Example:
nfltr version
nfltr help
Show this help
nfltr help
Example:
nfltr help
Orchestration commands
The orchestration commands belonged to nfltr-orch, which is no longer part of nfltr and is not publicly available.
Authentication
Each machine authenticates with a machine certificate its relay signed; one NFLTR_CONFIG directory (default ~/.config/nfltr/) is one machine.
# Sign in in a browser: the relay signs this machine's certificate
nfltr config login
# Headless: a single-use code from the dashboard's Add machine (or nfltr machines code)
nfltr config login --code-file - < code
# Your own relay: its address, pin and the code its data dir holds
nfltr config set-relay relay.example:8443 --proxy-url https://relay.example:8443 --cert-sha256 <pin> --code-file - < admin-enrol-code
# All subsequent commands present the certificate automatically
nfltr http 8080
nfltr status
mTLS identity providers
A relay with an mTLS identity provider also accepts certificates of its own CA:
nfltr cat pipe home/db \
--tls-cert client.crt \
--tls-key client.key
Features
Share URLs
Share URLs are enabled by default. Every nfltr http session automatically gets a temporary public URL with a random code (e.g., https://k3vq7mzt2xw4hn5rbsd6jyfa2e.nfltr.page/). Share URLs:
- Are accessible without authentication
- Use a random 26-character code as the subdomain
- Expire when the agent disconnects
- Are revoked automatically on disconnect
nfltr http 8080
# → Share URL: https://k3vq7mzt2xw4hn5rbsd6jyfa2e.nfltr.page/
# Disable with --no-share:
nfltr http 8080 --no-share
Multi-Backend Routing
Route different URL paths to different local services:
nfltr http 8080 \
--route /api=3000 \
--route /ws=4000 \
--route /admin=https://localhost:9443
| Path | Target |
|---|---|
/api/* | http://localhost:3000 |
/ws/* | http://localhost:4000 |
/admin/* | https://localhost:9443 |
| Everything else | http://localhost:8080 |
The prefix is stripped and the rest of the path is appended to the target's own path: /api/users reaches http://localhost:3000/users, and with --route /hook=http://localhost:9000/github, /hook/tasks reaches http://localhost:9000/github/tasks.
To expose only part of a service (for example one webhook endpoint), list the path prefixes to forward: nfltr http 8000 --allow-path /github. Any other path gets 404 from the agent and never reaches the service. Paths with .., // or an encoded slash are refused too. --allow-path turns off end-to-end TLS, because the agent must see each request.
Verbose Request Logging
With --verbose, every proxied request is logged:
[1] GET / → http://localhost:8080/ → 200 (4521 bytes, txn=abc123)
[2] GET /style.css → http://localhost:8080/style.css → 200 (1200 bytes, txn=def456)
[3] POST /api/login → http://localhost:3000/login → 200 (89 bytes, txn=ghi789)
Auto-Reconnect
nfltr automatically reconnects when the connection drops:
- Default: 12 retry attempts with 5-second intervals
- Configure:
--retries 30 --retry-wait 10 - Total resilience window:
retries × retry-waitseconds
Duration Limit
Auto-stop after a fixed duration (useful for demos):
nfltr http 8080 --duration 3600 # Stop after 1 hour
Health Endpoint
nfltr exposes a local HTTP health endpoint (default :29501) for integration with monitoring tools:
nfltr http 8080 --health-addr :9999
# Health check: http://localhost:9999/health
Environment Variables
| Variable | Description | Used By |
|---|---|---|
NFLTR_SERVER | Server gRPC address | all commands |
NFLTR_PROXY_URL | Proxy API base URL | mcp |
NFLTR_CONFIG | Config file path override: the machine (its certificate beside it) | all commands |
AGENT_ID | Agent identity | http, tcp |
RPC_TLS | Enable TLS (true/false) | all commands |
NFLTR_TLS_CERT_FILE | mTLS client certificate | http, tcp |
NFLTR_TLS_KEY_FILE | mTLS client key | http, tcp |
NFLTR_TLS_CA_FILE | mTLS CA bundle | http, tcp |
HEALTH_ADDR | Health endpoint address | http |
REQUEST_TIMEOUT | Request timeout (seconds) | http |
CONNECT_RETRIES | Retry attempts | http, tcp |
RETRY_WAIT | Retry interval (seconds) | http, tcp |
DURATION | Max runtime (seconds) | http |
VERBOSE | Verbose logging | http, tcp |
NFLTR_BASIC_AUTH | Basic auth credentials | http |
NFLTR_SHARE_AUTH | Basic auth for share URL visitors | http |
NFLTR_SHARE_BEARER | Bearer token for share URL visitors | http |
NFLTR_SHARE_IP_ALLOWLIST | IP/CIDR allowlist for share URLs | http |
NFLTR_LABELS | Comma-separated key=value labels | http, tcp |
SHARE | Request a public share URL | http |
STUN_SERVER | STUN server for NAT traversal | p2p |
A2A_TIMEOUT | A2A request timeout (seconds) | a2a |
Quick Command Map
| Task | nfltr command |
|---|---|
| Expose HTTP | nfltr http 8080 |
| Create a stable named endpoint | nfltr http 8080 --agent myapp |
| Create a public share URL | nfltr http 8080 --share |
| Serve a TCP service of this machine | nfltr cat serve db --forward localhost:5432 --allow-group ops |
| Expose a remote TCP service on localhost | nfltr cat forward home/db --listen 127.0.0.1:5432 |
| Route a path to a second local service | nfltr http 8080 --route /api=3000 |
| Run connectivity diagnostics | nfltr status |
| Enrol this machine | nfltr config login |
| Manage machines | nfltr machines |
| Use nfltr as SSH ProxyCommand | nfltr cat pipe --plain web-1/ssh |
| Send messages between machines | nfltr cat pipe / cat serve |
| Send files between machines | nfltr cat cp / cat serve --recv |
| Check server status | nfltr status |
| Connect with mTLS | nfltr http 8080 --tls-cert agent.crt --tls-key agent.key |