Skip to content

Getting Started

Need help setting these up? See the Prerequisites guide for a full walkthrough.

GCP provider (default):

  • Google Cloud SDK (gcloud) — authenticated with a project
  • A GCP project with billing enabled
  • Tailscale — installed and logged in on your local machine
  • A Tailscale auth key — generate at the admin console

SSH provider (bring your own server):

  • SSH client — comes with macOS/Linux
  • An accessible server (Ubuntu 22.04+/Debian 12+) with root or sudo
  • Tailscale — installed and logged in on your local machine
  • A Tailscale auth key — generate at the admin console

Clone the repo and run the installer:

Terminal window
git clone https://github.com/affinity-matrix/vybn.git
cd vybn && ./install.sh

The installer will offer to set up tab completion for bash or zsh. If you skip it, you can add completions manually later:

Terminal window
# Bash
echo 'source /path/to/vybn/completions/vybn.bash' >> ~/.bashrc
# Zsh
echo 'source /path/to/vybn/completions/vybn.zsh' >> ~/.zshrc

Or symlink manually (without the installer):

Terminal window
ln -s "$(pwd)/vybn/vybn" /usr/local/bin/vybn

Pull the latest changes and re-run the installer:

Terminal window
cd ~/vybn && git pull && ./install.sh

The symlink approach means the new version takes effect immediately.

Terminal window
./install.sh --uninstall

Removes the /usr/local/bin/vybn symlink and optionally cleans up ~/.vybn/.

vybn uses Tailscale by default, giving you access from any device on your tailnet — laptops, phones, tablets.

Terminal window
# 1. Run the setup wizard (picks network, project, machine type, etc.)
vybn init
# 2. Deploy — the VM joins your tailnet automatically
vybn deploy
# 3. Connect
vybn connect

The wizard asks for your provider, network backend, Tailscale auth key, GCP project (or SSH server details), machine type, and other settings. It writes a validated ~/.vybnrc for you.

After deploy, the VM is reachable from any device on your tailnet — including iOS via Termius or any SSH client.

IAP tunnels SSH through Google’s infrastructure using your gcloud credentials — no Tailscale account needed.

Terminal window
# 1. Run the setup wizard and select "iap" as the network backend
vybn init
# 2. Deploy a VM
vybn deploy
# 3. Connect
vybn connect

vybn init handles the network choice — select iap when prompted for the network backend.

Use an existing server instead of provisioning a GCP VM.

Terminal window
# 1. Run the setup wizard — select "ssh" as the provider
vybn init
# 2. Deploy Claude Code to your server
vybn deploy
# 3. Connect
vybn connect

The wizard asks for your server’s hostname, SSH user, and Tailscale auth key. vybn uploads and runs the setup script over SSH. See the SSH Provider guide for details.

When you run vybn deploy, the following happens:

GCP provider:

  1. A GCP VM is created running Ubuntu 24.04
  2. A startup script installs Claude Code CLI (native binary with checksum verification), selected toolchains (Node.js by default), and tmux
  3. Any extra apt/npm packages from your config are installed
  4. Network infrastructure is configured (Tailscale enrollment or IAP firewall rules)
  5. The VM becomes reachable via the selected network backend

SSH provider:

  1. The setup script is assembled locally and uploaded to your server via SCP
  2. The script runs over SSH, installing Claude Code, toolchains, and tmux
  3. Tailscale is installed and enrolled on your tailnet
  4. The server becomes reachable via Tailscale

After deploy completes, run vybn connect to drop into a tmux session. Claude Code will prompt you to log in on first launch.

Everything runs inside a tmux session on the VM. Close your laptop, switch Wi-Fi, or reboot — your session keeps running. Reconnect whenever you’re ready:

Terminal window
vybn connect

You’re back exactly where you left off: same output, same running processes, same Claude Code conversation.

Use vybn session to create named windows, each running Claude Code in its own directory:

Terminal window
vybn session frontend ~/projects/frontend
vybn session backend ~/projects/backend

Later, jump straight to the one you need:

Terminal window
vybn connect frontend

Inside the session, switch between windows with Ctrl-a n / Ctrl-a p, or jump by number with Ctrl-a 1, Ctrl-a 2, etc. See Working with tmux for more shortcuts.

Prefer a graphical editor? vybn code opens VS Code or Cursor connected to your VM via the Remote SSH extension:

Terminal window
vybn code myproject

This writes an SSH config entry and launches the editor — no manual Remote SSH setup required. See the VS Code & Cursor guide for details.