E2B
The e2b Provider runs Sandboxes inside x86_64 Firecracker microVMs on E2B (https://api.e2b.app, plus BYOC and self-hosted deployments), streaming the Worker directly over E2B’s guest daemon envd (Connect-RPC over HTTP/2) with no SSH gateway required.
Add an E2B Rig
Section titled “Add an E2B Rig”export E2B_API_KEY="e2b_..."
offrig rig add e2b --provider e2b \ --api-key-env E2B_API_KEY \ --idle-minutes 15 \ --defaultAdditional options
Section titled “Additional options”--domain <host>: Bare deployment hostname for BYOC or self-hosted E2B clusters (defaulte2b.app, envE2B_DOMAIN).--api-url <url>: Override the control-plane REST endpoint (defaulthttps://api.<domain>, envE2B_API_URL).--sandbox-url <url>: Override theenvddata-plane endpoint (envE2B_SANDBOX_URL).--idle-minutes <N>: Active Sandbox idle timeout in1..=1440minutes (default15; E2B Cloud Hobby caps continuous runtime at 60 min, Pro at 24 h;0is rejected).--paused-retention-days <N>: Optional paused Sandbox retention (1..=36500days; omit for indefinite retention).
Equivalent ~/.config/offrig/config.toml:
[rigs.e2b]provider = "e2b"# domain = "e2b.app"# api_url = "https://api.e2b.app"# sandbox_url = "https://sandbox.e2b.app"idle_minutes = 15# paused_retention_days = 30
[rigs.e2b.api_key]env = "E2B_API_KEY"Capabilities & notes
Section titled “Capabilities & notes”- Snapshots: Base Snapshots build via E2B Build System 2.0 (curated Ubuntu 24.04, bare
env.image, or single-stageenv.dockerfilewithout localCOPY/ADDcontext). Deps and Saved Snapshots capture filesystem-only (memory: false) snapshots afteroffrigd’s pre-snapshot secret scan so guest RAM is never persisted into shared Snapshots. - Resources: Unspecified
[resources]defaults to2 vCPU / 4096 MiB. E2B requirescpuof1or an even integer<= 32and evenmemory_mib >= 256;[resources].disk_mibmaps tominFreeDiskMb. Resources are fixed at creation (offrig sandbox resetor--recreateto resize). - Network & Docker: Sandboxes default to
network.allowPublicTraffic = false(offrigport forwarding tunnels over the authenticated Worker stream).[run].docker = "dind"runsdockerdnatively inside the Firecracker microVM;docker = "host"is always refused. - Custom images: Bare
env.imageruns asrooton E2B; use a two-lineenv.dockerfile(FROM <image>+USER <user>) when you need a non-root runtime user.
Verify
Section titled “Verify”offrig rig doctor e2b