Skip to content

Prerequisites

This guide walks through everything you need before running vybn deploy. Choose your provider — GCP (managed VM) or SSH (bring your own server) — and follow the relevant sections.

You need a GCP account with a project that has billing enabled.

  1. Go to the Google Cloud Console and sign in (or create an account)
  2. Create a new project — or use an existing one
  3. Enable billing on the project

Install the Google Cloud SDK for your platform:

macOS (Homebrew):

Terminal window
brew install google-cloud-sdk

macOS / Linux (manual):

Terminal window
curl https://sdk.cloud.google.com | bash

Other platforms: see the official install docs.

After installing, initialize and authenticate:

Terminal window
gcloud init
gcloud auth login

gcloud init will prompt you to select a project and default region. Pick the project you created in step 1.

vybn creates VMs through the Compute Engine API, which must be enabled on your project:

Terminal window
gcloud services enable compute.googleapis.com

The SSH provider deploys to an existing server you manage. No GCP account or gcloud CLI required.

  • OS: Ubuntu 22.04+, Ubuntu 24.04, or Debian 12+
  • Access: root or a user with passwordless sudo
  • Network: outbound internet access (to install packages and connect to Tailscale)
  • SSH: the server must be reachable from your local machine via SSH

You need an SSH client on your local machine. macOS and Linux include one by default. Verify with:

Terminal window
ssh -V

Ensure you can connect to your server:

Terminal window
ssh user@your-server.example.com

If you use a specific key file, note its path — you’ll provide it during vybn init (or set VYBN_SSH_KEY in ~/.vybnrc).

Tailscale is the default network backend for both providers. It creates a WireGuard mesh so your VM is reachable from any device on your tailnet.

  1. Create a free account at tailscale.com
  2. Install Tailscale on your local machine: tailscale.com/download
  3. Log in and verify it’s running:
Terminal window
tailscale status
  1. Generate an auth key in the admin console

    • Use a reusable key if you plan to redeploy VMs frequently
    • Set an appropriate expiration (90 days is the maximum)
  2. Save the key in your vybn config:

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

For more Tailscale options (custom hostname, ACL tags), see the Tailscale Setup guide.

You’re ready to install vybn and deploy your first VM. Head to Getting Started.