All Products
Search
Document Center

Function Compute:FC Extensions Overview

Last Updated:Jul 10, 2026

FC Extensions are cloud-side extensions that connect FC Agent Sandbox to Function Compute and Alibaba Cloud infrastructure capabilities, including VPC network configuration, custom domains, dynamic OSS mounts, log collection, and monitoring and logs.

FC Extensions do not change the basic usage of the E2B SDK or CLI. Applications still use the E2B SDK to create sandboxes, run commands, and read or write files. Capabilities such as VPC, custom domains, OSS, logs, and monitoring take effect through the Function Compute console, control plane configuration, or related Alibaba Cloud service configuration.

Feature List

  • VPC Network Configuration: Allow a sandbox to access databases, private APIs, container registries, or other cloud resources inside a VPC.

  • Custom Domains: Use a fixed domain name and your own certificate to access FC Agent Sandbox APIs and services inside the sandbox.

  • Dynamic OSS Mounts: Mount an OSS path into the sandbox and read or write objects through local file paths.

  • Monitoring and Logs: View sandbox status, resource metrics, and logs, and collect runtime logs into Simple Log Service.

How to Use

  1. Confirm whether the extension capability is enabled and the effective scope of the configuration, that is, whether it applies to the account, region, template, sandbox, or session.

  2. Complete the extension configuration in Function Compute, the FC Agent Sandbox control plane, or related cloud products.

  3. Use the E2B SDK or CLI to create a sandbox.

  4. Access the configured network, paths, or log output from inside the sandbox.

  5. View the results in the console, Simple Log Service, or monitoring pages.

Notes

  • FC Extensions are not new methods in the E2B SDK, so you do not need to change how the SDK is imported.

  • VPC, custom domains, OSS, logs, and monitoring require cloud-side configuration first. The code examples only show how to use and verify them from the application side.

  • If the current console does not show the corresponding FC Agent Sandbox configuration entry, follow the FC Agent Sandbox control plane documentation, or contact product support to confirm the enablement method.

  • Do not expose long-lived credentials in templates, environment variables, logs, or mount paths.

For more configuration details, see the official documentation: