42+ languages supported
Remote Code Execution API
Execute code in 42+ languages via a simple REST API. Interactive sessions, persistent services with HTTPS, snapshots, and async job polling - perfect for LLM tool use.
Execution Modes
▶
Execute
Fire and forget
Run code once, get stdout/stderr immediately. No state persists between calls.
◉
Session
Interactive shell
Persistent container with shell access. Install packages, run REPLs, freeze/unfreeze.
◆
Service
Web app hosting
Deploy apps with custom domains. Auto-SSL, auto-unfreeze, deep freeze.
⊞
Snapshot
Clone and restore
Save container state, clone to new sessions or services, restore anytime.
Integration Quickstart ⚡
Add unsandbox superpowers to your existing app in 4 steps
1
Download
curl -O https://git.unturf.com/engineering/unturf/un-inception/-/raw/main/clients/python/sync/src/un.py
2
Purchase API Key
Get your key. 🔐
export UNSANDBOX_PUBLIC_KEY="unsb-pk-xxxx-xxxx-xxxx-xxxx"
export UNSANDBOX_SECRET_KEY="unsb-sk-xxxxx-xxxxx-xxxxx-xxxxx"
3
Hello World
python3 un.py -s python 'print("Hello from unsandbox!")'
4
Run a Script
python3 un.py your_script.py
Demo cooldown: s
stdout:
JSON Response:
Why unsandbox?
❄
Freeze / Unfreeze
Pause containers when idle, unfreeze them instantly on demand. Pay only for active compute time.
◉
Auto-SSL
Automatic Let's Encrypt certificates for services. Custom domains with zero configuration.
⧗
Deep Freeze
Services hibernate when keys expire. Unfreeze them years later - data preserved indefinitely.
◎
Zero Trust
Network isolation by default. Containers can't reach the internet unless explicitly allowed.
Security First
Every execution runs in an isolated LXC container with strict resource limits. Choose your network policy based on trust level.
zerotrust
No network access (default)
semitrusted
Internet via egress proxy
zerotrust sandbox
$ curl https://evil.com
curl: (6) Could not resolve host: evil.com
$ python -c "print('isolated!')"
isolated!
$ █
Use Cases
AI Code Assistants
Let your AI write and test code in real sandboxed environments. Verify solutions work before showing users.
Demo Apps
Share prototypes with real URLs. Custom domains, auto-SSL, and auto-unfreeze for zero idle cost.
Remote Development
Interactive shells with 30+ REPLs. Install packages, run tests, snapshot and restore state.
Resources
CLI (C binary)
Fast, compiled CLI tool for executing code, managing sessions and services.
Download CLI
CLI Inception
Full CLI implementations in 42+ languages - integrate directly into your codebase.
Browse SDKs
Blog
Zerotrust vs Semitrusted: Understanding network isolation modes for secure code execution.
Read Blog
Simple Pricing
Development
$7
/mo
1 vCPU, 2GB RAM
vs. AWS ECS Fargate
$30
/mo
1 vCPU, 2GB RAM
Save 77% monthly
Production
$91
/mo
4 concurrent, 91 RPM
✓
No Surprise Bills
Prepaid keys with fixed duration. You always know exactly what you're paying.
✓
No Overages
Hit your limit? Keys simply expire - never any unexpected charges.
✓
Extend Anytime
Boost your key whenever you need more time. Services stay frozen until you're ready.