Documentation
¶
Overview ¶
Self-hosted example: point the SDK at a self-hosted E2B control plane and show the current sandbox session (ID, template, state, timing, envd info, live metrics).
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
Click to show internal directories.
Click to hide internal directories.