LangChain Managed Deep Agents Keep Credentials Outside Sandboxes
The architectural detail matters: credential injection happens at a proxy layer outside the sandbox, so a compromised package cannot exfiltrate tokens even if it escapes other controls. Teams building agent systems that execute untrusted code can use this allowlist-plus-proxy pattern to scope what services an agent may reach. Compare it with approaches that pass API keys directly into sandbox environments, which the walkthrough frames as the risky default.
LangChain released a walkthrough of Managed Deep Agents, hosted by Caspar, explaining how its proxy architecture protects credentials.
Packages running inside an agent sandbox may be malicious, exposing any credentials stored there.With Managed Deep Agents, the proxy injects the user's token outside the sandbox and only on calls to services the user has explicitly allowed.
The agent itself never sees the credential.The walkthrough is available at langch.
in/mda.
Agents with sandboxes run packages you didn't write. If one is malicious, any credential in the sandbox is exposed. With Managed Deep Agents, the proxy adds your token outside the sandbox, only on calls to services you've allowed. The agent never sees it. Caspar @caspar_br A walkthrough of how Managed Deep Agents uses sandbox proxies to keep your credentials safe. langch.in/mda
This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and AI regulation, compliance frameworks, and sovereign compute policy. Key entities and technical topics under continuous tracking include LangChain, Managed Deep Agents, agents, AI safety.
Source attribution: curated from LangChain (@LangChainAI).