
Overview
- Sandboxed Runtime
- Classic Runtime
Best for: Complex tasks where LLMs need autonomy to solve problems their own way. More powerful, but slower and more token-intensive.
- Run scripts and programs - Execute code to process data, generate outputs, or perform any computation
- Install what’s needed - Download libraries and tools on demand using pip or other package managers
- Access external resources - Fetch files from URLs, clone repositories, or retrieve data from external sources
- Work with files - Access resources like skills in the file system, process files across formats, and generate multimodal artifacts using scripts and tools
For the default sandbox provider:
- Dify Cloud uses E2B.
- Self-hosting deployments use SSH VM.
Quick Comparison
| Dimension | Sandboxed Runtime | Classic Runtime |
|---|---|---|
| Best for | Complex, autonomous problem-solving | Simple, well-defined tasks |
| LLM Autonomy | Runs any command it needs | Uses tools you configure |
| File System | ✅ | ❌ |
| Skills | ✅ | ❌ |
| App Export Format | .zip (DSL + file system content) | .yml (DSL) |