Skip to content

Guides

Templates

A template is what a sandbox boots from. List the ones each provider takes, then pass a name as template when you create a sandbox.

List templates

GET /v1/templates lists every provider's templates; ?provider=e2b lists one. No key needed: without one you see what runs on credits. With a key or a dashboard session, your own provider templates are added.

Read the answer

200
{
  "data": [
    {
      "name": "sandboxplease/base",
      "provider": "e2b",
      "source": "sandboxplease",
      "size": null,
      "tools": ["python 3.12.16", "node 22.23.5", "bun 1.4.5", "uv 0.13.9"],
      "usable_on": ["credits", "byok"],
      "updated_at": "2026-11-29T06:00:00.000Z"
    },
    {
      "name": "my-app",
      "provider": "e2b",
      "source": "yours",
      "size": { "cpu": 2, "memory_gb": 4 },
      "tools": [],
      "usable_on": ["byok"],
      "updated_at": "2026-11-28T17:42:10.000Z"
    }
  ],
  "providers": [{ "id": "e2b", "any_image": false, "yours": "listed" }]
}

source says where a template comes from:

sandboxplease
sandboxplease/base: the same Ubuntu, Python, Node and Bun on every provider that runs it.
public
A template the provider publishes to everyone. It runs on credits and on your own key.
yours
A template your own provider account built. It runs on your own key only.

size is the size the template sets, when the provider reports one; null means it runs at the size you ask for. usable_on says whether it runs on credits, on your own key (byok), or both. tools lists what the template ships when we know it. When any_image is true, the provider also runs any public container image, such as python:3.12, beyond the templates listed.

Your own templates

With your provider key added (Settings > BYOK), the templates your provider account built show up as yours, today on E2B, Novita and Daytona. We ask the provider with your key each time you list them, keep the answer for a minute, and never store it. providers[].yours says why they may be missing:

listed
Your templates on this provider are in data.
no_key
Add your provider key in Settings > BYOK to see yours.
unsupported
The provider has no API that lists an account's templates.
unavailable
The provider refused to list them, usually because the key you added is no longer valid.

Start from a template

Pass the name as template, with the provider in sandbox. To give each provider its own template in one request, use provider_options.<id>.template (provider options).

Example
sp new --sandbox e2b --template code-interpreter-v1

On credits, a template outside the list is refused with template_not_allowed: add your own key to run a private one.

SDKs, CLI and MCP

sp.templates.list() in both SDKs, sp templates [--provider e2b] in the CLI, and the MCP tool list_templates.