Monty
Python interpreter in Rust for safely running LLM-generated code
What it is
Monty is a sandboxed Python interpreter written in Rust that executes code produced by language models without spinning up containers. The sandbox has no filesystem, environment variables, or network; it can only reach the host through functions and mounts you explicitly provide, and it supports resource limits and snapshots. Developers building AI agents embed it from Python, JavaScript, or Rust to run model-written code with sub-millisecond startup.
