Skip to content

Tailscale Setup

Tailscale is the default network backend for vybn. It lets you access your VM from any device on your tailnet — laptops, phones, tablets — using a WireGuard mesh network. This guide walks through the full setup.

Download and install Tailscale on your local machine: tailscale.com/download

Make sure you’re logged in:

Terminal window
tailscale status

Go to the Tailscale admin console and generate an auth key.

  • Use a reusable key if you plan to redeploy frequently
  • Set an appropriate expiration

Add the Tailscale settings to ~/.vybnrc:

Terminal window
cat >> ~/.vybnrc << 'EOF'
VYBN_TAILSCALE_AUTHKEY="tskey-auth-..."
EOF

Tailscale is the default, so no VYBN_NETWORK setting is needed.

Optional settings:

Terminal window
# Custom hostname on your tailnet (auto-generates a petname like claude-bright-falcon if unset)
VYBN_TAILSCALE_HOSTNAME="claude-work"
# ACL tags for access control
VYBN_TAILSCALE_TAGS="tag:vybn"
Terminal window
vybn deploy

The VM will:

  1. Install Tailscale
  2. Authenticate with your auth key
  3. Join your tailnet
  4. Become reachable via MagicDNS using an auto-generated petname (e.g., claude-bright-falcon)
Terminal window
vybn connect

You can also SSH directly from any device on your tailnet:

Terminal window
ssh -i ~/.vybn/ssh/id_ed25519 claude@<petname>

For a complete guide to connecting from iOS and Android — including SSH key setup with Termius and SSH.id — see the Mobile SSH guide.

Tailscale creates a direct WireGuard mesh between your devices. The VM’s firewall denies all ingress traffic — Tailscale uses outbound NAT traversal, so no inbound rules are needed. Your VM is reachable by hostname via MagicDNS from any device on your tailnet.

vybn uses standard SSH over Tailscale (not Tailscale SSH) to preserve SSH agent forwarding, which is needed for Git operations.