Overview
Scalable
Run 10, 50, or 100+ tasks concurrently
No Local Docker
Execute from any machine without Docker installed
Shareable URLs
Share viewer URLs with team members
Isolated
Each task runs in its own cloud sandbox
Setup
1
Get a Daytona API Key
Sign up at daytona.io and generate an API key.
2
Set the environment variable
.env file:3
Install Daytona support
Usage
Single Task
With Web Viewer
Batch Execution
| Provider | Typical Concurrency |
|---|---|
| Local Docker | 2-8 |
| Daytona | 10-100+ |
Cloud Viewer URLs
When using GUI tasks with Daytona, the web viewer is hosted in the cloud:Comparison: Docker vs Daytona
| Feature | Docker | Daytona |
|---|---|---|
| Setup | Install Docker locally | API key only |
| Concurrency | Limited by local resources | Cloud-scaled |
| GUI Viewer | localhost:8080 | Shareable cloud URL |
| Best for | Development, testing | Production, CI/CD, benchmarks |
| Cost | Local compute | Daytona pricing |
Configuration
Environment Variables
In .env File
Use Cases
Large-Scale Benchmarks
Run PDFBench or other benchmarks at scale:CI/CD Integration
Team Collaboration
Share live execution URLs with team members:Programmatic Usage
Troubleshooting
API key not working
API key not working
Verify your key is correct:Check it matches your Daytona dashboard.
Sandbox provisioning timeout
Sandbox provisioning timeout
Cloud sandboxes take time to provision. If timeouts occur:
- Check Daytona status page
- Try a different region
- Reduce concurrency
Viewer URL not accessible
Viewer URL not accessible
The viewer URL includes a token. Ensure you’re using the full URL with the token parameter.
Higher latency than local
Higher latency than local
Cloud execution has network latency. For development and debugging, use local Docker. Use Daytona for production and benchmarks.
Best Practices
Use Daytona for production
Use Daytona for production
Local Docker is great for development. Switch to Daytona for:
- CI/CD pipelines
- Large benchmarks
- Team collaboration
Monitor costs
Monitor costs
Daytona charges for sandbox usage. Monitor your dashboard and set alerts.
Cache results
Cache results
Save outputs to avoid re-running expensive tasks: