All Products
Search
Document Center

Function Compute:Built-in Templates

Last Updated:Sep 20, 2026

Built-in templates let you create a sandbox quickly. The quickstart and Code Interpreter examples use code-interpreter-v1 by default.

Template list

Only base and code-interpreter-v1 are ready to use once your account is provisioned — create a sandbox directly by template name, with no build step.

TemplateUse caseDescription
base templateBasic commands, file access, SDK connectivity checksDefault base template; no pre-installed data science libraries or higher-level dependencies
code-interpreter-v1 templateAI Agent code execution, data analysis, file processingThe quickstart and Code Interpreter examples use code-interpreter-v1 by default

View templates

Use the CLI to view the templates available to the current account:

export E2B_API_KEY="<your-api-key>"
export E2B_API_URL="https://api.cn-beijing.e2b.fc.aliyuncs.com"
export E2B_DOMAIN="cn-beijing.e2b.fc.aliyuncs.com"

e2b template list

Create a sandbox from a template

The SDK automatically reads the E2B_API_KEY, E2B_API_URL, and E2B_DOMAIN environment variables. Python example:

from e2b import Sandbox

sandbox = Sandbox.create(template="code-interpreter-v1")

TypeScript example:

import { Sandbox } from "e2b";

const sandbox = await Sandbox.create("code-interpreter-v1");

Further reading