Vestibule
Run untrusted AI-agent code in a sandbox on your own machine: free, local, and with no hosted sandbox service in the loop.
A local, kernel-isolated code-execution sandbox for AI agents, exposed as an MCP server.
Left: the same script runs directly on the host (reads a fake secret outside /workspace and connects to 1.1.1.1:80), then inside Vestibule (blocked on both, reporting isolation: native under WSL2). Right: vestibule-mcp ui shows the run live with its logged code, isolation verdict, and cgroup usage.
A vestibule is a small sealed entry chamber between outside and inside. Vestibule sits between an AI agent and your machine: code the agent sends to
run_codeexecutes inside the chamber, with/workspaceas its only doorway.
╔═════════════════════════════╗
┌──────────────┐ ║ VESTIBULE ║ ┌──────────────────┐
│ │ run_code ║ ║ sealed: │ your machine │
│ AI agent │ ─────────────► ║ generated code runs here ║ ────── ✕ ────►│ files, secrets, │
│ (via MCP) │ ◄───────────── ║ ║ no direct path │ network, shell │
│ │ output only ║ no network · no host files ║ │ — kept out │
└──────────────┘ ║ capped cpu · memory · /tmp ║ └──────────────────┘
╚══════════════╤══════════════╝
│
the one doorway: /workspace (a dedicated folder for files)
Only code sent to run_code runs inside the chamber — your agent's own shell and file tools still run on your machine unless you restrict them (how).
Why Vestibule?
AI coding agents don't just suggest code anymore — they write and execute it autonomously in a loop. Running model-generated code directly on your host is the risky part: a prompt injection can read ~/.ssh or .env, a bad path can wipe the wrong folder, or a runaway loop can starve the machine.
Hosted sandboxes (like E2B or Daytona) solve this, but you pay per second, add a network round-trip to every run, and hand your code to a third party. Vestibule avoids all three:
- Local — a process spawn, not an HTTP call. No network needed after
setup. - Free — MIT-licensed, no account, no metering, no usage bill.
- No sandbox vendor — no telemetry and nothing sent anywhere by Vestibule itself. (Your agent still talks to its model provider as usual.)
What it gives your agent: an MCP server with two tools for Claude Code, Cursor, Claude Desktop, or any MCP client:
run_code— runs Python 3.12, Node 22, or Bash in a fresh, network-less, resource-capped sandbox (Linux namespaces, cgroups v2, and seccomp natively on Linux; a locked-down container where native isolation isn't available).read_workspace— safely reads files a run writes to/workspace, refusing symlinks.
Quick start
You need an MCP client (examples below use Claude Code) and uv. Want exact copy-paste commands for your OS, client, and limits? Use the interactive setup wizard.
| Platform | Prerequisite | Isolation you get |
|---|---|---|
| Linux with systemd (Debian, Fedora, Arch, WSL2) | curl (minimal Debian also needs ca-certificates and dbus-user-session) |
native (no Docker needed; measured on WSL2 & Debian 13; arm64 untested) |
| Windows | Docker Desktop, running | container (measured; use WSL2 for native) |
| Ubuntu 23.10+ (host or VM, not WSL2) | curl + Docker Engine from Docker's apt repo |
container (Ubuntu restricts unprivileged user namespaces via AppArmor) |
| macOS | Docker Desktop for Mac, running | container (expected — untested on macOS) |
Details on where native isolation works: Where native works.
1. Platform prerequisites
- Linux (Debian / Fedora / Arch / WSL2): ensure
curlis installed. On a minimal Debian, runsudo apt install ca-certificates curl dbus-user-session && sudo reboot. - Ubuntu 23.10+ (host/VM): install
curland Docker Engine from Docker's apt repo, then runsudo usermod -aG docker $USERand log out/in. Do not use the Docker snap — it rejectsno-new-privileges, which Vestibule requires. (Note: membership in thedockergroup grants root-equivalent access on Linux.) - Windows / macOS: install and start Docker Desktop. (On Windows, if Docker Desktop asks for Virtual Machine Platform, run
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -Allin an admin PowerShell and reboot.)
2. Install uv (then open a new terminal)
# Linux / macOS
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
3. Install Vestibule, run setup, and connect Claude Code
uv tool install vestibule-mcp
uv tool update-shell # Windows: if this updates PATH, open a new terminal
vestibule-mcp setup # downloads ~123 MB of pinned runtimes and checks isolation
claude mcp add --scope user vestibule -- vestibule-mcp
setup prints ready in this terminal's environment: isolation native (or isolation container). For Cursor, Claude Desktop, or macOS GUI clients, see Connect other clients.
4. Verify it works
Ask your agent to run print(1) with Vestibule's run_code tool. A native run returns:
exit_code: 0
stdout:
1
usage: wall=120ms, cpu=37ms, mem_peak=13MiB, pids_peak=2 (the whole sandbox, including its setup and file cache)
isolation: native
Under container, usage: reports wall time only (cgroup peaks aren't readable from outside a container) and ends with isolation: container.
Because agents often fold or summarize tool output, you can verify directly from your terminal with the audit log or open the read-only local web inspector:
vestibule-mcp audit
# 2026-11-20T23:03:35.569Z python ran isolation=native exit=0 wall=120ms cpu=37ms mem_peak=13MiB print(1)
vestibule-mcp ui
# opens a read-only local inspector on 127.0.0.1 showing live runs, full logged code, isolation, usage, and /workspace
Connect other clients
Add this entry to your client's MCP config (merge into mcpServers if it already exists), then fully restart the client:
- Cursor:
~/.cursor/mcp.json(tested on Windows) - Claude Desktop:
%APPDATA%\Claude\claude_desktop_config.jsonon Windows (tested), or~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS (untested)
{
"mcpServers": {
"vestibule": { "command": "vestibule-mcp" }
}
}
GUI clients on macOS (or any client that can't find vestibule-mcp / docker on PATH) need the full binary path (uv tool dir --bin) and an explicit PATH:
{
"mcpServers": {
"vestibule": {
"command": "/Users/you/.local/bin/vestibule-mcp",
"env": { "PATH": "/usr/local/bin:/usr/bin:/bin" }
}
}
}
Lock down your agent
Only code sent to run_code is sandboxed. If your agent still has its own bash or file tools enabled, it can use them directly on your machine.
To run a sandbox-only Claude Code session where run_code and read_workspace are the only tools available:
# Disable built-in tools, allow only Vestibule:
claude --tools "" --allowedTools mcp__vestibule__run_code mcp__vestibule__read_workspace
# Windows PowerShell drops empty "" args — wrap with cmd:
cmd /c --% claude --tools "" --allowedTools mcp__vestibule__run_code mcp__vestibule__read_workspace
To also exclude your other MCP servers and refuse any unlisted tool without prompting, save the mcpServers JSON above as only-vestibule.json and add --strict-mcp-config --mcp-config only-vestibule.json --permission-mode dontAsk:
claude --tools "" --allowedTools mcp__vestibule__run_code mcp__vestibule__read_workspace --strict-mcp-config --mcp-config only-vestibule.json --permission-mode dontAsk
Note: Claude Code plugin hooks still run even with --strict-mcp-config — disable plugins (/plugin) if you don't want hooks running. Other MCP clients have their own tool-restriction settings.
Isolation and security
Four practical boundaries to keep in mind (full threat model and test citations in SECURITY.md):
- Not a VM. On Linux, the sandbox shares your host kernel, so a kernel exploit could in principle escape it. On Windows and macOS, Docker Desktop runs containers inside its own Linux VM.
- The workspace is writable and uncapped. Code can create, edit, or delete anything in
/workspace(the rootfs is read-only and/tmpis capped, but workspace disk usage is not). SetVESTIBULE_WORKSPACE_RO=1to mount it read-only. - Treat
/workspacelike an untrusted download. Sandboxed code can create real symlinks inside/workspacepointing to host files like~/.ssh/id_ed25519. Vestibule'sread_workspaceanduirefuse symlinks; don't pointVESTIBULE_WORKSPACEat an existing project folder or let other tools follow links inside it blindly. - Run output goes back to your agent. Anything printed to stdout/stderr is read by the agent and sent to its model provider.
Every run_code result states honestly what protection actually applied:
isolation: |
What it means |
|---|---|
native |
Linux namespaces, pivot_root jail, seccomp allowlist, and all cgroup v2 resource limits applied. |
container |
Locked-down container profile (no network, all caps dropped, read-only rootfs, non-root, resource caps) handed to Docker (or experimental Podman). |
native-degraded (…) / container-degraded (…) |
Isolated, but some resource limits couldn't be applied or verified — the parentheses say which and why. |
none |
No isolation claimed (VESTIBULE_BACKEND=naive for dev only, or an unverified failure explained in parentheses). |
Blocked: (no isolation: line) |
Nothing ran. The message tells you what to fix and whether to retry or restart. |
Configuration and auditing
Set options in the env block of your MCP client config and restart the client. Invalid settings never fail silently — the server starts and replies Blocked: naming the setting to fix.
Common settings (full list in docs/REFERENCE.md):
VESTIBULE_WORKSPACE— host folder mounted at/workspace(default:~/.vestibule/workspace)VESTIBULE_WORKSPACE_RO=1— mount/workspaceread-onlyVESTIBULE_BACKEND— forcenative,container, ornaive(dev only)VESTIBULE_MEM_MB/VESTIBULE_CPU_PCT— memory and CPU capsVESTIBULE_DEFAULT_TIMEOUT_S— default per-run timeout
Auditing and live inspection: every run_code call that reaches Vestibule is logged to ~/.vestibule/audit/ (VESTIBULE_AUDIT_DIR), storing the code (truncated at 4 KiB), outcome, isolation, usage, and output sizes (never output contents). Inspect recent runs in your terminal with vestibule-mcp audit (last 20) or vestibule-mcp audit 50 (output is terminal-escaped), or launch the opt-in read-only local web inspector with vestibule-mcp ui [--port PORT] [--no-open] (bound strictly to 127.0.0.1, token-gated, with a safe /workspace browser). Details in Usage numbers and the audit log.
About setup: downloads ~123 MB of digest-pinned python:3.12-slim and node:22-slim layers/images once (unpacked to ~/.vestibule/rootfs for native, or pulled into Docker for container). Tool calls never pull from the network, and Vestibule never needs root (it refuses to run as root on Linux/macOS). Details and custom-image rules: What setup does, in detail. To pull the pinned Docker images manually:
docker pull docker.io/library/python@sha256:5e2bdb1b0d542d5039cffb8181c65930093949194a65c365dfb1b0fe13a4fa5b
docker pull docker.io/library/node@sha256:5ec23b7c622b00547753bc6ffd78085dd868a68aeb41c8e0a1418f033e13d96d
Common first-run issues
uvorvestibule-mcpnot found: open a new terminal (on Windows, runuv tool update-shellfirst).CERTIFICATE_VERIFY_FAILEDduringsetup: installca-certificates(minimal Debian).native-degraded (… no systemd user bus): installdbus-user-sessionand reboot.daemon not reachable: start Docker; on Linux, add yourself to thedockergroup (sudo usermod -aG docker $USER), log out/in, and restart your client.- Everything else:
Blocked:replies name the fix; seedocs/GETTING_STARTED.mdfor the full list.
Uninstall
Quit your MCP client first, and copy out anything you want to keep from ~/.vestibule (workspace + audit log):
claude mcp remove --scope user vestibule # or remove from your client's mcp config
uv tool uninstall vestibule-mcp
chmod -R u+rwX ~/.vestibule && rm -rf ~/.vestibule # Windows: Remove-Item -Recurse -Force $HOME\.vestibule
# only if setup pulled the Docker images:
docker image rm docker.io/library/python@sha256:5e2bdb1b0d542d5039cffb8181c65930093949194a65c365dfb1b0fe13a4fa5b docker.io/library/node@sha256:5ec23b7c622b00547753bc6ffd78085dd868a68aeb41c8e0a1418f033e13d96d
How it works
Vestibule splits into two halves: a clean async MCP server (argument validation, caps, schemas, audit logging — untrusted code never runs in the server process) and a pluggable warden backend that handles isolation and execution. On Linux with unprivileged user namespaces and systemd, the native warden isolates each run directly with user/mount/pid/net namespaces, pivot_root, cgroups v2, and a libseccomp allowlist — no Docker and no root. Everywhere else, the container warden runs a locked-down throwaway container. See docs/ARCHITECTURE.md for the full design.
License
Metadata
Release files for vestibule-mcp 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vestibule_mcp-0.2.0.tar.gz | 136.3 kB | Without provenance | Details for vestibule_mcp-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vestibule_mcp-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for vestibule_mcp-0.2.0-py3-none-any.whl |
Total release size: 280.7 kB
Release files / vestibule_mcp-0.2.0.tar.gz
| Download URL | vestibule_mcp-0.2.0.tar.gz |
|---|---|
| Size | 136.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5dcaa9d9ea9c7c73276ad49679a58c419f30ea77dc624c8a403e3d6604362dca
|
|
BLAKE2b-256 checksum How to use checksums |
630d8bf474af0eac5e45bc081b0eb7059445a1c7168869e2be13b0709f4c3159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / vestibule_mcp-0.2.0-py3-none-any.whl
| Download URL | vestibule_mcp-0.2.0-py3-none-any.whl |
|---|---|
| Size | 144.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2efc5a6e11155813298fc4a6278658554a2c38129707cb2cf3eea33f0b9cdbc2
|
|
BLAKE2b-256 checksum How to use checksums |
720b11740147799546f2135e8d57e5a82c0fdd828ea7a106c3cdb1909704ce33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for vestibule-mcp 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.