LangChain

Build a secure computer for your agent

Published 2026-07-23 · Duration 36:51

Summary

As agents evolve beyond simple Q&A to writing and executing complex code (e.g., data analysis, software engineering), they require an isolated, persistent computing environment. The session details the architecture of LangSmith Sandboxes, a solution designed to provide production-ready, secure execution by giving each agent its own disposable computer. This system addresses critical challenges like untrusted model-generated code, container escape vulnerabilities, and scaling limitations inherent in traditional local or vanilla container setups.

Download summary

Key takeaways

  1. Production-Grade Isolation 20:45

    Sandboxes utilize hardware virtualized microVMs for kernel-level isolation, ensuring that malicious code cannot escape the environment (preventing issues like container escapes). This level of separation is necessary because agents run untrusted, model-generated code.

  2. Scalability and Performance 23:50

    The platform supports scaling from one to thousands of isolated sandboxes in parallel. Benchmarking shows a median spin-up time of approximately one second, making it suitable for high-volume, user-facing applications.

  3. Secure Credential Management 25:20

    The O proxy acts as a man-in-the-middle proxy controlling all egress from the VM. This ensures that credentials never touch the runtime, significantly mitigating risks associated with data exfiltration or malicious network calls.

  4. State Persistence and Resilience 27:10

    Sandboxes support persistent state across long-running, interruptible tasks. Users can snapshot and restore the entire environment (including file system and memory), allowing for rollbacks or forking to test multiple scenarios.

Technical details

  • Agent Execution Model 105s

    Agents require a full computing environment (file system, shell, installed packages) to perform tasks like running code tests or analyzing data. This capability is necessary because agents are no longer limited to predefined tools.

  • Security Architecture 1805s

    The use of microVMs provides hardware-level separation, which is superior to standard containers (like Docker) for running untrusted code because it prevents kernel exploits and ensures robust isolation boundaries.

  • Networking Control 1520s

    The O proxy controls all network egress, allowing users to white-list specific domains and preventing malicious communication or data exfiltration to unauthorized endpoints. This is cited as the most powerful security control.

  • State Management 1630s

    Sandboxes support persistent state, allowing processes to be paused and resumed (e.g., for long-running tasks). Features include snapshotting, which allows restoration from any point in the agent's lifecycle.

Mentioned resources

  • LangSmith Sandboxes (Platform/Service)
  • OpenSuite (Agent Example)

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.