CuratedMCP
OpenAI Agents SDK
PyPI

How to install LLM Sandbox in OpenAI Agents SDK

Securely run LLM-generated code in isolated containers across 7 languages and 3 container backends.

Indexed, not yet reviewed

We found LLM Sandbox in the official MCP registry. Our automated check passed on Nov 1, 2026 (it confirms the server is published and reachable), but no one at CuratedMCP has reviewed its code, permissions or credentials handling. Check what it can access before you give it keys. Scan your machine free to see every MCP server you have installed.

Steps

  1. 1Install uv (for uvx): https://docs.astral.sh/uv/
  2. 2pip install openai-agents
  3. 3Use the snippet below inside an async function

Python snippet

Python
from agents import Agent
from agents.mcp import MCPServerStdio

async with MCPServerStdio(
    params={
        "command": "uvx",
        "args": [
            "llm-sandbox"
        ]
    },
) as server:
    agent = Agent(name="Assistant", mcp_servers=[server])
Environment variableRequiredWhat it is
BACKENDNoContainer backend to use. Must match the installed extra: mcp-docker, mcp-podman, or mcp-k8s.
DOCKER_HOSTNoDocker or Podman socket URL, e.g. unix:///var/run/docker.sock
KUBECONFIGNoPath to kubeconfig file when BACKEND=kubernetes.
NAMESPACENoKubernetes namespace used for sandbox pods when BACKEND=kubernetes.
COMMIT_CONTAINERNoCommit the container after a run so installed libraries persist between sessions.
KEEP_TEMPLATENoKeep the base image after the session ends to avoid re-pulling it on the next run.
SANDBOX_NETWORK_MODENoNetwork mode for the sandbox container. Set to 'none' for hardened isolation. Docker and Podman backends only.
SANDBOX_READ_ONLYNoMount the sandbox root filesystem read-only. Recommended: true. Docker and Podman backends only.
SANDBOX_CAP_DROPNoComma-separated Linux capabilities to drop. Recommended: ALL. Docker and Podman backends only.
SANDBOX_SECURITY_OPTNoComma-separated container security options, e.g. no-new-privileges. Docker and Podman backends only.
SANDBOX_MEMORYNoMemory limit for the sandbox container, e.g. 4g. Docker and Podman backends only.
SANDBOX_CPUSNoFractional CPU allocation for the sandbox container, e.g. 1.5. Docker and Podman backends only.

Install in other clients

About LLM Sandbox: repo, license and check results →

Maintain LLM Sandbox?

Claim this page to get a full CuratedMCP listing: edit your description, see listing analytics, and add our README badge. Listing is free, and a person checks every submission before it goes live. We'll pre-fill the form from the registry.

    How to install LLM Sandbox MCP server in OpenAI Agents SDK | CuratedMCP