Cookbook¶
Task-focused recipes for the things people actually build with sandboxes. Set SISTEMO_API_KEY first (see the Cloud quickstart). The SDK recipes are copy-paste scripts. Volumes are REST — you still need a machine id.
-
The headline use case: execute LLM-generated code in an isolated VM, capture output, destroy.
-
Give Claude or OpenAI a sandbox to run the code it writes, and feed results back.
-
pip install/npm installinside a sandbox, then run code that uses them. -
There is no file API. The three patterns that work, and the caps that apply.
-
sb.run(..., timeout=3600)waits. Same job as/execs. -
Keep data across sandbox destroy/recreate using a volume.
Want one added?
These map to the most common agent workflows. Tell us what's missing and we'll add a recipe.