mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-25 21:36:52 +08:00
Co-authored-by: openhands <openhands@all-hands.dev> Co-authored-by: sp.wack <83104063+amanape@users.noreply.github.com> Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
831 B
831 B
Sandbox Management
Manages sandbox environments for secure agent execution within OpenHands.
Overview
Since agents can do things that may harm your system, they are typically run inside a sandbox (like a Docker container). This module provides services for creating, managing, and monitoring these sandbox environments.
Key Components
- SandboxService: Abstract service for sandbox lifecycle management
- DockerSandboxService: Docker-based sandbox implementation
- SandboxSpecService: Manages sandbox specifications and templates
- SandboxRouter: FastAPI router for sandbox endpoints
Features
- Secure containerized execution environments
- Sandbox lifecycle management (create, start, stop, destroy)
- Multiple sandbox backend support (Docker, Remote, Local)
- User-scoped sandbox access control