Give Every Agent an Ephemeral Linux Sandbox via MCP [Open Source]

Resources

I just released a MCP server that gives every agent its own ephemeral linux sandbox to run shell commands: https://github.com/Kiln-AI/kilntainers [MIT open source]

But Why?

Agents are already excellent at using terminals, and can save thousands of tokens by leveraging common Linux utilities like grep, find, jq, awk, etc. However giving an agent access to the host OS is a security nightmare, and running thousands of parallel agents is painful. Kilntainers gives every agent its own isolated, ephemeral sandbox.

Features

  • 🧰 Multiple backends: Containers (Docker, Podman), cloud-hosted micro-VMs (Modal, E2B), and WebAssembly sandboxes (WASM BusyBox, or any WASM module). Defaults to fully local Docker.
  • 🏝️ Isolated per agent: Every agent gets its own dedicated sandbox — no shared state, no cross-contamination.
  • 🧹 Ephemeral: Sandboxes live for the duration of the MCP session, then are shut down and cleaned up automatically.
  • 🔒 Secure by design: The agent communicates with the sandbox over MCP — it doesn’t run inside it. No agent API keys, code, or prompts are exposed in the sandbox.
  • 🔌 Simple MCP interface: A single MCP tool, sandbox_exec, lets your agent run any Linux command.
  • 📈 Scalable: Scale from a few agents on your laptop to thousands running in parallel.

It's MIT open source, and available here: https://github.com/Kiln-AI/kilntainers

Posted Feb 22, 2026, 4:55 PM UTC

211
Loading comments…