Install and Sign In
beam whoami to check your workspace.
Run Code, Serve a URL, and Fork
Save this assandbox.py and run python sandbox.py:
sandbox.py
Add a GPU
Attach a GPU with one argument:torch to the sandbox image.
Control Outbound Traffic
Each sandbox is isolated from your app and other workloads. To control what an agent’s computer can reach, block outbound traffic or allow only specific CIDR ranges:Next Steps
Run Your First App
Run a function and deploy a web endpoint.
Snapshots
Save filesystem or memory state and fork it.
Networking
Preview URLs and outbound rules.
TypeScript SDK
Create and operate sandboxes from Node.js.