Cloud Sandboxes
For the AI Era
Spin up secure, isolated cloud environments in milliseconds. Run code, browsers, mobile emulators, and AI agents at the edge.
$ legion sandbox create --template nextjs
Creating sandbox from template...
✓ Template loaded: nextjs-latest
✓ Environment initialized
✓ Preview URL ready: https://8f3a2b.preview.legion.dev
$ npm run dev
▌
Everything You Need
A complete cloud sandbox platform built for modern development
Instant Sandboxes
Spin up isolated environments in under 100ms. Pre-configured with all dependencies.
Edge Deployed
Deployed on Cloudflare's global network. Lowest latency worldwide.
Mobile Emulation
Run iOS and Android emulators in the cloud. Test on real device profiles.
Browser Automation
Built-in Playwright with stealth mode. Automate any web workflow.
Template Library
50+ pre-configured templates. Next.js, Python, Rust, Go, and more.
Filesystem API
Read, write, and patch files programmatically. Full git integration.
Snapshot & Clone
Save sandbox state as templates. Clone environments instantly.
Live Terminal
WebSocket-powered terminal with full PTY support. Real-time collaboration.
Resource Controls
Fine-grained CPU, memory, and disk limits. Pay only for what you use.
Auto-Scaling
Scale from zero to thousands instantly. Handle any traffic pattern.
Secure by Default
Firecracker microVMs, network isolation, encrypted storage.
Team Collaboration
Organizations, RBAC, shared templates, audit logs.
Pre-Configured Templates
Start instantly with optimized environments
Powerful SDKs
JavaScript, Python, and REST APIs
import { Sandbox } from '@legion/sdk';
// Create a sandbox
const sandbox = await Sandbox.create({
template: 'nextjs',
timeout: 3600,
});
// Execute commands
const result = await sandbox.runCommand('npm run build');
// Filesystem operations
await sandbox.files.write('/app/page.tsx', code);
const files = await sandbox.files.list('/app');
// Get preview URL
console.log(sandbox.previewUrl);
// Clean up
await sandbox.destroy();Simple Pricing
Start free, scale as you grow
Hobby
Perfect for side projects
- 10 sandboxes / month
- 1 GB storage
- 1 vCPU, 512 MB RAM
- Community templates
- Basic filesystem API
- 1 hour max session
Pro
PopularFor professional developers
- Unlimited sandboxes
- 50 GB storage
- 4 vCPU, 8 GB RAM
- Custom templates
- Full API access
- Team sharing (5 members)
- Priority support
- 24 hour sessions
Enterprise
For teams and organizations
- Unlimited everything
- Custom infrastructure
- Dedicated workers
- SLA guarantees
- SSO & SCIM
- Audit logs
- 24/7 support
- Custom contracts