E2B sandbox integration for Deep Agents
Project description
langchain-e2b
Quick Install
pip install langchain-e2b
from langchain_e2b import E2BProvider
provider = E2BProvider()
sandbox = provider.get_or_create()
try:
result = sandbox.execute("echo hello")
print(result.output)
finally:
provider.delete(sandbox_id=sandbox.id)
What is this?
langchain-e2b adapts E2B sandboxes to the Deep Agents sandbox protocol. It
uses the low-level e2b SDK so Deep Agents can create or reconnect to
sandboxes, run shell commands, and move files through the standard Deep Agents
sandbox interface.
Use E2BProvider when you want the package to manage sandbox lifecycle. Use
E2BSandbox directly when you already have an E2B SDK sandbox object.
Contributing
Contributions are welcome. Keep the adapter focused on implementing the Deep Agents sandbox 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.2.tar.gz.
File metadata
- Download URL: langchain_e2b-0.0.2.tar.gz
- Upload date:
- Size: 122.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a65dd44c2750fff04a62414b95e1c7af843a3ca643b10d66646339dee2fca176
|
|
| MD5 |
76b649a96c62f0db6c9fca34c0f0bffd
|
|
| BLAKE2b-256 |
be78dc4c8434745ef3421eb39a3197ddbf59aeaeda5281ce8d9c973d19387546
|
Provenance
The following attestation bundles were made for langchain_e2b-0.0.2.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.2.tar.gz -
Subject digest:
a65dd44c2750fff04a62414b95e1c7af843a3ca643b10d66646339dee2fca176 - Sigstore transparency entry: 1781624174
- Sigstore integration time:
-
Permalink:
e2b-dev/langchain-e2b@aa83959ac8006ee25664cc7a247487d0df23f21b -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/e2b-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@aa83959ac8006ee25664cc7a247487d0df23f21b -
Trigger Event:
release
-
Statement type:
File details
Details for the file langchain_e2b-0.0.2-py3-none-any.whl.
File metadata
- Download URL: langchain_e2b-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.4 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 |
8972cd80e314941040c48a131ba1b6b161a16745108559b4114551f19f8c18fe
|
|
| MD5 |
242abcbae59b113e203b941d63c2f877
|
|
| BLAKE2b-256 |
4c282030b7f2585af022a04e51fc69477732e51f2681db88b0ec99ee03469386
|
Provenance
The following attestation bundles were made for langchain_e2b-0.0.2-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.2-py3-none-any.whl -
Subject digest:
8972cd80e314941040c48a131ba1b6b161a16745108559b4114551f19f8c18fe - Sigstore transparency entry: 1781624259
- Sigstore integration time:
-
Permalink:
e2b-dev/langchain-e2b@aa83959ac8006ee25664cc7a247487d0df23f21b -
Branch / Tag:
refs/tags/v0.0.2 - Owner: https://github.com/e2b-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@aa83959ac8006ee25664cc7a247487d0df23f21b -
Trigger Event:
release
-
Statement type: