Skip to content

feat(e2b): add dcode sandbox provider#4

Merged
vsokolovskii merged 1 commit into
mainfrom
vsokolovskii/e2b/dcode-sandbox-provider
Jun 17, 2026
Merged

feat(e2b): add dcode sandbox provider#4
vsokolovskii merged 1 commit into
mainfrom
vsokolovskii/e2b/dcode-sandbox-provider

Conversation

@vsokolovskii

Copy link
Copy Markdown
Collaborator

Closes #3


Adds a Deep Agents Code sandbox provider entry point so installing langchain-e2b into dcode exposes dcode --sandbox e2b without user config. The provider keeps SDK usage lightweight by leaving deepagents-code out of runtime dependencies; it uses the package install hint and resolves E2B credentials only during lifecycle operations so registry metadata discovery does not require secrets.

The provider supports create, connect, and delete through the E2B SDK, wraps sandboxes in E2BSandbox, maps missing sandboxes to SandboxNotFoundError, and honors prefixed DEEPAGENTS_CODE_ env overrides for dcode-specific configuration. E2BProvider is intentionally not exported from top-level langchain_e2b.__all__.

Verified with make test, make lint, make integration_tests (E2B network tests skipped without E2B_API_KEY), and uv build --no-sources.

@cla-bot cla-bot Bot added the cla-signed label Jun 17, 2026
@vsokolovskii vsokolovskii merged commit fba59c9 into main Jun 17, 2026
11 checks passed
mdrxy added a commit to langchain-ai/docs that referenced this pull request Jun 17, 2026
Following
[e2b-dev/langchain-e2b#4](e2b-dev/langchain-e2b#4),
which adds a Deep Agents Code sandbox provider entry point, this
documents `dcode --sandbox e2b`. The E2B integration page gains a "Use
with Deep Agents Code" section (install, credentials, `E2B_TEMPLATE` /
`E2B_SANDBOX_TIMEOUT` overrides), and the remote sandboxes guide now
references E2B as a concrete third-party provider example.

Made by [Open
SWE](https://openswe.vercel.app/agents/9fda946d-c2ab-def8-ac1a-e702d185b553)

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
npentrel pushed a commit to langchain-ai/docs that referenced this pull request Jun 18, 2026
Following
[e2b-dev/langchain-e2b#4](e2b-dev/langchain-e2b#4),
which adds a Deep Agents Code sandbox provider entry point, this
documents `dcode --sandbox e2b`. The E2B integration page gains a "Use
with Deep Agents Code" section (install, credentials, `E2B_TEMPLATE` /
`E2B_SANDBOX_TIMEOUT` overrides), and the remote sandboxes guide now
references E2B as a concrete third-party provider example.

Made by [Open
SWE](https://openswe.vercel.app/agents/9fda946d-c2ab-def8-ac1a-e702d185b553)

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support dcode --sandbox e2b: ship a SandboxProvider + entry point

1 participant