Skip to main content

What Patches Do

A patch is a shell script attached to a checkpoint. Patches run in order every time a sandbox is forked from that checkpoint — layer setup without re-creating the checkpoint.

Creating a Patch

From a file or stdin:

Layering Setup

Add multiple patches — they execute in creation order on every fork:

Inspecting Patches

Review what will run before forking:

Removing a Patch

SDK usage: Patches. Full flags: CLI Reference.