Quick Start
1
Basic Usage
Local loop, local tools - simplest configuration.
2
With Tool Sandboxing
Local loop, tools run in E2B sandbox for security.
How It Works
Configuration Options
SandboxedAgentConfig Reference
Full configuration options for sandboxed agents
Essential Configuration
Common Patterns
Secure Development Environment
Local Development (No Sandbox)
Multi-Provider Flexibility
Best Practices
Security Considerations
Security Considerations
Always use sandboxing when running untrusted code or installing packages:
Performance Optimization
Performance Optimization
- Use local execution for trusted environments and faster iteration
- Use sandbox for production or when handling user-generated code
- Consider model choice:
gpt-4o-minifor speed,claude-sonnet-4-6for complex tasks
Backward Compatibility
Backward Compatibility
LocalManagedAgent and SandboxedAgent are the same class:Tool Sandboxing vs Managed Runtime
Tool Sandboxing vs Managed Runtime
- SandboxedAgent: Agent loop stays local, only tools may be sandboxed
- Managed Runtime: Entire agent loop runs remotely (see Managed Runtime Protocol)
Related
Managed Runtime Protocol
Remote agent runtime for full managed execution
Sandbox
Core SDK sandbox execution on agents

