Skip to content

Quickstart

This walkthrough takes you from a fresh install to an offloaded Run on a Rig and shows how offrig keeps your local Worktree in sync.

offrig always includes an implicit local Rig backed by your local Docker, OrbStack, or Podman socket—great for trying the workflow immediately without provisioning cloud compute:

Terminal window
offrig doctor --rig local

To offload onto a remote Linux machine over SSH instead:

Terminal window
offrig rig add box --provider ssh --host dev@build.example --default
offrig rig doctor box

Or deploy a self-hosted Cloudflare Containers Gateway in one command:

Terminal window
offrig rig deploy edge --provider cloudflare --default

See Providers for daytona, boat, and advanced options.

Inside any repository Worktree, offrig detects mise.toml and lockfiles (Cargo.lock, pnpm-lock.yaml, package-lock.json, uv.lock, go.sum, and more) automatically. To inspect or commit explicit Environment settings, run:

Terminal window
offrig init

Pass --stdout to preview the generated offrig.toml without writing to disk.

Prefix any command with offrig:

Terminal window
offrig cargo test
# or
offrig pnpm test

On the first Run, offrig:

  1. Builds or reuses the Layer-0 Base Snapshot (OS packages and mise toolchains).
  2. Builds or reuses the Layer-1 Deps Snapshot (lockfile-keyed Remote-only paths like target/ or node_modules/).
  3. Forks a persistent Layer-2 Sandbox bound to your current Worktree.
  4. Pushes your local source delta, runs the command inside the Sandbox with streamed stdout/stderr/TTY and exit-code parity, and applies guarded Write-back for any generated or edited source files.

Subsequent Runs reuse the warm Sandbox and transfer only changed bytes.

4. Open an interactive shell and save a Snapshot

Section titled “4. Open an interactive shell and save a Snapshot”

Need to install an extra tool or inspect the Sandbox directly?

Terminal window
offrig shell

When the Sandbox is in a state you want to preserve, capture a named Saved Snapshot:

Terminal window
offrig snap save with-playwright

Later, restore the Worktree’s Sandbox non-interactively to that exact state:

Terminal window
offrig snap rollback with-playwright
Terminal window
offrig status

This shows the active Rig, Worktree identity, resolved Environment, Deps Snapshot state, and persistent Sandbox health.