#5454th of 129 in Agent and MCP starters
llm-sandbox
Python library that runs LLM-generated code in container or local sandboxes
Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts llm-sandbox on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.llm-sandbox is on your watch list. Its new releases and problems show there.
- Stars
- 1.2k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Python
1,047 on 13 May 20261,152 on 2 Dec 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
LLM Sandbox is a Python package with one API (SandboxSession) for executing LLM-generated code on Docker, Kubernetes, Podman, Bubblewrap, NsJail, and experimental Windows MXC and WSL2 backends. It handles library installs, file copy in and out, plot capture and container pooling, and ships an MCP server for clients such as Claude Desktop. Supported languages are Python, JavaScript, Java, C++, Go and R.
Who it is for: Developers adding sandboxed code execution to LLM agents or MCP clients
Strengths
- Same session API across Docker, Kubernetes, Podman, Bubblewrap, NsJail and Windows backends
- Local Bubblewrap and NsJail backends run without Docker or a daemon
- Container pooling with pre-warming; published benchmarks for Docker, Bubblewrap and NsJail
- Examples for eleven agent frameworks, plus plot extraction and an MCP server
Weaknesses
- Bubblewrap and NsJail share the host kernel and are not a VM boundary
- Local Linux backends lack container images, pooling and interactive sessions
- Interactive IPython sessions only on Docker, Podman and Kubernetes, Python only
- Windows MXC and WSL2 adapters are experimental; MXC supports only Python and JavaScript
What it needs
- Python
- Needs Docker, Podman or Kubernetes (container backends), Bubblewrap 0.8.0+ and libseccomp2 (local Linux), NsJail binary (nsjail backend)
What changed
- 0.3.45 ↗ (opens in a new tab)Security fix
GHSA-CRFW-XVCM-HJXJ. “Fixes unsafe host-side archive extraction in copy_from_runtime() described in GHSA-crfw-xvcm-hjxj.”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in Agent and MCP starters
See all 129| Rank | Project | Score |
|---|---|---|
| #52 | mcp-typescript-templateTypeScript starter for remote MCP servers over HTTP with Express and Effect | 68 out of 100 |
| #53 | kernel-imagesSandboxed headful Chromium images with CDP access, live view and session recording | 67 out of 100 |
| #55 | agents-universeSelf-hosted multi-agent platform with Product Owner, Tech Lead and QA roles | 67 out of 100 |
| #56 | deuz-sdkTypeScript SDK for model calls, agents and multi-agent swarms | 67 out of 100 |
| #57 | studioSelf-hosted MCP control plane with agents, model routing, SSO and audit logs | 67 out of 100 |