{"id":23948,"library":"langchain-daytona","title":"LangChain Daytona","description":"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.","status":"active","version":"0.0.5","language":"python","source_language":"en","source_url":"https://github.com/langchain-ai/deepagents","tags":["langchain","daytona","sandbox","code-execution","agents"],"install":[{"cmd":"pip install langchain-daytona","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Required for base classes and tool abstractions.","package":"langchain-core","optional":false}],"imports":[{"note":"Tool is re-exported at package level; submodule import may work but not guaranteed.","wrong":"from langchain_daytona.tools import DaytonaSandboxTool","symbol":"DaytonaSandboxTool","correct":"from langchain_daytona import DaytonaSandboxTool"}],"quickstart":{"code":"import os\nfrom langchain_daytona import DaytonaSandboxTool\n\ntool = DaytonaSandboxTool(api_key=os.environ.get('DAYTONA_API_KEY', ''), sandbox_id=\"my-sandbox\")\nresult = tool.invoke({\"code\": \"print('hello from sandbox')\"})\nprint(result)","lang":"python","description":"Initialize a Daytona sandbox tool with an API key and sandbox ID, then run code inside the sandbox."},"warnings":[{"fix":"Use Python 3.11 or later, or install langchain-daytona==0.0.4 if you need older Python.","message":"Version 0.0.5 drops support for Python <3.11. Upgrade Python or pin to an older version.","severity":"breaking","affected_versions":">=0.0.5"},{"fix":"Ensure DAYTONA_API_KEY environment variable is set and the sandbox ID is valid and active.","message":"The DaytonaSandboxTool requires a running Daytona sandbox instance. Without it, invocations will fail with a connection error.","severity":"gotcha","affected_versions":"all"},{"fix":"Use from langchain_daytona import DaytonaSandboxTool instead.","message":"The old import path langchain_daytona.tools.DaytonaSandboxTool is deprecated and will be removed in a future release.","severity":"deprecated","affected_versions":">=0.0.5"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run pip install langchain-daytona (note the hyphen, not underscore).","cause":"Package not installed or installed under a different name.","error":"ModuleNotFoundError: No module named 'langchain_daytona'"},{"fix":"Ensure langchain-daytona>=0.0.5. Then import as from langchain_daytona import DaytonaSandboxTool. If still missing, check if the package exposes a different name.","cause":"The symbol may be in a submodule or the package version is too old.","error":"AttributeError: module 'langchain_daytona' has no attribute 'DaytonaSandboxTool'"},{"fix":"Set the DAYTONA_API_KEY environment variable before running your script, e.g., export DAYTONA_API_KEY='your_key'.","cause":"The required API key is missing.","error":"ValueError: DAYTONA_API_KEY environment variable not set"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}