Dify Sandbox
ActiveDescription
A lightweight, fast, and secure code execution environment supporting multiple programming languages — provides sandboxed code execution for the Dify platform.
Key Features
- Secure code execution sandbox — runs untrusted user code with restricted resources and system calls
- Multi-tenant support — multiple users can submit code concurrently in isolated environments
- Lightweight and fast — minimal overhead design optimized for container-based deployments
- Docker-native architecture — built for Linux container environments with Go-based implementation
- Resource isolation — enforces strict limits on CPU, memory, and filesystem access per execution
- Dify platform integration — provides the code execution backbone for Dify's AI workflow engine
Use Cases
Categories
Quick Start
Clone the repo, run `./install.sh` to install dependencies (libseccomp, pkg-config, gcc, golang 1.20.6), then `./build/build_amd64.sh` (or arm64) to build the binary. Run `./main` to start the server.