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.
| Template | Use case | Description |
| base template | Basic commands, file access, SDK connectivity checks | Default base template; no pre-installed data science libraries or higher-level dependencies |
| code-interpreter-v1 template | AI Agent code execution, data analysis, file processing | The 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 listCreate 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
If you need to preinstall dependencies or toolchains, see Build Custom Image Templates.
For browser automation, desktop, or agent templates such as Claude Code and OpenClaw, see Other Templates.
If you need to view template tags, aliases, or build status, see Template Names and Versioning.