This sandbox can be used for running and testing LLM-generated code, and you can install dependencies, create and restore state using snapshots, and manage the running processes.
Watch Python code execute in a secure cloud environment.
See how dependency installation and execution works.
You can run arbitrary code in sandboxes. Let's spin up a web server.
Save the memory and filesystem state of a sandbox.
Now we'll restore a snapshot, which will create a sandbox which has the same environment variables and memory state as the sandbox we created in the previous step.
The Sandbox provides process management through the process property. You can execute Python code, run shell commands, and manage long-running processes with real-time output streaming.
Create a free account and start building