Docs
Get started with Rane
From nothing to a green job: install the rane CLI on a machine, run one command, change one line in your workflow. A coding agent can do all of it.
Requirements
- An Apple silicon Mac (M1 or later) on macOS 26.4 or later. Linux machines are in preview.
- An APFS volume with room for the machine image plus 40 GB.
rane machine addpicks the volume with the most free space. - A logged-in user on the Mac: macOS VMs need a GUI session. For unattended Macs, turn on automatic login.
- Admin rights on the GitHub repository (or organisation) the runners will serve.
Install
On the machine that will run the VMs:
curl -fsSL https://rane.dev/install.sh | sh
It installs the latest signed release of rane, checksum-verified, into ~/.local/bin; add that to your PATH if rane version is not found.
Set up
In a checkout of your repository, on the same machine:
rane setup --repo OWNER/NAME
It runs five steps, records progress in ~/.config/rane/setup.json and, when rerun, resumes at the first unfinished one:
- login: sign in with GitHub through a device code you approve in the browser.
- github connect: install the Rane GitHub App on the repository; Rane creates its runner set.
- machine add: install the agent and its signed VM helper, pick a disk, size the slots, pair the machine, fetch the machine image and start the service.
- workflow init: write
.github/workflows/rane-test.yml. - test: dispatch that workflow and stream its timeline until it is green.
When a step needs a person (approving the sign-in, installing the App, allowing a prompt) the command prints exactly what to click and where, then carries on by itself. --yes lets it commit the test workflow; --sudo lets it set the machine to never sleep.
Prefer the browser? app.rane.dev → Get started walks through the same steps and gives you a prompt for your agent, or the commands to run yourself.
Release v0.1.0-rc3 and older call the machine step rane mac add; rane update moves you to the new names.
Use the runners
Point a job at Rane:
jobs: build:- runs-on: macos-15+ runs-on: rane
rane workflow init --convert shows that change for every runs-on: macos-* job in the repository, and applies it with --yes. Each job then runs in a fresh macOS VM on one of your machines, cloned from the runner image and deleted when the job ends, on success, failure, timeout or crash. At most two VMs run on a Mac at once; macOS allows no more.
Machines connect out to Rane over HTTPS with their own credential: no open ports, tunnels or VPN. Each VM gets a runner registration valid for exactly one job, after it boots; nothing secret is in the image. Rane’s server schedules runners but is never in a job’s path.
Machines
The dashboard’s Machines page catalogues every machine from its own reports: OS and version, chip, cores, memory, images and build cache, and the live state of each VM slot (booting, waiting for a job, busy, draining). The CLI shows the same:
| Command | Does |
|---|---|
rane machine ls | Your machines, their slots and health |
rane machine show [M] | One machine (name or id; default this one): hardware, slots and recent events |
rane machine drain [M] [--wait] | Stop taking jobs; running jobs finish. --wait returns when it is idle |
rane machine resume [M] | Take jobs again |
rane machine remove M | Revoke its credential: it stops reporting and takes no more jobs (owners only) |
To add another machine, run the install line and rane machine add on it (or ask your agent to). rane machine add sizes the slots from the hardware: one VM with 4 GB under 24 GB of memory, two from 24 GB.
Linux and GPUs Preview
Linux machines are being built now and are not in a release yet. The design: rane-agent on any x86 or ARM Linux machine with KVM, each job in its own Cloud Hypervisor microVM from an Ubuntu 24.04 runner image, deleted after the job, with NVIDIA GPUs detected and shared with GPU jobs. This section gets the steps when a Linux machine runs its first green job.
Build cache
Each machine keeps a build cache that actions/cache and the setup-* actions’ cache: option use as they are: no workflow changes. Saves and restores stay on the machine’s disk, so a warm restore takes seconds instead of a download. The VM itself is still deleted after every job; only cache entries persist.
Entries follow GitHub’s rules: per repository, a job saves to its own branch (a pull request to its own refs/pull/N/merge) and restores from its own branch, its pull request’s base branch and the default branch. Pull requests cannot poison the default branch’s cache, and repositories never see each other’s entries.
| Command | Does |
|---|---|
rane cache | This machine’s cache: size, folder, entries, last-7-day hit rate |
rane cache --size 100GB | Sets the limit (default: the smaller of 50 GB and 15% of free space; auto goes back to it). Least recently used entries go first. |
rane cache --dir /Volumes/Fast/rane-cache | Moves it to another local disk, copying the entries when they fit (--fresh starts empty) |
rane cache clear [--repo o/r] | Empties it, or one repository’s entries |
Add --machine M to manage another machine’s cache. The same settings are on the dashboard’s machine page, and in agent.yaml as cache_gb and cache_dir (cache: false turns it off). If the cache’s disk is unplugged, rane doctor says so and jobs run without it.
Images
Every VM is cloned from a machine image on the machine’s own disk, so each job starts from the same clean state. Rane hosts the images: a catalogue it builds (macos-26: macOS 26 with the GitHub Actions runner) and the ones you build. Machines pull them in compressed pieces, each checked against its digest.
rane image build --from macos-26 --script setup.sh --name my-iosrane image use my-ios --repo OWNER/NAME
- Build: on one of your Macs, Rane boots a copy of the base image, runs your script in it over SSH, shuts it down and uploads the result to your account. It needs one of the machine’s two VM slots free (
rane machine drain --waitfirst on a busy machine). - Use: the repository gets a runner set for that image; jobs ask for it with
runs-on: rane-my-ios. - Pull: every machine on the account fetches the image by itself, and jobs start on a machine once it has it.
Each machine keeps the images its runners use and removes unused ones, least recently used first, when the disk runs low or they pass image_budget_gb in agent.yaml; a removed image is pulled again when needed. rane image ls shows the catalogue and your images, their sizes and which machines have each; the dashboard’s Images page shows the same. Linux container images can live in the same registry for docker pull and cloud providers: rane image token makes a read-only password.
Insights
On the dashboard, for a time range you pick:
- Insights: total jobs, median job time, failure rate and what the same minutes would have cost on GitHub-hosted macOS runners; the spread of job times (p50, p90, p99, slowest) and the median wait in the queue; jobs and failure rate over time.
- Runs: every job, filtered by repository and machine, with a chart of durations. Each opens its timeline: clone, boot, runner start, waiting for the job, the job and clean-up, each timed.
- Cache: hit rate and how much was restored and stored, per machine.
From the CLI, rane logs <job> prints a job’s timeline, its log on GitHub and, for a failed job, the agent’s last lines for its VM. Rane keeps no copy of job output; logs stay on GitHub.
For coding agents
Ask Claude Code, Codex or Cursor to “set up Rane for this repo” and point it at rane.dev/agents.md, the step-by-step guide it follows. rane agent-guide writes the full guide into AGENTS.md and a Claude Code skill. With --json, stdout is NDJSON (progress, human, timeline, log, then exactly one result), and every command is safe to rerun.
| Exit | Meaning | What to do |
|---|---|---|
0 | Done | Continue |
1 | Error | Read error.message and error.hint, fix, rerun |
2 | Needs a person | Show human_action, url and commands; rerun when done |
3 | Transient | Rerun the same command after ~30 s |
Permissions
What Rane needs, why, and who grants it. “Agent” means a command does it; “human” means a person clicks.
| Permission | Why | Who | How |
|---|---|---|---|
| App install on an account | The App sees that account’s repositories | Human | rane github connect prints a URL: pick the repository, click Install |
| Repo: Administration write | Register runners for the repository | Human | Granted by the same Install click |
| Repo: Actions write | See workflow jobs; dispatch rane-test.yml | Human | Same Install click |
| Repo: Contents, Metadata read | Read the test workflow and default branch | Human | Same Install click |
| Org: Self-hosted runners write | Runners for an organisation | Org owner | Same Install click, on the organisation |
workflow_job webhook | Job events | None | Part of the App; nothing to click |
| Dashboard sign-in | Know who you are and which accounts you see | Human | Sign in with GitHub → Authorize |
rane login | A CLI token for your account | Agent, then human | Open the printed URL, check the code, Approve |
| Automatic login (Mac) | VMs need a logged-in session, also after reboots | Human | System Settings → Users & Groups → Automatically log in as (needs FileVault off) |
| Local Network (Mac) | The agent reaches its VMs on the Mac’s network | Human | Click Allow on the prompt, or Privacy & Security → Local Network → rane-agent |
| Virtualization entitlement (Mac) | rane-vmhelper runs the VMs | Agent | rane machine add installs it signed; rane doctor --fix re-signs |
| Disk | Image + 40 GB free on an APFS volume | Agent | rane machine add picks the volume; free space or attach a disk if short |
| Never sleep | A sleeping machine takes no jobs | Agent with sudo, or human | rane doctor --fix --sudo, or sudo pmset -a sleep 0 autorestart 1 |
Commands
| Command | Does |
|---|---|
rane setup --repo o/r | Everything below, in order, resumable |
rane login | Device-code sign-in; token stored 0600 in ~/.config/rane |
rane github connect --repo o/r | Waits until the App covers the repository, then ensures its runner set |
rane machine add | Agent, signed helper, disk, slots, pairing, image, service, power |
rane workflow init [--convert] | Writes the test workflow; shows (and with --yes applies) the runs-on diff |
rane test --repo o/r | Dispatches the test workflow and streams its timeline; exits 0 on green |
rane machine ls / show [M] | Your machines, or one, with slots and health (see Machines) |
rane machine drain / resume [M] | Stop taking jobs (running jobs finish) / take them again |
rane machine remove M | Revoke a machine |
rane image ls | The image catalogue and yours, and which machines have each (see Images) |
rane image build / use / rm | Build an image from a base and a script; give a repository a runner set on it; delete one |
rane image token | A read-only pull token for docker pull and cloud providers |
rane doctor [--fix] | Readiness checks, each with its fix |
rane status | This machine’s service and every machine’s slots |
rane cache | The machine’s build cache: size, folder, clear (see Build cache) |
rane logs <job> | A job’s timeline, its log on GitHub, and why it failed |
rane update | Updates the CLI and agent; the agent drains and restarts |
rane agent-guide | Writes the agent guide into AGENTS.md and a Claude Code skill |
Day two
- Before a macOS update or using the Mac at the desk:
rane machine drain --wait, thenrane machine resume. - A job failed:
rane logs <job id>, or open it on the dashboard. - Anything odd:
rane doctor, apply the fixes it lists, rerun. - New release:
rane update.