When sandbox mode is enabled, the Meta Agent can execute code safely in isolated containers. This enables powerful automation while maintaining security. Required Connector: SandboxDocumentation Index
Fetch the complete documentation index at: https://docs.kubiya.ai/llms.txt
Use this file to discover all available pages before exploring further.
Execution Tools
| Tool | Description |
|---|---|
execute_python | Run Python code in a sandbox |
execute_shell | Run shell commands in a sandbox |
execute_docker | Run commands in a Docker container |
Python Execution
Run Python code with access to common libraries. Example Usage:Available Libraries
The sandbox includes common Python libraries:requests- HTTP requestspandas- Data analysisjson- JSON parsingcsv- CSV handlingdatetime- Date/time operations- And many more standard library modules
Shell Execution
Run shell commands in an isolated environment. Example Usage:Docker Execution
Run commands in custom Docker containers. Example Usage:Sandbox Features
Isolation
- Code runs in ephemeral containers
- Each execution starts with a clean environment
- No persistence between executions
Resource Limits
- Memory: Configurable memory limits
- CPU: CPU time constraints
- Storage: Limited disk space
Network Control
- Configurable network access
- Can restrict outbound connections
- Prevent access to internal networks
Timeout Protection
- Automatic termination of long-running tasks
- Configurable timeout values
- Graceful shutdown handling
File System Isolation
- No access to host file system
- Temporary workspace for each execution
- Automatic cleanup after completion
Security Considerations
Best Practices
- Review generated code before execution for sensitive operations
- Use minimal permissions when configuring the sandbox connector
- Monitor executions through the execution logs
- Set appropriate timeouts to prevent runaway processes
Example Workflows
Data Analysis
Security Scanning
API Testing
Related
- Meta Agent Overview - Meta Agent capabilities
- Executions - Execution monitoring
- Workers - Worker configuration