Automic VaultAutomic Vault

brew

Install headscale-cli with Homebrew, apk, dnf, Nix, pacman, zypper

CLI for headscale, an open-source implementation of the Tailscale control server. Version 0.29.2 via Homebrew; verified 2026-07-02.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install headscale-cli

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add headscale

Alpine Linux edge package indexes · headscale · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install headscale

Fedora Rawhide package metadata · headscale · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#headscale

nixpkgs package indexes · pkgs/by-name/he/headscale/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S headscale

Arch Linux sync databases · headscale · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install headscale

openSUSE Tumbleweed package metadata · headscale · source: download.opensuse.org

overview

Package summary

CLI for headscale, an open-source implementation of the Tailscale control server

Commands and aliases

  • headscale

history

Project history and usage

headscale-cli is the packaged command-line client for Headscale, an open source, self-hosted implementation of the Tailscale control server. The package exists for operators who want the `headscale` executable on a workstation without installing the full server formula.

Project history

Headscale's repository was created in June 2020, after Tailscale popularized WireGuard-based private overlay networks with a proprietary coordination server. The upstream README states the design goal plainly: implement a self-hosted, open source alternative to the Tailscale control server for self-hosters, hobbyists, personal networks, and small open source organizations.

The CLI is part of the same Go codebase as the server. It manages users, nodes, pre-auth keys, routes, DNS, policies, API keys, and other control-plane state. The remote CLI path became important when operators wanted to administer a server from another machine rather than SSHing into the host.

Headscale 0.13.0 added API key support and remote control of headscale via CLI. The remote CLI documentation requires a server version of 0.13.0 or newer, TLS, an API key, and environment variables for the CLI address and key.

Adoption history

Headscale adoption is tied to the self-hosted networking community and to users who like Tailscale clients but want to operate their own control plane. The repository's popularity and package spread across Homebrew, Nix, Alpine, Fedora, Arch, and openSUSE ecosystems show that it became a standard item in self-hosting package sets.

The separate Homebrew headscale-cli packaging reflects a practical operator split: servers run on Linux or containers, while administrative workstations may be macOS laptops that only need the client binary.

How it is used

Local usage starts with built-in help and server-side actions such as creating users, registering nodes, and generating pre-auth keys. Remote usage creates an API key on the server, installs the same-version headscale binary on the workstation, sets HEADSCALE_CLI_ADDRESS and HEADSCALE_CLI_API_KEY, and then runs commands such as `headscale nodes list` against the remote instance.

The CLI is also part of automated Headscale operations: scripts can create users, manage registration keys, list or expire nodes, and inspect routes without touching the database directly.

Why package nerds care

headscale-cli is a package-nerd favorite because it separates admin tooling from daemon deployment. The Homebrew package lets a macOS or Linux workstation manage a Headscale server while the server itself might be installed from a distro package, container image, NixOS module, or source build.

It is also a good example of packaging around a monorepo executable: the upstream project ships one binary, while package managers can expose a CLI-only formula to avoid pulling users into a server service lifecycle they did not ask for.

Timeline

  • 2020-06: Headscale repository created.
  • 2022-02: 0.13.0 added API key support and remote CLI control.
  • 2022-02: Remote CLI documentation described same-version client and server requirements.
  • 2023-02: Headscale was presented at FOSDEM as an integration-testing driven reimplementation of Tailscale.
  • 2026-02: 0.28.0 continued compatibility work around tags, API shape, and Tailscale semantics.
  • 2026-06: 0.29.0 documented further Tailscale ACL compatibility improvements.

Related projects

  • Tailscale is the upstream client ecosystem and proprietary hosted control server that Headscale reimplements for self-hosting.
  • WireGuard is the encrypted tunnel technology used by Tailscale clients.
  • DERP, MagicDNS, ACLs, routes, and OIDC are related Tailscale/Headscale control-plane concepts managed through Headscale.
  • NixOS modules, container images, and Linux distro packages are common deployment companions for the server while headscale-cli is used from an admin workstation.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:server

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
headscalecliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.29.2
manager updated2026-07-02
local dataok
upstreamcurrent
latest detectedv0.29.2

https://github.com/juanfont/headscale

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:headscale-cli
Version0.29.2
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/headscale-cli
Homepagehttps://github.com/juanfont/headscale
Repositoryhttps://github.com/juanfont/headscale
Upstream docshttps://docs.headscale.org/ref/remote-cli
LicenseBSD-3-Clause
Source archivehttps://github.com/juanfont/headscale/archive/refs/tags/v0.29.2.tar.gz
Last updated2026-07-02T02:01:09Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameheadscale-cli
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix92%

headscale

nix profile install nixpkgs#headscale
  • installed executable or alias match
  • Matched by: Headscale
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/he/headscale/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk92%

headscale 0.27.1-r5

Open source, self-hosted implementation of the Tailscale control server

https://github.com/juanfont/headscale

sudo apk add headscale
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: headscale
  • 1 dependencies
  • 1 provides
  • installed executable or alias match
  • Matched by: Headscale
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: headscale from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

headscale-bash-completion 0.27.1-r5

Bash completions for headscale

https://github.com/juanfont/headscale

sudo apk add headscale-bash-completion
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: headscale
  • installed executable or alias match
  • Matched by: Headscale
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: headscale-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

headscale-fish-completion 0.27.1-r5

Fish completions for headscale

https://github.com/juanfont/headscale

sudo apk add headscale-fish-completion
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: headscale
  • installed executable or alias match
  • Matched by: Headscale
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: headscale-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

headscale-openrc 0.27.1-r5

Open source, self-hosted implementation of the Tailscale control server (OpenRC init scripts)

https://github.com/juanfont/headscale

sudo apk add headscale-openrc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: headscale
  • installed executable or alias match
  • Matched by: Headscale
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: headscale-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk92%

headscale-zsh-completion 0.27.1-r5

Zsh completions for headscale

https://github.com/juanfont/headscale

sudo apk add headscale-zsh-completion
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: headscale
  • installed executable or alias match
  • Matched by: Headscale
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: headscale-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf92%

headscale 0.28.0-1.fc45

Self-hosted implementation of the Tailscale control server

https://github.com/juanfont/headscale

sudo dnf install headscale
  • License: BSD-2-Clause AND MIT AND Apache-2.0 AND MPL-2.0 AND BSD-2-Clause-Views AND ISC AND BSD-3-Clause AND ISC
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: headscale
  • 6 dependencies
  • 5 provides
  • installed executable or alias match
  • Matched by: Headscale
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: headscale from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman92%

headscale 0.28.0-1

An open source, self-hosted implementation of the Tailscale coordination server.

https://github.com/juanfont/headscale

sudo pacman -S headscale
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 1 dependencies
  • 2 optional deps
  • installed executable or alias match
  • Matched by: Headscale
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: headscale from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper92%

headscale 0.28.0-1.4

An open source, self-hosted implementation of the Tailscale control server

https://headscale.net

sudo zypper install headscale
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: headscale
  • 3 dependencies
  • 3 provides
  • installed executable or alias match
  • Matched by: Headscale
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: headscale from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment