Skip to content

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.

  • Client-driven, zero hosted control plane: offrig runs on your laptop and talks directly to compute you already own or choose (local, ssh, daytona, boat, cloudflare, modal, e2b, sprites) behind one narrow Provider seam.
  • 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.
  1. Installation — install offrig with bundled Linux offrigd Worker sidecars via install.sh, Homebrew, or Cargo.
  2. Quickstart — add a Rig, scaffold offrig.toml with offrig init, run your first offloaded command, and capture a Saved Snapshot.
  3. Providers — pick and configure local, ssh, daytona, boat, cloudflare, modal, e2b, or sprites.
  4. Parallel Coding Agents — wire offrig into agent harnesses with --json, --report-file, and load-aware Shims.