# Volcengine VCI Agent Sandbox

Expose VCI Agent Sandbox's E2B API over HTTPS and create the template and API key that let Sandcovery run sandboxes in your own VKE cluster.

For Volcengine VCI Agent Sandbox, [install the agent-sandbox component](https://docs.volcengine.com/docs/vke/vci-agent-sandbox-installation-guide?lang=zh) on a VKE cluster that runs vci-virtual-kubelet, at chart version v0.1.1-vke.3 or later, with **E2B Server** and **Control-Plane** authentication turned on and the E2B domain set to a domain that you own, not the default `e2b.com`.

Expose the E2B service through an ALB Ingress as the installation guide shows: the domain itself goes to `agent-sandbox-control-plane`, and `*.` plus the domain goes to `agent-sandbox-data-plane`. Give the Ingress an [HTTPS listener](https://docs.volcengine.com/docs/vke/creating-an-alb-ingress-in-the-console?lang=zh) with a certificate that covers both names, since Sandcovery calls your E2B service only over HTTPS, and keep the data plane on the Ingress even if you also route it through API Gateway.

Create the [quickstart's template](https://docs.volcengine.com/docs/vke/vci-e2b-getting-started?lang=zh), which runs 2 vCPUs and 4 GiB on the u1 instance family that the provider board prices. Sandcovery routes VCI only at `2x4`, and it deletes a sandbox at once when the template runs any other size.

Then [create an API key](https://docs.volcengine.com/docs/vke/vci-e2b-sdk-reference?lang=zh) for Sandcovery alone with the administrator key, so you can delete it without changing the administrator key, and add these values:

- **E2B API key**: the key you created.
- **E2B domain**: the domain alone, such as `e2b.example.com`, without `https://`.
- **Template ID**: the template's namespace and name joined by two hyphens, such as `default--code-interpreter-template`.
