Boxport
Get started

E2B SDK

Use the unmodified E2B SDK. Boxport places each sandbox on any vendor.

Boxport answers enough of E2B's API that the official e2b SDK works with two environment variables. The sandbox may start on E2B, Daytona, Modal or any other vendor you have a key for; the SDK can't tell.

E2B_API_URL=https://boxport.dev
E2B_SANDBOX_URL=https://boxport.dev
E2B_API_KEY=bk_…

In code, pass apiUrl and sandboxUrl to Sandbox.create instead.

What works#

SDK callNotes
Sandbox.create()Placed like any Boxport create at 2 vCPU and 4 GiB. The timeout option sets the session length used for pricing. The template argument is ignored for now: every sandbox uses the default image.
sbx.commands.run()Runs the command and returns stdout, stderr and the exit code. Output arrives in one piece when the command ends, not streamed.
sbx.files.read(), sbx.files.write()UTF-8 text only.
sbx.kill()Kills it on whichever vendor it runs.

What doesn't yet#

Other process and filesystem calls (listing, watching, sending input, terminals) answer 501 with a message naming the call. Use the Boxport API for background processes and ports.

Sandbox tokens#

Each create returns a token the SDK sends with in-sandbox calls. It works only for that sandbox, lasts 24 hours and can't create or kill sandboxes.