Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, Nix, pacman, zypper 安装 headscale-cli

查看 headscale-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install headscale-cli

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add headscale

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

Fedora dnf已验证 · 92%
sudo dnf install headscale

Fedora Rawhide package metadata · headscale · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#headscale

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

Arch Linux pacman已验证 · 92%
sudo pacman -S headscale

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

openSUSE zypper已验证 · 92%
sudo zypper install headscale

openSUSE Tumbleweed package metadata · headscale · 来源: download.opensuse.org

概览

软件包摘要

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

命令和别名

  • headscale

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:server

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
headscalecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本0.29.2
管理器更新时间2026-07-02
本地数据OK
上游当前
检测到的最新版本v0.29.2

https://github.com/juanfont/headscale

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:headscale-cli
版本0.29.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/headscale-cli
主页https://github.com/juanfont/headscale
仓库https://github.com/juanfont/headscale
上游文档https://docs.headscale.org/ref/remote-cli
许可证BSD-3-Clause
源码归档https://github.com/juanfont/headscale/archive/refs/tags/v0.29.2.tar.gz
最后更新2026-07-02T02:01:09Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix92%

headscale

nix profile install nixpkgs#headscale
  • installed executable or alias match
  • 匹配方式: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 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 5 提供
  • installed executable or alias match
  • 匹配方式: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 依赖
  • 2 可选依赖
  • installed executable or alias match
  • 匹配方式: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 依赖
  • 3 提供
  • installed executable or alias match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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