Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

Self-hosted open-source replacement for the Tailscale control server, for homelabs and small self-managed networks.

46,501
2,706
Go
BSD-3-Clause
6 years old

What it is

Headscale is a self-hosted implementation of a Tailscale control server, built in Go and licensed BSD-3-Clause. In Tailscale's design, the control server exchanges WireGuard public keys between nodes, assigns client IP addresses, creates boundaries between users, allows machine sharing, and exposes advertised routes (L17-L36). Headscale implements a deliberately narrow scope: a single tailnet, aimed at self-hosters, hobbyists and small open-source organisations (L37-L45). It is not affiliated with Tailscale Inc., though one active maintainer is employed by Tailscale and contributes under review (L81-L88).

Getting started

The README does not inline an installation procedure; it points to the versioned documentation, with separate stable and development editions . The installed binary can print the example configuration matching its version:

headscale generate config

Use that output as the basis for your configuration, then follow the stable installation guide for your chosen deployment route. Administrative commands such as user and node management are documented there rather than in the repository README, so the final configuration and registration steps must come from the docs. NixOS users have a module under nix/ (L59-L67).

Constraints and deployment notes

The project states that it does not support or encourage running Headscale behind reverse proxies or in containers (L59-L67), which affects the supported deployment shape; plan for a direct host install if you want maintainer-supported operation. Scope is one tailnet per server, suited to personal or small-organisation use rather than multi-tenant hosting (L37-L45). Client OS coverage is version-dependent and should be checked in the client support documentation before committing. Development builds from main are published as container images and binaries for testing unreleased changes (L68-L73); those track code not yet in stable.

Comments from a 2025 HN thread raise that tailnet lock support and an independent security audit were still seen as missing, with one commenter describing uncertainty about relying on it as core infrastructure comment. Another reply argues that tailnet lock matters less here because the operator controls the server comment. Treat these as user opinions from that date, not current project status.

HotRepo's take

Headscale recorded a Go daily-list best position of 13 on 2026-12-05 with 40 stars gained that day (1), and its Hacker News threads are comparatively long-lived: 363 points in 2021 and 345 points in April 2025 for the same self-hosted-control-server framing thread thread. The 2025 discussion is split between genuine operational interest and caution about self-hosting the control plane; a commenter comparing alternatives notes that self-hosting Headscale is simpler and less demanding than Netbird's multi-component stack comment. That fits the project's own positioning as a narrow single-tailnet server rather than a feature-parity replacement.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

Hacker News

Headscale: Open-source implementation of the Tailscale control server
▲ 363 · 66 comments · September 17, 2021
An open source, self-hosted implementation of the Tailscale control server
▲ 345 · 83 comments · April 3, 2025

You might also like

  1. tailscale/tailscaleA WireGuard-based mesh VPN daemon and CLI for connecting servers, laptops and remote devices into one private network.Go38,215
  2. littledivy/tailnet-doRun a Tailscale node as a Cloudflare Durable Object with its own 100.x address.JavaScript103
  3. netbirdio/netbirdBuilds identity-based private networks that connect devices peer-to-peer over WireGuard, with central access control.Go30,383
  4. fosrl/pangolinSelf-hostable zero-trust access platform combining WireGuard VPN, reverse proxy, PAM and an identity-aware AI gateway.TypeScript23,536
  5. WhiteDNS/Soar-ServerTurns a fresh Ubuntu or Debian VPS into a managed DNS-tunnel server with a browser panel, accounts and subscriptions.Go119