#88th of 11 in Sandboxes
monty
Embedded Python interpreter in Rust for running LLM-generated code
Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 8.7k
- License
- MIT
- Last commit
- Oct 2026
- Last release
- Oct 2026
- Language
- Rust
6,497 on 1 Apr 20268,748 on 21 Oct 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Monty is a Python 3.14 subset interpreter written in Rust, installed as a Python, JavaScript or Rust package. It runs model-written code with no filesystem, environment variables or network, so the code reaches the host only through functions and mounts the caller passes in. The README reports under 1ms to get a new sandbox from a running pool, compared with about 1500ms for a sandbox service.
Who it is for: Developers running AI-generated Python inside agents without containers
Strengths
- No filesystem, env vars or network inside; host access only via passed-in functions and mounts
- Reported under 1ms sandbox start from a pool, versus about 1500ms for a sandbox service
- Packages for Python (pydantic-monty), npm (@pydantic/monty) and Rust (monty crate)
- Documents resource limits and snapshots; MIT licensed
Weaknesses
- Runs only a subset of Python, so some model-written code will not execute
- Server mode (Full Monty, WebSocket service) is a separate commercial product
- Go and Dart bindings are community-maintained, not official
- Latency figures come from the project's own docs, not independent benchmarks
What it needs
- no GPU
Also in Sandboxes
See all 11| Rank | Project | Score |
|---|---|---|
| 1 | LightpandaHeadless browser written in Zig for agents and scraping, with CDP and MCP | 80 out of 100 |
| 2 | ObscuraRust headless browser with V8 and CDP for scraping and agents | 75 out of 100 |
| 3 | OpenShellPolicy-enforced sandbox runtime for autonomous AI agents | 74 out of 100 |
| #4 | NemoClawReference stack for running OpenClaw, Hermes and Deep Agents in OpenShell sandboxes | 73 out of 100 |
| #5 | opensandboxSandbox API for running AI agent code, commands and browsers in isolation | 67 out of 100 |