Headscale

Headscale

Open-source, self-hosted Go implementation of the Tailscale control server for running fully private WireGuard mesh networks.

★ 46.4K

Run your own private Tailscale WireGuard control plane with zero SaaS dependency

Tailscale makes WireGuard mesh networking effortless, yet privacy-strict teams and regulated enterprises often cannot allow a third-party SaaS coordination server to manage their network topology, device keys, or user limits. Headscale is a clean, open-source Go implementation (`98.8%` Go) of the Tailscale control server with 46.4K GitHub stars and 2,700 forks under the BSD-3-Clause license. It lets official Tailscale desktop, Linux, and mobile clients connect directly to your own VPS.

What Headscale gives self-hosted networks

  • Works natively with unmodified official Tailscale clients (`tailscale up –login-server https://your-domain.com`) across Linux, macOS, Windows, iOS, and Android.
  • Supports MagicDNS, subnet routers, exit nodes, and JSON/HuJSON ACL policy files to isolate servers, staging clusters, and developer laptops cleanly.
  • Integrates directly with self-hosted OIDC providers like Keycloak or authentik so users authenticate new devices with your existing SSO credentials.
  • Runs as a single lightweight Go binary backed by SQLite or PostgreSQL, consuming minimal RAM on an entry-level cloud instance.

Scope limitations to verify

Headscale intentionally focuses on single-organization tailnets and does not replicate every commercial Tailscale SaaS feature (such as Tailscale Funnel or managed Taildrop sharing across external organizations). Deploy Headscale behind Caddy on a small VPS today for 100% sovereign WireGuard mesh networking.

Ready to try Headscale?

Experience the full capabilities on their official website.

Visit Official Website