The library, on your own keys
The open-source package runs inside your own code. It calls each provider's API directly with keys you set; nothing passes through sandboxRouter, and we never see your keys, commands, files or output. Sandboxes run on your provider accounts, and each provider bills you. It has no runtime dependencies; each provider's SDK is an optional peer you install yourself. The code is on GitHub, MIT licensed.
It keeps a local ledger of the sandboxes it started (so sandboxrouter gc can clean up after a crash) and, if you run benchmarks, a local file of start times. Both stay on your machine.
The hosted key
With one sandboxRouter key, sandboxes run on sandboxRouter's accounts with each provider, at the provider's price plus 5.5%. Every request, including the commands you run and their output, goes through api.sandboxrouter.ai on its way to the provider.
- What we store: your account (GitHub sign-in, or an agent sign-up), API keys as SHA-256 hashes, the sandboxes you started with their provider, times and cost, and your credit ledger. Payments are handled by Stripe; we never see card numbers.
- What we don't store: the commands you run, their output, or your files. They pass through and aren't kept.
- Your own provider keys, if you add them to the dashboard, are encrypted with AES-256-GCM and used only to start, use and stop your sandboxes. Sandboxes on them are billed to you by the provider.
- Isolation is the provider's: containers, gVisor or micro-VMs depending on the provider. See how isolation differs.
Moving files between sandboxes
move and copy carry a folder from one sandbox to another, on any two providers. The folder is packed in the first sandbox, passes through the program that called move, and is unpacked in the second.
- On your own keys: the folder goes from one provider, through your own server, to the other. It never reaches sandboxRouter.
- On the hosted key: the folder also passes through
api.sandboxrouter.ai, over TLS. It is relayed, not written to disk or to a database. File names are part of each request's address, so they, unlike file contents, can appear in access logs. - With
encrypt: true: the folder is encrypted inside the first sandbox and can only be opened inside the second, which makes a key pair and keeps the private key. Your server and ours relay bytes neither can read (AES-256, with a one-time key sealed to that public key), and the second sandbox checks the archive's SHA-256 before unpacking. - What encryption doesn't cover: the two providers that run the sandboxes can see what is on them, as with any cloud machine, and so can whoever is able to run commands in them: you, and on the hosted key, sandboxRouter. For credentials such as an agent's login, keep them in your own secret store, leave them out of the move with
exclude, and put them into the new sandbox yourself.
What isn't promised yet
- No uptime commitment (SLA) and no region pinning: a sandbox runs wherever the chosen provider runs it.
- Provider accounts on the hosted key are shared by sandboxRouter's customers, each sandbox isolated by its provider.
- No compliance certifications (such as SOC 2).
If you need any of these, use the library on your own provider accounts, which keeps everything inside your own contracts with each provider.
Reporting a problem
Report a vulnerability privately through GitHub security advisories. The hosted key's terms, privacy policy and acceptable use policy have the rest.