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.
1. Choose or add a Rig
Section titled “1. Choose or add a Rig”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:
offrig doctor --rig localTo offload onto a remote Linux machine over SSH instead:
offrig rig add box --provider ssh --host dev@build.example --defaultoffrig rig doctor boxOr deploy a self-hosted Cloudflare Containers Gateway in one command:
offrig rig deploy edge --provider cloudflare --defaultSee Providers for daytona, boat, and advanced options.
2. Scaffold offrig.toml (optional)
Section titled “2. Scaffold offrig.toml (optional)”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:
offrig initPass --stdout to preview the generated offrig.toml without writing to disk.
3. Run your first offloaded command
Section titled “3. Run your first offloaded command”Prefix any command with offrig:
offrig cargo test# oroffrig pnpm testOn the first Run, offrig:
- Builds or reuses the Layer-0 Base Snapshot (OS packages and
misetoolchains). - Builds or reuses the Layer-1 Deps Snapshot (lockfile-keyed Remote-only paths like
target/ornode_modules/). - Forks a persistent Layer-2 Sandbox bound to your current Worktree.
- 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?
offrig shellWhen the Sandbox is in a state you want to preserve, capture a named Saved Snapshot:
offrig snap save with-playwrightLater, restore the Worktree’s Sandbox non-interactively to that exact state:
offrig snap rollback with-playwright5. Check status
Section titled “5. Check status”offrig statusThis shows the active Rig, Worktree identity, resolved Environment, Deps Snapshot state, and persistent Sandbox health.