# Monty v1 — Pydantic Python sandbox (OSS)

- **ID:** 1051
- **Kind:** code
- **URL:** https://github.com/pydantic/monty
- **Authors:** Samuel Colvin / Pydantic
- **Venue:** Pydantic / GitHub
- **Publisher:** Pydantic / GitHub
- **Published:** 2023
- **Source:** github
- **Language:** en
- **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 (auto-classified)
- **Tags:** pydantic, monty, sandbox, rust, agent-code, security, oss, samuel-colvin, x-post
- **Topics:** Python sandbox, agent code execution, Rust interpreter, security
- **Added:** 2026-09-25
- **Verified:** 2026-09-25
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/1051

## 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.

## Attributes

- **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

## From the source (fetched 2026-10-03)

- **Repository:** pydantic/monty (GitHub)
- **Created:** May 28, 2023 (GitHub)
- **Last push:** Oct 2, 2026 (GitHub)
- **Stars:** 8,529 (GitHub)
- **Forks:** 444 (GitHub)
- **Main language:** Rust (GitHub)

## 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

- [How to Build Agentic Harness using Jev (Builder's Guide) — Avid / @Av1dlive](https://papers.projxon.ai/entries/1048) (post, #1048)
- [AgentEnv (Scale AI) — open framework for building RL agent environments](https://papers.projxon.ai/entries/1276) (code, #1276)
- [The Next Scaling Problem](https://papers.projxon.ai/entries/786) (post, #786)
- [AgentWorld: Benchmarking Long-Horizon Collaboration of Multi-agent LLMs](https://papers.projxon.ai/entries/862) (paper, #862)
- [Rust_Dataset (Tesslate)](https://papers.projxon.ai/entries/896) (dataset, #896)
- [Rust_sharegpt (Tesslate)](https://papers.projxon.ai/entries/897) (dataset, #897)
