Agents need their own computer. Here's how to give them one safely.

Langchain··Submitted by Mads Kristian Nylund
AI SecurityAI InfrastructureAI

LangSmith Sandboxes offer secure, isolated environments for agents to run code, ensuring safety and control by isolating each agent's execution. These sandboxes use hardware-virtualized microVMs with their own kernels, persisting state across sessions, and preventing unauthorized access. They provide resource limits, credential management, and lifecycle control to prevent excessive resource consumption. Agents must treat output as untrusted and avoid passing raw output back to models, with non-agentic reads recommended for sensitive workflows. Sandboxes support snapshots, forks, and logging, and managed sandboxes offer a simplified interface for reliable and secure execution.

Read Article

More from Langchain

Related Articles