Templates
An image and setup commands, built once on each provider.
A template is a name, an image, setup commands and environment variables. You build it once, then create sandboxes from it by name.
curl -X POST https://boxport.dev/v1/templates -H "Authorization: Bearer $BOXPORT_KEY" \
-d '{"name":"py","image":"python:3.12-slim","setup":["pip install numpy pandas"],"env":{"MPLBACKEND":"Agg"}}'
# → {"e2b":"building","modal":"building","sprites":"image must be \"default\" …"}
image is "default" for each provider's own Linux image, or an image reference. setup runs in order at build time; a command that exits non-zero fails the build on that provider, with its exit code and the end of its output. env is set for setup and for every sandbox.
Building#
Boxport starts the build on every provider you hold a key for. Each answers "ok" when the template is ready, "building" when the build continues in the background, or the reason it can't. A build with setup takes from about half a minute to a few minutes. GET /v1/templates shows each provider's state: ready, building or failed with the error. MCP clients call template_status.
Creates go only to providers where the template is ready. The others show up in /v1/place as template_not_built. Sending the same definition again starts nothing; a changed one is built again everywhere. A new vendor key builds your templates on that provider only. A build still running after 30 minutes fails.
What each provider can run#
| Provider | Image | Setup is kept as | Notes |
|---|---|---|---|
| E2B | Any public image with /etc/os-release | An E2B template | Sandboxes run at 2 vCPU and 512 MiB. |
| Daytona | Any image with a fixed tag or digest: not latest, lts or stable | A snapshot | The key needs the write:snapshots permission. Sandboxes run at 1 vCPU, 1 GiB and 3 GiB of disk. |
| Modal | Any public linux/amd64 image | A Modal image | |
| Vercel | default, or an image in Vercel's registry such as vercel/sandbox/python:3.14 | A snapshot taken after setup | |
| Blaxel | Any public image | A Blaxel image | /tmp and /var/tmp start empty in sandboxes, so setup should write elsewhere. |
| Sprites | default only | Nothing: setup runs again on every create | A create takes as long as the setup. The build runs it once to check it works. |
| InstaBox | default only | A snapshot taken after setup | The free plan holds 5 snapshots. |
| Boat | default only | A saved snapshot | The free trial can't save snapshots. |
| Fly Machines | Any public image with bash | Nothing: setup runs again on every create | A create takes as long as the setup. The build runs it once to check it works. |
| Prime Intellect | Any public image with bash; default is python:3.11-slim | A checkpoint taken after setup | Prime bills checkpoint storage at $0.10 per GiB-month until the checkpoint is deleted. |
| Cloudflare | default, or an image named in your sandbox Worker's wrangler.jsonc | A container snapshot taken after setup | Cloudflare deletes a snapshot 30 days after it was made or last used; build the template again after that. |
Environment variables#
Env is stored with the template. E2B, Daytona, Modal and Blaxel also write it into the built image. Keep secrets out of it.
Old builds#
A template built again leaves its earlier build on your vendor account: E2B templates, Daytona and InstaBox snapshots, Modal and Blaxel images, Vercel snapshots, Boat saved snapshots and Prime checkpoints. Delete the ones you no longer need in the vendor's dashboard. Cloudflare container snapshots can't be listed or deleted; Cloudflare removes each one after 30 days unused.