selfhosted

command
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Self-hosted example: point the SDK at a self-hosted E2B control plane (runtime <= 2026.30, including pre-2025.31 deployments) and inspect the sandbox session (ID, template, state, timing, envd info, live metrics).

Self-hosted releases through runtime 2026.30 expose POST /sandboxes rather than E2B Cloud's POST /v2/sandboxes, so this example calls client.CreateV1 (which defaults secure=true so the server mints an EnvdAccessToken; pass Insecure: true only for legacy pre-0.2.0 envd templates).

Usage:

E2B_API_KEY=...            # team API key issued by your self-hosted cluster
E2B_DOMAIN=e2b.example.com # your self-hosted domain; APIs resolve to
                           # https://api.<domain> and sandboxes to
                           # https://49983-<id>.<domain> unless overridden.
E2B_API_URL=https://api.e2b.example.com  # optional full override
go run ./examples/selfhosted

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL