Modal Sandboxes

Run AI-generated code in secure, dynamically defined environments. Scale to 10,000+ simultaneous sessions with ease.

3D gradient geometric shapes
Codegen logo

"Using Modal, Codegen has been able to move at lightning speed with full-stack AI development. The product is designed with developer experience front and center, and my team is incredibly happy having it as part of our arsenal."

Jay Hack, Founder & CEO
Basis logo

"We use Modal to securely run LLM-augmented code on a large scale. Modal's powerful primitives like sandboxes and file systems have allowed us to focus on our core competencies without having to waste time on our own infra."

Matt Harpe, Co-Founder
Mistral AI logo

"Modal Sandboxes enable us to execute generated code securely and flexibly. With Modal's support, we expedited the development of our code interpreter feature and successfully integrated it into our chat platform, Le Chat, to better assist our users."

Wendy Shang, AI Scientist

Safe code execution

Get Started
Execution of AI-generated code icon

Execution of AI-generated code

Run code snippets created by language models or submitted by users in a secure environment.
LLM evaluations icon

LLM evaluations

Test the latest LLM models for safety and quality.
gVisor-based runtime icon

gVisor-based runtime

Rely on strict security and isolation guarantees from our battle-tested containerization technology.
Safe code execution visualization

Fully programmable container environment

Get Started
Universal code execution icon

Universal code execution

Orchestrate and run any kind of code or container image, even if it's not Python-based.
Out of the box interactivity icon

Out of the box interactivity

Execute processes in an ongoing sandbox session, and get input/output streaming with each.
Programmable container environment

Advanced sandbox features

Get Started
Persistent data management icon

Persistent data management

Maintain stateful data across sessions with dynamically-provisioned network file systems.
Network accessibility icon

Network accessibility

Create tunnels to expose ports inside the sandbox.
Network security icon

Network security

Control over outbound networking.
Advanced sandbox features

Ship your first app in

minutes.

$30 / month free compute

Modal Logo