A secure sandbox for running and judging code generated by LLMs.
Author: jingfelix
Version: 0.0.2
Type: tool
[!WARNING]
Sandbox Fusion does not support fine-grained permission control, so it should be used with caution in production environments (preferably avoided).
Sandbox Fusion is a tool that allows you to run and test your code in a sandboxed environment, developed by Bytedance. You can think of it as an alternative to DifySandbox that supports more languages but offers weaker security.
Install SandboxFusion to your local machine. You can find the installation instructions in the SandboxFusion repository. We recommend using the Docker version for simplicity.
Install the plugin and setup the configuration.

An example of using the tool:


| SandboxFusion | DifySandbox | |
|---|---|---|
| # Datasets | 10+ | 0 |
| # Languages | 23 | 2 |
| Security | namespace & cgroup | seccomp |
| API Type | HTTP & SDK | HTTP |
| Deployment | Single Server | Single Server |
| Others | Jupyter Mode (Not supported yet) | Fine-Grained Limitation Security |
How can I install custom libraries in the sandbox?
SandboxFusion does not support installing custom libraries dynamically. However, you can create a custom Docker image with the required libraries pre-installed and use that image to run your code. You can find more information on how to create a custom Docker image in the SandboxFusion documentation.
How can I use SandboxFusion with cloud.dify.ai?
You need to make sure that the SandboxFusion server is accessible from the cloud.dify.ai environment.
Last updated: 2025-05-16