Guides
Network
Know what a sandbox can reach before it starts, ask for internet access, or lock a sandbox down to the hosts it needs.
Default internet access
Each day SandboxPlease starts a sandbox on every provider and checks, from inside it, what answers. The result is the provider's default internet access, shown in the catalog, on each provider's page and in GET /v1/catalog as network.internet:
Open
open
Any public host answers: a package install, a git clone, an API call.
Developer hosts
developer
Package and container registries (PyPI, npm, Docker Hub, ghcr.io), GitHub, Ubuntu mirrors, nodejs.org and the Playwright CDN answer, enough for most CI; other hosts do not.
Package registries only
registries
PyPI and npm answer, the rest of the internet does not.
None
none
Nothing outside the sandbox answers.
On each provider
network.lockdown says whether the provider can cut a sandbox off entirely, network.allow_domains and network.allow_cidrs whether it can let through only a list of hosts.
| Provider | Default internet | Lockdown | Allowlist |
|---|---|---|---|
| E2B | Open | Yes | Domains and IP ranges |
| Daytona | Open | Yes | Domains and IP ranges |
| Modal | Open | Yes | Domains and IP ranges |
| Vercel Sandbox | Not measured | Yes | Domains and IP ranges |
| Blaxel | Open | — | Domains |
| Fly.io Sprites | Open | — | — |
| Northflank | Open | — | — |
| CodeSandbox | Not measured | — | — |
| miniSandbox | Developer hosts | Yes | — |
| Boat | Not measured | — | — |
| Novita | Open | — | — |
| InstaBox | Open | — | — |
| Tensorlake | Open | — | — |
| Upstash Box | Open | — | — |
| Freestyle | Open | Yes | IP ranges |
| Namespace | Not measured | — | — |
| Koyeb | Not measured | Yes | IP ranges |
| Hopx | Not measured | — | — |
| Celesto | Open | — | — |
| Superserve | Not measured | Yes | Domains and IP ranges |
| Render | Not measured | Yes | Domains |
| Prime Intellect | Not measured | Yes | Domains and IP ranges |
| Runtime | Not measured | Yes | Domains and IP ranges |
| Morph Cloud | Not measured | — | — |
Require internet
provider.require: ["internet"]- only providers whose sandboxes reach the open internet.
provider.require: {"internet": "developer"}- only providers that reach at least the developer hosts: installs,
git clonefrom GitHub, container images, Node and Playwright downloads. provider.require: ["registries"]- only providers that reach at least PyPI and npm, enough for
pip installandnpm install.
Other providers are skipped with reason no_internet; one not measured yet is not skipped.
Lock it down
The network option sets what a sandbox may reach, the same way on every provider that supports it:
"deny-all": nothing outside the sandbox. Commands still run, files still move through the API.{ "allow": ["pypi.org", "*.github.com", "1.2.3.0/24"] }: only these domains and IP ranges."allow-all": the open internet. Providers measured without it are skipped.
A policy can only take away from what the provider lets through, never add to it: no request widens a provider's default access yet. On miniSandbox, a sandbox reaches what its template allows (the developer hosts on sandboxplease/base) and network can only cut that to nothing, so a job that needs another host must run on a provider with open internet.
SandboxPlease translates the policy to each provider's own setting. Setting that native field yourself in provider_options at the same time is refused with provider_option_conflict.
Allowlist rules
- Domains match exactly;
*.github.commatches every subdomain. Name the CDN hosts too, e.g.files.pythonhosted.orgfor PyPI downloads. - IP addresses and CIDR ranges, IPv4 or IPv6. A bare IP means that one address.
- Private, loopback, link-local and metadata ranges stay blocked, and so do names like
localhostor*.internal. - Up to 100 entries.
{
"error": {
"code": "invalid_request",
"message": "✖ 10.0.0.0/8 reaches private, loopback or metadata addresses, which stay blocked
→ at network.allow[0]"
}
}How routing uses it
With a policy other than allow-all, only providers that can enforce it are tried. Providers that cannot are skipped with reason network_policy_unsupported, and so are providers that install sandboxplease/base at create, since that install needs the internet. When nothing is left the API answers no_eligible_provider with every skipped provider and its reason.
{
"error": {
"code": "no_eligible_provider",
"message": "No provider matches this request: minisandbox cannot limit network access to an allowlist",
"hint": "To get a sandbox, drop network, or pick a provider that enforces it (https://sandboxplease.com/docs/network lists them).",
"details": { "skipped": [{ "provider": "minisandbox", "reason": "network_policy_unsupported" }] }
}
}