Create and manage sandbox containers. Get sandbox instances, configure options, and clean up resources.
API Reference
The Sandbox SDK provides a comprehensive API for executing code, managing files, running processes, and exposing services in isolated sandboxes.
Execute commands and stream output. Run scripts, manage background processes, and capture execution results.
Read, write, and manage files in the sandbox filesystem. Includes directory operations and file metadata.
Execute Python and JavaScript code with rich outputs including charts, tables, and formatted data.
Expose services running in the sandbox via preview URLs. Access web servers and APIs from the internet.
Create isolated execution contexts within a sandbox. Each session maintains its own shell state, environment variables, and working directory.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark
-