Sandbox Server Integration
These variables configure the external sandbox provider (e.g., e2b) that powers interactive coding environments.
E2B_API_KEY
- Log into the e2b dashboard (or your equivalent provider).
- Navigate to API Keys and create a new key scoped for development use.
- Copy the key (looks like
e2b_live_...) and paste it intodocker/.stack.env. - Rotate the key if you suspect compromise—do not commit it to Git.
The backend provisions isolated sandboxes for executing user code. These variables define the template and lifecycle policies.
SANDBOX_TEMPLATE_ID
- Open the sandbox provisioning portal or service you use for backend execution (internal tool, provider dashboard, etc.).
- Locate the template/image you want the stack to spawn (for example “ii-backend-dev”).
- Copy its unique identifier and place it in
docker/.stack.envasSANDBOX_TEMPLATE_ID. - If you do not know which template to use, ask the infrastructure team for the default dev template.
TIME_TIL_CLEAN_UP
- Specifies how long (in seconds) an idle sandbox lives before auto-shutdown.
- Choose a value that balances cost and usability. Example:
900(15 minutes) keeps sessions alive long enough for debugging without leaving unused containers running.