Vibecode Tailscale

track this build5 phases, 10 steps, beginner friendly
KINDA · weekend project
price $8/moyou'd save $96/yrbuild time weekendcategory 🔐 securityreplaced by 0 people

The data plane is WireGuard and the clients are open source. The coordination server is what Tailscale runs, and headscale reimplements it well enough for a homelab. The free tier already covers six users, so the honest DIY case is wanting the control plane on your own box.

the project pack5 files · written for this build, step by step
README.md
# Tailscale · indie build

Your own Tailscale control plane: headscale on a VPS behind Caddy, the official Tailscale clients pointed at it, MagicDNS and a deny-by-default ACL, an embedded relay and an exit node, and a restore you performed before switching off the free account.

Estimated effort: **weekend**. Work `BUILD_PLAN.md` top to bottom · every phase ends in a check that has to pass before the next one starts.

## Stack

| Part | Choice | Why |
| --- | --- | --- |
| Control plane | headscale | rule zero: do not write a VPN |
| Data plane | WireGuard via the official Tailscale clients | you never touch the cryptography |
| TLS | Caddy | clients need HTTPS to the control server |

## Before you start

Have every one of these ready. The plan assumes them from step one.

- [ ] **A terminal and a code editor** · free
  - Why: Every step below is a command you type or a file you edit.
  - Get it: VS Code (code.visualstudio.com), Cursor or Zed. Open a folder for the project and use the editor's built-in terminal.
  - Verify: You can open a folder and run a command in its terminal
- [ ] **Git** · free
  - Why: History for your code, and the way most hosts deploy.
  - Get it: Install from git-scm.com or with your package manager, then run git init in the project folder once it exists.
  - Verify: git --version prints a version
- [ ] **Know that Tailscale is free for six users** · free
  - Why: The honest reason to do this is owning the control plane, not saving money.
  - Get it: Read tailscale.com/pricing once.
- [ ] **A small always-on server (VPS)** (optional) · about $5 a month
  - Why: This needs one process running all the time with a public address. The coordination server needs a public IP.
  - Get it: Hetzner Cloud (from about 4 EUR), DigitalOcean or Fly.io. Ubuntu 24.04, the smallest size. You need SSH access and a public IP. Only needed for the deploy phase; develop locally first.
- [ ] **A domain or subdomain** (optional) · roughly $10 a year, or free on an existing domain
  - Why: hs.yourdomain.com
  - Get it: Register at Cloudflare Registrar, Porkbun or Namecheap, or use a subdomain of one you already own. You add one DNS record in the deploy phase.
- [ ] **Caddy on the server** (optional) · free
  - Why: Automatic HTTPS in front of the Node process. Without TLS the browser features this relies on (and your visitors' trust) do not work.
  - Get it: On the VPS: follow the install steps at caddyserver.com/docs/install for Ubuntu. One Caddyfile with your domain and a reverse_proxy line is the whole config.
  - Verify: caddy version prints a version on the server
- [ ] **headscale** · free
  - Why: The control server.
  - Get it: Download the .deb from github.com/juanfont/headscale/releases and install it on the VPS.
  - Verify: headscale version prints
- [ ] **The official Tailscale clients on every device** · free
  - Why: The endpoints.
  - Get it: tailscale.com/download for each platform.
- [ ] **Off-box storage for backups** · cents
  - Why: The headscale database is the network's identity.
  - Get it: rclone to B2 or R2.

## Quick start

```sh
sudo systemctl enable --now headscale
headscale users create you
```

Then copy `.env.example` to `.env` and fill in the values it documents.

## Honest limits

This build deliberately does not replace:

- SSO with every provider, the admin console, device posture: the seat price, and free for six people anyway.
- SSO with every identity provider, done
- the admin console and device posture
- Funnel and the relay network at their scale
- someone else on call for the control plane

If one of those is essential to you, that is the reason to keep paying for Tailscale, and the README should say so rather than pretend.

$ choose a build depth, inspect the files, then open the complete pack in your agent

why people still pay

Six users are free. Above that, companies pay for SSO, ACLs in a UI and a control plane that is not their problem.

what you lose

xSSO with every identity provider, done

xthe admin console and device posture

xFunnel and the relay network at their scale

xsomeone else on call for the control plane

prior art · use these instead of building, if you'd ratherheadscaleopen-source implementation of the Tailscale control server
share on X ↗"I just replaced Tailscale ($8/mo) with one prompt"
the numbers

Tailscale pricing

standard$8/mo · monthly per user · $96/yr

free tierThe free Personal plan covers up to 6 users, unlimited devices and nearly every feature.

verified 2026-09-04 · source ↗

questions
Is Tailscale free?

The free Personal plan covers up to 6 users, unlimited devices and nearly every feature. Paid is Standard at $8/mo (checked 2026-09-04).

Vibecode Tailscale

Kinda. The core of Tailscale is buildable in a weekend with the prompt on this page, but there are real gaps: SSO with every identity provider, done, the admin console and device posture. Read the honest list above before committing.

How much does Tailscale cost?

Tailscale costs about $8/month (Standard, checked 2026-09-04), which is $96 per year.

What do I lose by replacing Tailscale?

Honestly: SSO with every identity provider, done; the admin console and device posture; Funnel and the relay network at their scale; someone else on call for the control plane. If any of those are load-bearing for you, keep paying.

Is there an open-source alternative to Tailscale?

Yes: headscale (open-source implementation of the Tailscale control server). Using prior art is also vibecoding; the prompt is for when you want it exactly your way.