Ross ROSS = Recommend OSS · open-source software intelligence for agents

pydantic/monty

A secure Python sandbox, written in Rust, for code written by AI. observed · 2026-10-12

github.com/pydantic/monty · homepage · Rust · MIT (permissive) observed · 2026-10-12

Health v2 · maintenance only

96/100

  • Activity 99
  • Release rhythm 98
  • Longevity 88
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 3
  • age_days: 1241
  • days_rel: 15
  • days_push: 9
  • n_releases_24m: 28

Full methodology

Adoption not part of the score

8621 stars · 453 forks observed · 2026-10-12

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Monty is a minimal, secure Python interpreter written in Rust designed for safely executing LLM-generated code without container-based sandboxes. It blocks host access by default, supports snapshotting interpreter state, and can be called from Rust, Python, or JavaScript with sub-microsecond startup.

Use cases

  • safely run python code generated by an llm
  • sandbox untrusted python code without docker containers
  • embed a python interpreter in a rust application
  • pause and resume python execution from a snapshot
  • typecheck llm-written python code
  • give ai agents controlled access to host functions

When to choose

  • you need to execute LLM-generated Python with minimal latency and no container overhead
  • you want strict control over filesystem, network, and environment access from executed code
  • you need to snapshot and resume interpreter state across requests or processes

When to avoid

  • you need full CPython compatibility or arbitrary third-party Python packages
  • you need a production-grade, stable interpreter for general-purpose Python workloads
  • your code depends on C extensions or native modules

Facets

library · maturity experimental

interpreter security llm-inference agent-framework sdk programming-languages artificial-intelligence security developer-tools rust python cross-platform sandboxed-python llm-code-execution microsecond-startup snapshotable embedded-interpreter no-container-sandbox sandbox interpreters ai-agents nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
pydantic/montymain96

For agents

markdown · JSON · MCP: product_card(name="pydantic/monty")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem