LangSmith Sandboxes
https://www.langchain.com/langsmith/sandboxes
LangSmith Sandboxes are managed, ephemeral compute environments based on hardware-virtualized microVMs for executing code generated by AI agents. They run on LangChain's cloud infrastructure (GCP and AWS) and are accessed via the LangSmith SDK in Python or TypeScript. Typical use cases include providing agents with a sandboxed filesystem and runtime, executing untrusted code, building Docker-based snapshots, and forking sandbox instances for parallel agent workflows.
| Pricing model | Per-second metering of compute, memory, and storage in LSUs, with plan-specific included usage |
|---|---|
| Pricing The headline compute price as the provider states it. Sorting ranks prices stated per vCPU over time, converted to hourly. Other pricing models sort after, unranked. | $0.0576 per vCPU-hour; $0.01845 per GiB-hour of memory; $0.000123 per GiB-hour of storage (LSU rates, 1 LSU = $1) |
| Free while idle Whether a stopped, paused, or sleeping sandbox costs nothing. | ✕ |
| Elastic Resources flex with what the sandbox actually uses, and the bill follows: yes when the provider bills on active or observed use, no when capacity is reserved or allocated and billed while it runs. | – |
| Memory snapshots Whether RAM state survives a pause and resume, not just disk. | ✓ |
| Wake on request Whether a stopped sandbox wakes automatically on inbound traffic. | ✓ |
| Start / resume Typical time from create or resume to running. Sorting ranks stated times, converted to seconds; claims with no figure sort after, unranked. | p50 under 0.98 s with prewarming; cold-resume duration not publicly stated |
| Max runtime The longest a sandbox may run. | A configurable hard TTL can cap total runtime; no maximum value is publicly stated |
| Isolation The isolation technology between sandboxes. | Hardware-virtualized microVM (kernel-isolated) |
| GPUs Whether GPU instances are available for sandboxes. | ✕ |
| Docker Whether Docker containers can run inside the sandbox. | ✓ |
| SDKs | Python, TypeScript |
✓ yes · ✕ no · – no cited public fact.
The default lifecycle stops an idle sandbox after 10 minutes and deletes it after a server-configured period, typically 14 days. Filesystem state survives stop/start and snapshot capture, including `/tmp` (only `/dev/shm` is a tmpfs); running processes, open sockets, and RAM do not, unless you capture a memory snapshot. Memory snapshot controls are REST-only, absent from the Python and TypeScript clients, and unsupported on overlay-rootfs runtimes. Sandboxes run on self-hosted LangSmith deployments as well as SaaS Cloud, enabled with Helm or Terraform.
Sources
- https://www.langchain.com/langsmith/sandboxes
- https://docs.langchain.com/langsmith/sandbox-sdk
- https://www.langchain.com/blog/introducing-langsmith-sandboxes-secure-code-execution-for-agents
- https://docs.langchain.com/langsmith/sandbox-snapshots
- https://docs.langchain.com/langsmith/sandboxes
- https://www.langchain.com/blog/langsmith-sandboxes-generally-available
- https://www.langchain.com/blog/runtime-behind-production-deep-agents
- https://www.langchain.com/pricing
- https://checkthat.ai/brands/langchain/pricing
- https://www.openlayer.com/blog/post/langsmith-reviews-pricing-alternatives
- https://northflank.com/blog/langsmith-sandboxes-alternatives
- https://forum.langchain.com/t/langsmith-deployment-max-execution-time/2112
- https://support.langchain.com/articles/9515017706-session-timeout-configuration-for-langsmith-self-hosted
- https://www.langchain.com/pricing-langsmith
- https://docs.langchain.com/oss/python/deepagents/sandboxes
- https://docs.langchain.com/langsmith/deploy-self-hosted-full-platform
Last verified 2026-10-04. Corrections land through the update log.