Features
Sandbox Management
Manage sandbox lifecycle and settings
The Sandbox SDK provides methods to inspect, extend, reconnect, and terminate your sandbox environments.
Inspecting Sandbox Info
Extending Sandbox Timeout
Terminating a Sandbox
Reconnecting to an Existing Sandbox
You can save the sandbox ID and reconnect without losing state:
Best Practices
- Use appropriate timeouts: set initial
sandbox_timeout
based on usage and extend only when necessary - Clean up when done: always call
kill_sandbox()
to free resources - Handle errors: check return values of all management methods
- Organize files: use consistent sandbox paths (e.g.,
/home/user/project
) - Security: avoid storing sensitive credentials in sandbox files
Troubleshooting
Files Not Found
If a file is missing or inaccessible:
Connection or Timeout Issues
If reconnecting fails or sandbox expires unexpectedly:
If the sandbox becomes unresponsive, terminate and create a new one: