Examples
Worked end-to-end scripts using lightbox.
Each example is a complete, runnable script. Click any of them to read the code and a short walkthrough.
- Coding agents preset — bake a snapshot with copilot/gemini/codex/pi, then launch a sandbox.
- Custom Python snapshot — Python + pandas/numpy via the generic API.
- Sandbox pool — boot several sandboxes from the same snapshot in parallel.
- Run & teardown —
runInSandboxfor ephemeral, scoped sandboxes. - Mounts — bind-mount host directories and share named volumes between sandboxes.