AdvertiseWatchSubscribe
Updated , rescanned every two hoursSunday, December 6, 2026

▲ 59 today46.5k starsGoHN ×8

Self-hosted Tailscale control server drops open-source alternative

What is headscale?

Headscale is a free server you can run yourself that does what Tailscale’s paid control server does, it hands out WireGuard keys and IPs so your devices can talk securely. It lets you build a private overlay network without relying on Tailscale’s cloud.

Who it is for

If you need a VPN for a small team or personal projects and want to keep all traffic in-house, you can replace the hosted service with Headscale.

How headscale works

Headscale runs a Go server that implements the Tailscale control plane. It stores Wireguard public keys from each node and hands out private IP addresses. The server tracks user boundaries and advertised routes, acting as the exchange point for peer connections. It uses the same protobuf API that Tailscale uses to talk to clients.

What you can do with it

  • Create a private VPN that links your laptops, phones and servers without a third-party service.
  • Assign static IPs and share specific machines between users in the same tailnet.
  • Publish routes from one node so other devices can reach a subnet behind it.
  • Run a single-tenant tailnet for a hobby project or small open-source team.

Good to know

  • Only one tailnet can be managed at a time, which is aimed at personal or small-team use.
  • The project advises against running behind a reverse proxy or in a container.
  • Official GUI clients for Windows, macOS and iOS are not open source, so those platforms rely on proprietary software.

Written from the project's own README.

Try it in 60 seconds

  1. headscale generate config

BSD-3-Clause licenseUpdated todayGo81 open issues

New projects are not vetted. Skim the code, and run it in a fresh folder or a container before giving it your files or keys.

The morning email · free

Get tomorrow's biggest AI launches before everyone else.

One short email each morning: what launched, why it matters, how to try it. Five minutes, no spam, unsubscribe any time.

The story so far

Early Signal first spotted juanfont/headscale on December 5, 2026, when it had 46.5k GitHub stars. It now has 46.5k. On its busiest day it gained 59 stars. It is published under the BSD-3-Clause license and has 2.7k forks. It has been discussed in 8 Hacker News threads, the top one with 363 points.

Questions about headscale

Is headscale free and open source?
Yes. juanfont/headscale is open source under the BSD-3-Clause license, and the code is on GitHub at https://github.com/juanfont/headscale.
How do I install headscale?
Run: headscale generate config

Get the signal first.

Join the list for the morning email: the day's biggest AI launches, explained in five minutes. Unsubscribe any time.

Prefer a reader? Follow the RSS feed.