macOS
brew install boringtunlocal Homebrew formula metadata
brew
Userspace WireGuard implementation in Rust. Version 0.7.1 via Homebrew; verified 2026-05-02.
install
brew install boringtunlocal Homebrew formula metadata
nix profile install nixpkgs#boringtunnixpkgs package indexes · pkgs/by-name/bo/boringtun/package.nix · source: api.github.com
overview
Userspace WireGuard implementation in Rust
history
BoringTun is Cloudflare's Rust userspace implementation of the WireGuard protocol, distributed as both a library and the boringtun-cli command-line tool.
Cloudflare announced BoringTun publicly on March 27, 2019 after evaluating existing WireGuard implementations and choosing Rust for a portable, memory-safe, high-performance userspace implementation. The repository itself was created in October 2018, matching the blog's account that the project had been under development before the source release.
The README describes two deliverables: boringtun-cli for Linux and macOS userspace tunnels, and the boringtun library for client applications that supply their own platform-specific tunnel and network stacks.
BoringTun's adoption story is unusually concrete for a low-level networking library: Cloudflare's README says it is deployed on millions of iOS and Android consumer devices and thousands of Cloudflare Linux servers.
Cloudflare's WARP posts tie BoringTun to the 1.1.1.1/WARP client stack, making it part of a large production VPN deployment rather than only a reference implementation.
As a CLI, boringtun-cli starts a userspace WireGuard tunnel for an interface and can be used with wg and wg-quick through WG_QUICK_USERSPACE_IMPLEMENTATION. As a library, it exposes the WireGuard protocol machinery for clients that implement their own transport and tunnel integration.
Because it is userspace and permissively licensed, BoringTun is useful where the Linux kernel WireGuard module is unavailable or where client apps need portable WireGuard behavior across mobile and desktop platforms.
BoringTun matters to package nerds because it is a Rust networking primitive with a real production pedigree, a split library/CLI shape, and a clear relationship to the broader WireGuard ecosystem.
It also illustrates the packaging distinction between protocol implementation, command-line frontend, and OS integration: installing boringtun-cli gives a binary, but useful operation still depends on TUN devices, WireGuard tooling, and platform networking permissions.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
boringtun-cli | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/cloudflare/boringtun
install metadata
| Package key | brew:boringtun |
|---|---|
| Version | 0.7.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/boringtun |
| Homepage | https://github.com/cloudflare/boringtun |
| Repository | https://github.com/cloudflare/boringtun |
| Upstream docs | https://github.com/cloudflare/boringtun#readme |
| License | BSD-3-Clause |
| Source archive | https://github.com/cloudflare/boringtun/archive/refs/tags/boringtun-0.7.1.tar.gz |
| Last updated | 2026-05-02T04:20:23Z |
| Pulse | updated |
| Build dependencies | rust |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
| Caveats | boringtun-cli requires root privileges so you will need to run `sudo boringtun-cli utun`. You should be certain that you trust any software you grant root privileges. |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | boringtun |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
boringtun
nix profile install nixpkgs#boringtunsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.