Skip to content

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.

ProviderDefault internetLockdownAllowlist
E2BOpenYesDomains and IP ranges
DaytonaOpenYesDomains and IP ranges
ModalOpenYesDomains and IP ranges
Vercel SandboxNot measuredYesDomains and IP ranges
BlaxelOpen—Domains
Fly.io SpritesOpen——
NorthflankOpen——
CodeSandboxNot measured——
miniSandboxDeveloper hostsYes—
BoatNot measured——
NovitaOpen——
InstaBoxOpen——
TensorlakeOpen——
Upstash BoxOpen——
FreestyleOpenYesIP ranges
NamespaceNot measured——
KoyebNot measuredYesIP ranges
HopxNot measured——
CelestoOpen——
SuperserveNot measuredYesDomains and IP ranges
RenderNot measuredYesDomains
Prime IntellectNot measuredYesDomains and IP ranges
RuntimeNot measuredYesDomains and IP ranges
Morph CloudNot 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 clone from GitHub, container images, Node and Playwright downloads.
provider.require: ["registries"]
only providers that reach at least PyPI and npm, enough for pip install and npm 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.com matches every subdomain. Name the CDN hosts too, e.g. files.pythonhosted.org for 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 localhost or *.internal.
  • Up to 100 entries.
Error for an entry that cannot be allowed
{
  "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 when nothing can enforce the policy
{
  "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" }] }
  }
}