All Products
Search
Document Center

Function Compute:Official templates

Last Updated:Oct 27, 2026

Official templates are provided and maintained by the FC Agent Sandbox platform. The templates that are ready to use cover basic commands, file access, and code execution. Official templates let you create standard sandboxes quickly.

If you need only general capabilities such as Python, Node.js, file management, or code execution, use official templates first. Create a custom image template only when official templates cannot meet your requirements for business dependencies, system libraries, runtime versions, or enterprise standardization.

Template list

Template

Scenarios

Description

Base Template

Basic commands, file access, and SDK connectivity checks

The default base template, which does not provide the Code Interpreter service

Code interpreter v1 template

AI Agent code execution, data analysis, and file processing

By default, the quickstart and Code Interpreter examples use code-interpreter-v1

Note

base and code-interpreter-v1 are automatically ready after your account is activated for FC Agent Sandbox. Create a sandbox directly by using the template name. Templates such as browser, All-In-One, Desktop, Claude Code, OpenClaw, and DeepSeek must be built from their official images. For instructions, see Other Templates.

View templates

Use the command-line interface (CLI) to view the templates available to your 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

When you use the e2b_code_interpreter SDK, a code-interpreter-v1 sandbox is created by default. In most cases, you do not need to specify a template explicitly.

When you use the general-purpose e2b SDK, you can select a template explicitly by using the template parameter. 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");

Next steps

  • If you need preinstalled dependencies or toolchains, see Build and manage templates.

  • If you need browser automation, a desktop environment, or Agent templates such as Claude Code, OpenClaw, and DeepSeek, see Other Templates.