Monty v1 — Pydantic Python sandbox (OSS)
Summary
Pydantic Monty v1 announce by Samuel Colvin (2026-09-25): Rust-written minimal Python sandbox for AI-generated code (Ruff parser + own bytecode VM; not CPython). OSS Monty is MIT-installable (pydantic-monty on PyPI, @pydantic/monty on npm, monty-pool on crates); Full Monty is the commercial WebSocket service. Tweet claims ~1 ms start (vs ~1.5 s) and 10k sandboxed scripts in 674 ms (claimed vs >3 h cloud sandbox). Docs latency table: OSS Monty ~0.80 ms new sandbox + ~0.40 ms for 10 REPL commands (~1.20 ms combined) vs ~1900 ms for a typical sandboxing service. Features: worker-pool crash isolation, dump/resume snapshots, host function exposure, ~2 MB workers, multi-round Hack Monty bounty. Explicit non-goal for now: installing PyPI packages inside the sandbox. Intended for agent code-mode; planned for Pydantic AI. Docs mark v1.0.0 production-ready. Repo ~8282 stars / 421 forks at catalog. X ~188 likes / 16 RTs / 133 bookmarks / ~9533 views.
- Venue
- Pydantic / GitHub
- Publisher
- Pydantic / GitHub
- Source
- github
- Access
- https://github.com/pydantic/monty ; https://pydantic.dev/docs/monty/get-started/ ; PyPI pydantic-monty ; npm @pydantic/monty ; announce https://x.com/samuelcolvin/status/2103469459981619243
- License
- MIT (OSS Monty); Full Monty commercial
- License family
- Permissive
- Language
- en
- Purpose
- Millisecond-start secure Python sandbox for LLM-written code without containers
- Scale
- GitHub stars~8282; tweet 10k scripts / 674 ms; docs compare ms vs container sandboxes
- Domain
- Python sandbox, agent code execution, Rust interpreter, security
- Used for
- Agent code-mode sandboxes; compare to Docker/WASI/Pyodide latency; Pydantic AI code execution
- Time period
- Repo created 2023-05-28T11:13:38Z; pushed 2026-09-25T11:22:52Z; X announce 2026-09-25T12:59:34Z; cataloged 2026-09-25
- Author type
- industry
- Added
- Sep 25, 2026
- Verified
- Sep 25, 2026
- Research status
- done
From the source
- Repository
- pydantic/monty
- Created
- May 28, 2023
- Last push
- Oct 2, 2026
- Stars
- 8,529
- Forks
- 444
- Main language
- Rust
Tags
Topics
Python sandbox, agent code execution, Rust interpreter, security
Research notes
- Hudson linked X announce 2026-09-25. Primary source_url is GitHub; X id 2103469459981619243 in access/notes. Dump /workspace/curator/research/samuelcolvin-monty-v1-20260925/. Sheets not synced.
Similar entries
- Post How to Build Agentic Harness using Jev (Builder's Guide) — Avid / @Av1dlive
- Code AgentEnv (Scale AI) — open framework for building RL agent environments
- Post The Next Scaling Problem
- Paper AgentWorld: Benchmarking Long-Horizon Collaboration of Multi-agent LLMs
- Dataset Rust_Dataset (Tesslate)
- Dataset Rust_sharegpt (Tesslate)