Skip to content

Internet access

Every sandbox is kept away from private networks, cloud metadata services and other sandboxes, can’t send email directly, and has its new connections rate-limited. Within that, each sandbox has one of two settings:

  • Whole internet (the default).
  • Only these sites: the web (https and http) on the sites you list and their subdomains. Nothing else gets out, apart from looking up names. A list with no sites means no internet at all.

Set it in the sandbox’s Settings, or when you create it through the API. Changes take effect within a few seconds, also on connections already open; the settings page shows Applying… until they have.

Agents need their own sites too: for example Claude Code installs from registry.npmjs.org and signs in at anthropic.com and claude.ai. The settings page offers ready-made groups of sites, and one button adds what the sandbox’s agent needs. Model calls through your organization’s organization key go through the platform, so they need nothing here.

Common sites: github.com and githubusercontent.com (GitHub), registry.npmjs.org (npm), pypi.org and files.pythonhosted.org (Python packages).

PATCH /v1/sandboxes/{id}
{ "internet": { "mode": "allowlist", "allowed_hosts": ["github.com", "pypi.org"] } }

Each sandbox reports its setting and whether it has taken effect:

"internet": { "mode": "allowlist", "allowed_hosts": ["github.com", "pypi.org"], "applied": true }

An owner can give a team its own list. Then it is a ceiling for the team’s sandboxes: they reach only sites both the team and the sandbox allow. See Organizations and teams.