Skip to main content

Why Sandbox?

AI agents often need to execute generated code — data analysis, web scraping, calculations. Running this directly is dangerous. Hexr Sandbox provides:
  • Firecracker microVM isolation
  • No network access by default
  • Resource limits (CPU, memory, time)
  • Destroyed after execution (no persistent state)

Basic Usage


LLM + Sandbox Pattern

A common pattern: ask an LLM to generate code, then execute it safely:

Multi-Language Support


Resource Limits


Security Guarantees