E2B sandbox integration for Deep Agents
Project description
langchain-e2b
Quick Install
pip install langchain-e2b
from e2b import Sandbox
from langchain_e2b import E2BSandbox
e2b_sandbox = Sandbox.create()
backend = E2BSandbox(sandbox=e2b_sandbox)
try:
result = backend.execute("echo hello")
print(result.output)
finally:
e2b_sandbox.kill()
What is this?
langchain-e2b adapts an existing E2B sandbox to the Deep Agents sandbox
protocol. It uses the low-level e2b SDK so Deep Agents can run shell commands
and move files through the standard Deep Agents sandbox interface.
This package intentionally does not hide E2B sandbox lifecycle management. Use
the E2B SDK to create, connect to, configure, and kill sandboxes, then pass the
connected sandbox object to E2BSandbox.
Contributing
Contributions are welcome. Keep the adapter focused on implementing the Deep Agents sandbox backend protocol over the official E2B SDK.
Development
uv sync --group test
make test
make lint
Integration tests require E2B_API_KEY:
E2B_API_KEY=... make integration_tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_e2b-0.0.3.tar.gz.
File metadata
- Download URL: langchain_e2b-0.0.3.tar.gz
- Upload date:
- Size: 120.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6e87a2864d4cc426783b1224a55d4ca477108ec71ddaea91e4510da2d1d9f27
|
|
| MD5 |
7db859249859c80f349c36d0f95f373a
|
|
| BLAKE2b-256 |
7b59f2fdaeb41059cb11e884cd57477943d3e13fe6a84d2e23278e39c9ada907
|
Provenance
The following attestation bundles were made for langchain_e2b-0.0.3.tar.gz:
Publisher:
release.yml on e2b-dev/langchain-e2b
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_e2b-0.0.3.tar.gz -
Subject digest:
f6e87a2864d4cc426783b1224a55d4ca477108ec71ddaea91e4510da2d1d9f27 - Sigstore transparency entry: 1782702679
- Sigstore integration time:
-
Permalink:
e2b-dev/langchain-e2b@7a328b13f0557d817a4c85481a925cb576e810a5 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/e2b-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7a328b13f0557d817a4c85481a925cb576e810a5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file langchain_e2b-0.0.3-py3-none-any.whl.
File metadata
- Download URL: langchain_e2b-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd5cfbd6c56afad60d7a0024caadb829817dfea149faa3b22c411669d1141bbc
|
|
| MD5 |
bcc3c3f077993828c4d84c6835de03b5
|
|
| BLAKE2b-256 |
b11dc6c021a8c220c8ce33d2fce993411af0609020721b21a1ec50fd537e1f09
|
Provenance
The following attestation bundles were made for langchain_e2b-0.0.3-py3-none-any.whl:
Publisher:
release.yml on e2b-dev/langchain-e2b
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langchain_e2b-0.0.3-py3-none-any.whl -
Subject digest:
bd5cfbd6c56afad60d7a0024caadb829817dfea149faa3b22c411669d1141bbc - Sigstore transparency entry: 1782702994
- Sigstore integration time:
-
Permalink:
e2b-dev/langchain-e2b@7a328b13f0557d817a4c85481a925cb576e810a5 -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/e2b-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@7a328b13f0557d817a4c85481a925cb576e810a5 -
Trigger Event:
release
-
Statement type: