Registry / ai-ml / langchain-daytona

langchain-daytona

JSON →
library0.0.7pypypi✓ verified 80d ago

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-daytona
INSTALL
IMPORT
SIG · LANGCHAIN-DAYTONA
L
langchain-daytona
ai-mlpythonv0.0.7
Install
16.3s avg
Import
Disk
181MB
Pass rate
6/ 10
Env Coverage6 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✕ build_error
py 3.11
✓ —
✓ 18.6s
py 3.12
✓ —
✓ 14.9s
py 3.13
✓ —
✓ 15.3s
py 3.9
✕ build_error
✕ build_error
181MB installed
● package 181MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DaytonaSandbox
from langchain_daytona import DaytonaSandbox
from langchain_daytona import DaytonaSandboxTool
sandbox
from langchain_daytona import sandbox

Initialize a Daytona sandbox tool with an API key and sandbox ID, then run code inside the sandbox.

import os from langchain_daytona import DaytonaSandboxTool tool = DaytonaSandboxTool(api_key=os.environ.get('DAYTONA_API_KEY', ''), sandbox_id="my-sandbox") result = tool.invoke({"code": "print('hello from sandbox')"}) print(result)
Debug
Known issues
breakingVersion 0.0.5 drops support for Python <3.11. Upgrade Python or pin to an older version.
fix
Use Python 3.11 or later, or install langchain-daytona==0.0.4 if you need older Python.
affects: >=0.0.5
gotchaThe DaytonaSandboxTool requires a running Daytona sandbox instance. Without it, invocations will fail with a connection error.
fix
Ensure DAYTONA_API_KEY environment variable is set and the sandbox ID is valid and active.
affects: all
deprecatedThe old import path langchain_daytona.tools.DaytonaSandboxTool is deprecated and will be removed in a future release.
fix
Use from langchain_daytona import DaytonaSandboxTool instead.
affects: >=0.0.5
Upgrade
Version history
0.0.7latest on PyPI · released Jun 3, 2026
Audit
Dependencies
langchain-corerequiredRequired for base classes and tool abstractions.
Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
1
Resources