offrig Documentation
offrig is a provider-agnostic, MIT-licensed CLI for offloading local developer and coding-agent commands onto snapshotted remote containers and VMs while keeping your local Worktree as the source of truth.
Why offrig
Section titled “Why offrig”- Client-driven, zero hosted control plane:
offrigruns on your laptop and talks directly to compute you already own or choose (local,ssh,daytona,boat,cloudflare,modal,e2b,sprites) behind one narrowProviderseam. - Local Worktree as source of truth: Source files live in your local Worktree. Every Run pushes a fast delta to your Sandbox, streams stdout/stderr/TTY with exit-code parity, and applies guarded Write-back back to your Worktree with atomic local-edit conflict protection (exit
124). - Three-layer Copy-on-Write Snapshots: Share warm OS toolchains (Base Snapshot) and lockfile-keyed dependency caches (Deps Snapshot) across every Worktree of a repository, while each Worktree gets its own isolated writable Sandbox.
- Built for parallel coding agents: Isolate concurrent builds per Worktree (or per-Run with
--isolated), emit structured telemetry via--json/--report-file, or opt into load-aware Shims that spill work to a remote Rig only when your laptop is busy.
Where to start
Section titled “Where to start”- Installation — install
offrigwith bundled LinuxoffrigdWorker sidecars viainstall.sh, Homebrew, or Cargo. - Quickstart — add a Rig, scaffold
offrig.tomlwithoffrig init, run your first offloaded command, and capture a Saved Snapshot. - Providers — pick and configure
local,ssh,daytona,boat,cloudflare,modal,e2b, orsprites. - Parallel Coding Agents — wire
offriginto agent harnesses with--json,--report-file, and load-aware Shims.