Welcome to Modbox
On-demand cloud sandboxes for AI agents, code execution and browser automation
Modbox lets you spin up isolated, containerized environments in seconds — directly from your code or via API. Each sandbox is a fully independent Linux container running in the cloud, accessible via HTTPS, with a lifecycle you control.
Provision your first sandbox in under 2 minutes
See how teams use Modbox for AI agents, browser automation and more
Full REST API with interactive explorer and code snippets
What is a sandbox?
A sandbox is a short-lived, isolated container that runs a Docker image of your choice. Every sandbox gets:
- A unique HTTPS URL to access the running service
- A configurable time-to-live (TTL) so resources are never wasted
- Full environment variable injection at provision time
- Optional readiness probing — Modbox waits until the container is actually ready
How it works
Choose an image
Pick a pre-built Modbox image or bring your own Docker image. Images can include anything — a browser, a code interpreter, a full IDE server, an MCP server.
Provision a sandbox
Call POST /sandboxes/provision with a task_id and optional image_id. Modbox schedules the container and returns immediately with status: provisioning.
Wait for ready
Poll GET /sandboxes/detail/{sandbox_id} or call POST /sandboxes/wait to block until status: running. The sandbox_url field contains the live HTTPS endpoint.
Key concepts
Popular use cases
- 🤖 AI coding agents — Give each agent a fresh, isolated environment to write and run code without risk
- 🌐 Browser automation — Provision Chromium sandboxes for web scraping, testing, and AI browser agents
- ⚡ Code execution — Safe multi-language code execution for education platforms and dev tools
- 🛠️ Dev environments — On-demand preview environments that spin up in seconds