This page is written for AI coding agents (Claude Code, pi, Codex, etc.) setting up Vers on behalf of a human user. Follow these steps in sequence. Human handoffs are marked clearly.Documentation Index
Fetch the complete documentation index at: https://docs.vers.sh/llms.txt
Use this file to discover all available pages before exploring further.
What You’re Setting Up
Vers provides branching virtual machines that capture filesystem and memory state. You’re going to:- Install the Vers CLI
- Authenticate your user (email + SSH key verification)
- Verify org access
- Install the GitHub App (for repo integration)
- Configure environment variables for API keys
- Launch a VM and verify it works
- (Optional) Install an agent on the VM
Step 1: Install the CLI
Check if Vers is already installed:/usr/local/bin/vers. You may need sudo:
On Linux VMs (including Vers VMs themselves), you can also download the binary directly:
Step 2: Authenticate
First, check if the CLI already has valid credentials:Option A: Git Email + SSH Key (Recommended)
This uses the email fromgit config user.email and your local SSH public key to create an API key automatically:
Option B: Existing API Token
If the user already has an API key (from vers.sh):Option C: Interactive Prompt
Plainvers login (no flags) prompts for an API key:
If No Account Exists
Ifvers login --git fails because the user has no account, use signup:
vers login --git), creates an account, and sends the same email verification flow. An organization with initial credits is auto-provisioned on signup.
To use a specific email instead of git config:
Credentials are stored at
~/.vers/credentials.json (for git/SSH auth) or ~/.versrc (for token auth). You only need to authenticate once per machine.Verify
Step 3: Verify Org Access
After authentication, verify the user has an organization. Thevers status output includes org info if available.
For users who signed up via vers signup, an org is auto-provisioned (named after the email prefix, with $50 in initial credits). This step is usually a no-op.
If the user needs to create an org manually:
Step 4: Install GitHub App (Optional)
If the user wants Vers to access their GitHub repositories (for CI/CD, deployments, or repo-aware workflows), the Vers GitHub App must be installed on their GitHub account or organization.🚧 CLI gap: There is no
vers github status or vers github install command yet. GitHub App installation is currently done through the Vers web UI. Check the Vers API at GET /api/github/repositories?orgId=<org-id> to verify installation status programmatically.Step 5: Configure Environment Variables
Vers injects environment variables into every VM at startup viavers env set. This is how API keys reach agents running inside VMs.
Set the keys your workflow needs:
Environment variables set with
vers env are injected into every VM you create, including branches. You only need to set them once. Inside VMs, they appear in /etc/environment and are available to all processes.Step 6: Initialize a Project
Create a project directory and initialize it:vers.toml (VM configuration) and .vers/ (local state).
Configure VM Resources
Editvers.toml for your workload:
Step 7: Launch and Test a VM
Option A: Fresh VM from vers.toml
Option B: VM from a Golden Image
If your team has pre-built golden images (with tools pre-installed), use:exit or Ctrl+D.
Step 8: Install an Agent on the VM (Optional)
If you’re setting up the VM for interactive agent use, connect and install your agent:Claude Code
pi
Step 9: Branch Before Experiments
Before making risky changes, create a branch:Networking Quick Reference
Your VM is publicly accessible at::: (IPv6 dual-stack), not 0.0.0.0:
What’s Next
You now have a working Vers setup. Depending on your use case:- Interactive development: Coding agent (SSH) walks through building with an agent over SSH
- Remote agent swarms: Remote subagents covers spawning agents on VMs and driving them programmatically
- Custom environments: Custom golden images explains when and how to bake project-specific VM images
Troubleshooting
”Command not found: vers”
Ensure/usr/local/bin is in your $PATH:
“Authentication failed” or empty status
Re-authenticate:Environment variables missing inside VM
Verify they’re set:VM won’t start
Checkvers.toml settings. Common issues:
fs_size_vm_mibtoo small (try 10240 for agent workloads)mem_size_mibtoo small (try 4096)