LangChain Daytona provides a Dayntona sandbox integration for secure code execution within LangChain agents. Version 0.0.5 requires Python >=3.11 and <4.0. Part of the deepagents monorepo, it is under active development.
pip install langchain-daytonaVerified import paths — ran on the pinned version, not inferred.
Initialize a Daytona sandbox tool with an API key and sandbox ID, then run code inside the sandbox.
Use Python 3.11 or later, or install langchain-daytona==0.0.4 if you need older Python.
Ensure DAYTONA_API_KEY environment variable is set and the sandbox ID is valid and active.
Use from langchain_daytona import DaytonaSandboxTool instead.