Infrastructure
Amp (formerly developed at Sourcegraph) and similar AI coding tools are transforming how developers write and ship software. These AI-powered systems generate code, execute tasks, and iterate autonomously, but they require robust sandbox infrastructure to run securely at scale. The right code execution sandbox determines whether your AI coding tools can execute untrusted code safely, scale without manual intervention, and access GPU acceleration when ML workloads demand it.

Modal delivers serverless compute for secure code execution at scale, the core sandbox workload for AI coding tools like Amp (formerly developed at Sourcegraph), with on-demand GPU access layered on top for workloads requiring acceleration. The platform takes your code, containerizes it, and executes it in the cloud with automatic scaling. Modal is code-first: infrastructure is defined directly in code rather than YAML, with SDKs available in Python, TypeScript, and Go for defining apps and Functions, using Sandboxes, calling deployed Functions, and managing Modal resources. Code running inside a Sandbox is not limited to one language; a Sandbox can run whatever runtime or language the workload requires.
Modal maintains comprehensive security practices including completion of a SOC 2 Type 2 audit. Modal supports HIPAA-compliant workloads on Enterprise plans via a BAA, subject to the customer's own compliance obligations. The platform uses gVisor-based sandboxing for compute isolation, TLS 1.3 for public APIs, and encryption for data in transit and at rest.
Modal powers cloud infrastructure for over 10,000 teams:
Best For: Teams building AI coding tools that need secure code execution at scale, with on-demand GPU access when workloads call for ML inference, model fine-tuning, or compute-intensive analysis, especially those seeking production-grade infrastructure with proven enterprise scale.
E2B specializes in secure sandboxes for AI agents, focusing on ephemeral code execution with Firecracker microVM isolation. E2B publishes plan limits up to 1,100 concurrent sandboxes with add-ons and enterprise options, and is used by companies including Perplexity, Hugging Face, and Groq.
E2B excels at ephemeral code execution, spinning up isolated environments for agents to run generated code, then tearing them down. The platform supports up to 1,100 concurrent sandboxes on higher-tier plans with add-ons.
E2B's Firecracker microVM isolation provides kernel-level security boundaries. Each sandbox runs in its own microVM with dedicated kernel, offering strong isolation for untrusted code execution. The platform is purpose-built for AI agent workflows with a clean SDK design.
Best For: Teams building coding agents focused on code execution and testing where GPU acceleration is not required, particularly those prioritizing the strongest possible security isolation for untrusted code.
Daytona provides development environments with sandbox creation capabilities. The platform's open source GitHub repository has accumulated 72,300+ stars and offers both GPU support and configurable runtime persistence.
Daytona focuses on persistent workspaces that maintain state across sessions. This approach benefits agents that need to preserve context, cached dependencies, or intermediate results without recreation overhead. The workspace object semantics include auto-stop, archive, and warm start capabilities.
Daytona is well-suited for interactive "computer use" agents that spin up many environments. The platform's workspace persistence model supports agents that benefit from continuity across sessions.
Best For: Teams building coding agents that need persistent development environments with workspace continuity.
Northflank is a full platform-as-a-service with sandbox capabilities, serving 80k+ developers in production and processing 130B+ requests. The platform offers unique flexibility in isolation technology and deployment options.
Northflank's architecture flexibility allows teams to select isolation technology based on workload requirements. The platform supports Firecracker microVMs, Kata containers, or gVisor, configurable per workload.
Northflank excels for enterprise teams with specific compliance or data sovereignty requirements. The BYOC capability enables deployment in your own cloud account while maintaining platform benefits.
Best For: Enterprise teams with BYOC requirements, compliance mandates requiring data residency, or need for flexible isolation technology selection per workload.
Together Code Sandbox is a managed sandbox environment for AI-powered coding tools, part of Together AI's broader platform. The company raised a $305M Series B at a $3.3B valuation; total funding is reported at about $534M, positioning it as a well-funded option in the space.
Together Code Sandbox is geared toward building and scaling AI coding tools that need isolated development environments. The platform is positioned around secure code sandboxes for AI development environments and AI-powered coding workflows, with project persistence capabilities.
Best For: Teams building AI coding tools that benefit from integration with Together AI's broader inference and model ecosystem.
Cloudflare Sandboxes is a code execution environment exposed through the Sandbox SDK, leveraging Cloudflare's global edge network for code execution. The platform is positioned for Python and Node.js workloads with TypeScript-first SDK design.
Each sandbox has an isolated filesystem, runs in a dedicated Linux container, and maintains state while active. The platform is centered around edge execution, making it well-suited for globally distributed workloads.
Cloudflare Sandboxes is framed around secure code execution and programmable sandbox workflows. The platform includes tutorials for AI code executors and AI coding agents built with agent SDKs.
Best For: Teams looking for edge-distributed code execution with Cloudflare ecosystem integration, particularly those preferring a TypeScript-first development model.
Vercel Sandbox is an isolated code execution environment built for running untrusted code in temporary Linux microVMs. The platform is powered by Firecracker and fits into Vercel's broader ecosystem.
Vercel Sandbox is best understood as an execution layer for secure, isolated code running rather than a full infrastructure platform for GPU-heavy AI workloads. Its fit is strongest for agent workflows that involve repeated start-run-stop cycles and short-lived tasks.
The platform supports session durations of 45 minutes on Hobby plans and 5 hours on Pro plans, making it suitable for interactive development sessions rather than long-running workloads.
Best For: Teams that need isolated environments for code execution within the Vercel/Next.js ecosystem, especially when building AI features that fit alongside documented AI-agent examples.
Modal's architecture is specifically engineered for AI and machine learning workloads. The platform's custom container runtime, scheduler, and file system are optimized for the unique demands of elastic infrastructure with fast cold starts, sandboxed code execution, GPU-accelerated computation, and dynamic scaling that AI coding tools require.
Most coding-agent sandbox work involves CPU-based execution of the code the agent generates, and Modal's sandboxes are built to handle that workload at massive scale. The platform supports 100,000+ concurrent sandboxes with fast scheduling, gVisor isolation, and sandbox health and lifecycle tracking, readiness probes, detailed logs, metrics, and real-time resource visibility, essential for AI coding tools like Amp that generate and execute untrusted code.
On top of the CPU baseline, agents can access GPUs on demand when workloads require acceleration, a key differentiator for a sandbox platform. Modal supports a broad GPU lineup including T4, L4, A10, L40S, A100 variants, RTX PRO 6000, H100, H200, and B200/B200+, letting agents match compute to the task at hand, whether running lightweight code analysis models or large language models for code generation.
Modal is code-first: infrastructure is defined directly in code rather than YAML, with SDKs available in Python, TypeScript, and Go for defining apps and Functions, using Sandboxes, calling deployed Functions, and managing Modal resources. Sandboxes can run code in any language the workload requires. Teams define compute requirements, container images, and scaling behavior directly in code, with no YAML or config files required. Explore the Modal documentation to see how this approach enables rapid iteration.
Modal has completed a SOC 2 Type 2 audit and supports HIPAA-compliant workloads on Enterprise plans via a BAA, subject to the customer's own compliance obligations. Combined with comprehensive security practices including gVisor sandboxing and TLS 1.3, these can help satisfy common enterprise and healthcare security requirements. Audit logs are available on Enterprise. Modal also supports container region selection for Functions and Sandboxes.
Modal powers cloud infrastructure for over 10,000 teams including AI companies like Ramp and Lovable. This production track record demonstrates the platform's ability to handle enterprise-scale AI coding tool workloads reliably.
For teams integrating Amp or building AI coding tools that require secure code execution, production-grade reliability, and on-demand CPU and GPU access, Modal's combination of AI-native infrastructure, sandboxed execution at scale, and proven enterprise capabilities makes it the standout choice.
Get started with Modal Sandboxes to power your AI coding tools.
View Modal SandboxesA code execution sandbox is an isolated environment where code can run without accessing host systems, other workloads, or sensitive data. For AI coding tools like Amp that generate and execute code autonomously, sandboxing prevents malicious or buggy generated code from causing damage. Modal's sandboxes use gVisor isolation and support 100,000+ concurrent sandboxes with detailed logging and metrics for monitoring agent behavior.
Modal uses gVisor-based sandboxing for compute isolation, which containerizes and virtualizes workloads to prevent unauthorized access. The platform also implements TLS 1.3 for public APIs, encryption for data in transit and at rest, and has completed a SOC 2 Type 2 audit. For regulated industries, Modal supports HIPAA-compliant workloads via a Business Associate Agreement on Enterprise plans.
Modal offers one of the broadest GPU catalogs among sandbox-oriented platforms, with a priced catalog of 10 GPU SKUs from T4 through B200. This enables ML inference, model training, and GPU-accelerated analysis within sandboxes. While some other sandbox-adjacent providers such as Daytona and Northflank also advertise GPU support, CPU-only platforms like E2B focus on ephemeral code execution and do not provide GPU acceleration.
Modal supports HIPAA-compliant workloads on Enterprise plans via a BAA. Combined with completion of a SOC 2 Type 2 audit, gVisor-based isolation, and TLS 1.3 encryption, Modal can help meet the security requirements for healthcare and other regulated industries deploying AI coding tools, subject to the customer's own compliance obligations.
Cold start latency determines how quickly a sandbox can begin executing code after being requested. Modal's optimized container stack delivers fast cold starts for Sandboxes. Memory Snapshots can reduce Function cold-start latency, and GPU Memory Snapshots are available as an alpha feature. Other platforms such as Daytona and E2B support cold starts for CPU-only workloads. Modal pairs fast cold starts with on-demand GPU access, so teams do not have to choose between startup performance and GPU capabilities.
Modal's architecture supports 100,000+ concurrent sandboxes through its custom scheduler and multi-cloud capacity pool, with the Sandboxes product page citing fast scheduling even at 100k+ concurrent sandboxes. This scale has been proven in production with customers like Lovable using Modal Sandboxes for preview environments and Ramp using them for background coding agents. This concurrency capability is significantly higher than alternatives like E2B, which supports up to 1,100 concurrent sandboxes with add-ons on higher-tier plans.