nostr-vpn
nostr-vpn is a Tailscale-style private mesh VPN with a data plane powered by our independently evolved FIPS implementation, based on the original FIPS project. It also includes an experimental marketplace for byte-metered public exit nodes paid in Bitcoin through Cashu.
Nostr identities and signed rosters control enrollment; peers connect directly when possible and route through FIPS neighbors when direct UDP is unavailable. MagicDNS, subnet routes, exit nodes, and WireGuard upstream egress are built in. The project includes the nvpn CLI and daemon plus native apps for macOS, Linux, Windows, Android, and iOS.
Connect people, servers, and agent hosts without an email, phone number, or VPN
provider account. See agent onboarding and headless approval
and the agent plugin.
The fork is optimized for high-rate VPN traffic. In comparable direct-path benchmarks it delivers roughly three times the original implementation's throughput by keeping packet ownership, buffers, and session state together, batching I/O and cryptography, reusing packet storage, and avoiding packet-by-packet queue hops, allocations, copies, and repeated lookups. It preserves the FIPS protocol surface.
Install
Desktop apps target Apple Silicon macOS and x64 Linux/Windows; mobile builds target arm64, and CLI archives also cover Linux arm64. StartOS and Umbrel support x86_64/amd64 and arm64. Intel macOS is source-only.
On Debian or Ubuntu, building the CLI with Cargo requires pkg-config and
libdbus-1-dev (sudo apt install pkg-config libdbus-1-dev). The prebuilt CLI
archives do not require these development packages.
CLI Quick Start
Create a network on the first device:
nvpn init
DEVICE_ID='<paste nostr_pubkey from nvpn init>'
nvpn set --device "$DEVICE_ID"
nvpn start --daemon --connect
On another device, start its daemon, generate a signed join request, and scan or paste the request into an admin's Nostr VPN app:
nvpn init
nvpn start --daemon --connect
nvpn join-request
On the admin device, open Devices → Add Join Request, scan or paste the
request, check the device details, and confirm Add device. Approval is not
automatic. The admin app signs and distributes the updated roster; this flow
does not need a separate add-device --publish command. Keep the joining
daemon running until it receives approval. For CLI inspection and approval,
see the headless enrollment guide.
The daemon lifecycle is:
nvpn start --daemon --connect
nvpn status
nvpn stop
For startup at boot on Linux or macOS, pass the absolute path of the
configuration you initialized to sudo nvpn service install --config <path>.
Stop a separately started daemon with nvpn stop before installing the service.
Use the same --config <path> with nvpn status, nvpn set, and
nvpn service status; run these with sudo if the service owns the configuration
or state files. Without an explicit path, an elevated command can select a
different user's configuration and create a separate identity and network.
On Windows, run nvpn service install from an elevated shell and check it with
nvpn service status.
Linux update checks select packages for your distribution and architecture. Automatic downloads stay in the background and are remembered across app restarts. Choose Show download to open the folder and install the package; the app never opens an installer or browser automatically.
Containers and headless nodes
Use a Linux CLI archive matching the container architecture. Persist the config
directory, including its key sidecars, and pass the same --config path to every
command. The Umbrel image and Compose files provide an existing packaged
daemon and web interface; Dockerfile.e2e is a source-built test fixture.