Sandboxes
Product · Developer tool by Baseten
Isolated environments for secure agent code execution.
Isolated runtime environments for AI agents to execute code and work with files securely. Ideal for developers building agentic workflows that require safe, temporary, and configurable compute spaces.
Category: Developer Tools
- Integrations
- Baseten platform, persistent volumes, snapshots
- Deployment
- Cloud-based isolated environments managed by Baseten
- CPU Rate
- $0.0655 vCPU/hr
- Memory Rate
- $0.0211 GB RAM/hr
- Snapshot Storage Rate
- $0.20 GB/month
- Volume Storage Rate
- $0.16 GB/month
- Isolated environments for AI agent code execution
- Usage-based pricing starting at $0.0655 per vCPU/hr
- Automatic environment deletion based on user-defined lifetimes
- Support for persistent volumes and snapshots
Overview
Baseten Sandboxes are isolated runtime environments designed for AI agents to execute code and manage files securely. They provide businesses and developers with a controlled space where agentic workflows can operate without risking the integrity of the broader system. Each sandbox is initialized from a specific image and can be configured with precise CPU and memory resources to match the workload. Baseten manages the entire lifecycle of these environments, including automatic deletion based on user-defined expiration times. This serverless approach allows agents to act quickly while ensuring that compute costs are strictly tied to active usage.
Agent Environments
- Isolated Execution: Sandboxes provide isolated runtime environments where AI agents can execute code and work with files without impacting the host system.
- Image-based Initialization: Each sandbox is initialized from a specific image to ensure a consistent and reproducible environment for agent tasks.
- Configurable Lifetimes: Users can set a specific lifetime for each sandbox, after which Baseten automatically deletes the environment.
- External Data Persistence: Task results and data can be saved to persistent volumes outside the sandbox before the environment expires.
Developer Controls
- Environment Management: Developers can manage sandboxes and images through the Baseten platform to support agentic workflows.
- Volume Support: Sandboxes support the use of volumes for persistent storage across different agent runs.
- Secure Access: Access tokens are used to manage secure interactions with the sandbox environments.
- Observability: The platform provides observability features to monitor sandbox status and agent activities.
Use cases
- Developers use sandboxes to provide agents with a safe environment to execute untrusted code.
- AI teams deploy sandboxes to manage temporary file processing tasks for agentic workflows.
- Engineers configure sandbox lifetimes to ensure automatic cleanup of temporary compute resources.
Specifications
- Integrations
- Baseten platform, persistent volumes, snapshots
- Deployment
- Cloud-based isolated environments managed by Baseten
- CPU Rate
- $0.0655 vCPU/hr
- Memory Rate
- $0.0211 GB RAM/hr
- Snapshot Storage Rate
- $0.20 GB/month
- Volume Storage Rate
- $0.16 GB/month
- Image Storage Rate
- $0.045 GB/month
- Image Build Rate
- Same price as a sandbox
How it works
- Choose an Image: Select or create a base image to define the software environment for the agent.
- Provision Compute: Launch the sandbox with specific CPU and memory configurations to meet the agent's task requirements.
- Execute Agent Tasks: The AI agent executes its code or file operations within the isolated environment.
- Automatic Expiration: The sandbox is automatically deleted by Baseten once its pre-configured lifetime expires.
Pricing
- CPU Runtime
- $0.0655 vCPU/hr
- Memory Runtime
- $0.0211 GB RAM/hr
- Snapshots Storage
- $0.20 GB/month
- Volumes Storage
- $0.16 GB/month
- Images Stored
- $0.045 GB/month
FAQ
What are Baseten Sandboxes?
Sandboxes are isolated environments where agents can safely run code and manage files. They are designed to give agents the tools they need to act fast while maintaining security.
How are sandboxes initialized?
Each sandbox starts from a specific image. You can also use snapshots and volumes to manage data and state within these environments.
What happens when a sandbox expires?
You can set a lifetime for each sandbox. Baseten will automatically delete the sandbox once it expires, so it is important to save results externally before then.
How is Sandbox usage billed?
Pricing is usage-based, charging $0.0655 per vCPU/hr and $0.0211 per GB RAM/hr. Storage for snapshots, volumes, and images is billed monthly per GB.
Added by AntSpace from public sources (docs.baseten.co).