A computer for every agent, in under 500 ms.
Create it, run code, read the result, throw it away. Python, TypeScript, the CLI or plain HTTP.
THE API
Simple to use.
Create a sandbox, run your code, read the result.
Python · TypeScript · CLI · HTTP · llms.txt
from fdtn import Sandbox code = "print('hello from the model')" # code your agent wrote sbx = Sandbox.create("base", timeout=600) # lives 10 minutes sbx.files.write("/app/main.py", code) r = sbx.commands.run("python3 /app/main.py", timeout=60) print(r.stdout) # hello from the model url = "https://" + sbx.get_host(8000) # an address for port 8000 sbx.pause() # keep it; resume later
WHAT IT DOES
The parts you need, and nothing else.
commands.run()Run anythingForeground or background, with streaming output, stdin and time limits.
files.write()Move filesRead, write, list and watch files. Copy whole folders with one command.
get_host(port)Open a portEach port gets its own HTTPS address. Private by default, public if you ask.
pause()Keep it for laterMemory and files are kept 72 hours, free. Resume from the same point.
fdtn templateYour own imageBuild a template from a Dockerfile once. Every machine starts with it.
--count 100Run manyStart a group, run a command in each machine and collect every result.
EXAMPLES
Start from code that works.
Each example ran end to end, with its real output on the page.
Run model-written code with a time limit and read the result.
Give an agent a code toolA tool-calling loop whose run_code tool runs in a machine.
Test a change to a repoClone a repo, run its tests, apply a change, return the diff.
Grade evals in parallelStart a group, run every task, then collect and score it all.
Run CI on clean machinesCall fdtn from any CI job. Run shards in parallel, merge reports.
Run an AI engineerAn AI employee with its own computer and your model key.
Preview a web appRun a dev server and share it at its own HTTPS address.
Analyze a data fileUpload a CSV, run pandas, download the finished chart.
All examplesBrowsers, paused workers, webhooks and more, all tested.
ISOLATION
Safe for code you did not write.
Each sandbox is a virtual machine with its own Linux kernel. It cannot reach other sandboxes, the computer it runs on, or private networks. By default it can run on a Host’s Mac. For API keys and private data, add --trusted: it runs only on machines we own.
- Start
- <500 ms
- Sizes
- Any size up to 16 vCPU and 32 GiB, set per template
- Disk
- 5–20 GiB, free
- Lifetime
- Up to 24 hours per run
- At once
- Start as many as you need; extra starts queue
- CPU
- 64-bit Arm
- Price
- $0.018 per vCPU-hour + $0.006 per GiB-hour