Skip to content

Add E2B sandbox provider with Tailscale SSH - #69

Open
czpython wants to merge 1 commit into
codex/vercel-sandboxfrom
codex/e2b-sandbox
Open

czpython wants to merge 1 commit into
codex/vercel-sandboxfrom
codex/e2b-sandbox

Conversation

@czpython

@czpython czpython commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Drukbox can now create and delete E2B VMs through POST /hosts with provider: e2b. The adapter uses the async E2B SDK, requires Tailscale SSH, prepares the host environment, and deletes only resources with the matching host name and deployment label. Failed bootstrap and uncertain create responses trigger cleanup.

E2B has a maximum continuous runtime. Host leases and renewals stay within a persisted deadline set 60 seconds before the configured E2B timeout. Automatic pause, resume, and public ingress are disabled. A template builder and setup guide are included.

Depends on #68 for the shared lease deadline and userspace Tailscale bootstrap. This PR targets codex/vercel-sandbox; its diff contains only the E2B addition. The SDK is an optional dependency for local installs and is included in the service image.

Validation: 809 local tests passed with SQLite; Ruff, format checks, and Pyright passed. All six CI checks passed, including SQLite and Postgres tests, Docker builds, and Docker-provider API tests. The local service image built and registered E2B on Python 3.11. The template builder's help command passed. Live E2B template builds, provisioning, and SSH were not run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant