Deployment and upgradesOfficial documentation7 min readDeployment and upgrades

Configure OpenSandbox Settings for FastGPT Services

Configuration Location All shared OpenSandbox settings for fastgpt-app and fastgpt-pro are centralized in the Docker Compose file’s x-agent-sandbox-config…

Configuration Location

All shared OpenSandbox settings for fastgpt-app and fastgpt-pro are centralized in the Docker Compose file’s x-agent-sandbox-config anchor. This eliminates duplicate configuration across individual service definitions and ensures both services use identical sandbox parameters.

Environment Variable Reference

All required and optional environment variables for OpenSandbox configuration are listed below:

Variable NameRequired ValuePurpose
AGENT_SANDBOX_PROVIDERopensandboxSets the active sandbox provider to OpenSandbox
AGENT_SANDBOX_OPENSANDBOX_BASEURLhttp://fastgpt-opensandbox-server:8090Internal network URL for the OpenSandbox server
AGENT_SANDBOX_OPENSANDBOX_API_KEYReplace with your OpenSandbox API keyAuthentication token for OpenSandbox server access
AGENT_SANDBOX_OPENSANDBOX_RUNTIMEdockerContainer runtime for isolated sandbox environments
AGENT_SANDBOX_OPENSANDBOX_IMAGEghcr.io/labring/fastgpt-agent-sandbox:v0.3.1Official container image for FastGPT sandbox agents
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXYtrueEnables server-side proxying for sandbox network traffic
AGENT_SANDBOX_OPENSANDBOX_VOLUME_MANAGER_URLhttp://fastgpt-volume-manager:3000Internal URL for the attached volume manager service
AGENT_SANDBOX_OPENSANDBOX_VOLUME_MANAGER_TOKENReplace with your volume manager tokenAuthentication token for volume manager access
AGENT_SANDBOX_OPENSANDBOX_VOLUME_NAME_PREFIXfastgpt-sessionPrefix for persistent session volumes
AGENT_SANDBOX_PROXY_SECRET32-character random secretSecure secret for sandbox proxy authentication
AGENT_SANDBOX_PROXY_URLwss://sandbox-proxy.example.comWebSocket URL for sandbox proxy connectivity
AGENT_SANDBOX_PREVIEW_PROXY_URLhttps://sandbox-proxy.example.comHTTPS URL for sandbox preview proxy access
AGENT_SANDBOX_CPU_COUNT1Maximum CPU cores allocated per sandbox
AGENT_SANDBOX_MEMORY_MIB2048Maximum memory (MiB) allocated per sandbox
AGENT_SANDBOX_STORAGE_SIZE_GI1Maximum storage (GiB) allocated per sandbox

Deployment & Validation

After replacing all placeholder values (such as replace_with_opensandbox_api_key and replace_with_volume_manager_token) with secure, unique values, apply the updated Docker Compose configuration. Confirm successful deployment by checking that sandbox services start without authentication errors and that persistent session volumes are created with the fastgpt-session prefix.

Source: FastGPT official source

Applicability and version scope

Use this page for the documented Deployment and upgrades scenario. Confirm the FastGPT, dependency, API, and deployment versions in the official source before applying a change.

Safety guardrails

Use [REDACTED_CREDENTIAL] for credentials and private data. Confirm the documented environment and version before review.

Rollback guidance

Restore the prior technical-content authority snapshot. Restore saved configuration and data snapshots, then repeat the smallest verification scenario.