Everything on Runtime,a minute from here.
TypeScriptimport { Runtime } from "withruntime";const runtime = new Runtime(); // reads RUNTIME_API_KEYconst sandbox = await runtime.sandboxes.create();try { await sandbox.files.write("/workspace/invoice.py", "print(sum([125, 250, 375]))\n"); const result = await sandbox.exec("python3 /workspace/invoice.py"); console.log(result.stdout); // 750 if (result.exitCode !== 0) throw new Error(result.stderr);} finally { await sandbox.delete();}first.tsThe quickstart →
Every product.Each with its own guide and reference.
- SandboxesA sandbox is a Linux machine of your own: a Firecracker microVM with its own kernel, memory, disk and network address.
- FunctionsAnswer HTTP requests with one TypeScript handler that pauses when idle and resumes on the next request.
- AppsKeep a web app running on port 8080, started the way Render and Heroku start one.
- SitesServe a folder of static files at an HTTPS address, paused when nobody visits.
- CI/CDRun a repository's checks on a machine with git, Docker, Node, Bun and Python, or as a GitHub Actions runner.
- BrowsersA headless Chromium for an agent, driven with Playwright or Puppeteer over the Chrome DevTools Protocol.
- DesktopsA Linux desktop with Chromium for an agent that uses a computer: the agent reads its screen with GET /v2/desktops/{id}/screenshot and mov…
- NotebooksJupyterLab with NumPy, pandas and matplotlib, its kernels kept in memory while it is paused.
- Dev environmentsA development environment with VS Code in the browser, like Codespaces and Gitpod.
- ContainersRun one OCI image from any registry, reached at an HTTPS address.
- JobsA job runs its command on a schedule: each run boots a fresh machine, runs run to its end, and is billed for that time alone.
- ImagesAn image is the disk a machine boots: POST /v2/images makes one, and image boots any product from it.