Private networking
Private networking lets a session sandbox reach private HTTP and HTTPS services, such as an internal API or staging environment, through VPN tunnel software you install in the sandbox, such as Tailscale or WireGuard. It's off by default.
Requirements
Turning private networking on or off requires the Manage security role or Admin. Change it under Private networking at Settings → Security. Each change is recorded in the audit log as private_networking.updated.
You also need to install and authenticate the tunnel in the sandbox yourself, usually in the repository's build or setup scripts. Inspect doesn't install VPN software or provision VPN credentials.
When the setting applies
Inspect reads the setting when a sandbox starts: for a new session, or when a session gets a replacement sandbox. Changing it doesn't affect sandboxes that are already running. Start a new session to pick up a change right away.
How traffic is routed
Keep using the HTTP and HTTPS proxy environment Inspect sets in the sandbox. You don't need NO_PROXY, CIDR allowlists, interface names, route tables, or another proxy.
For each connection to a private address, the sandbox's local proxy resolves the destination inside the sandbox and checks the tunnel's routes. Once the tunnel provides a specific route to that address, later connections use it without reconfiguring the session or proxy. Private DNS, including Tailscale MagicDNS, must resolve inside the sandbox to an address the route covers.
- Tailscale peer routes, MagicDNS names, and advertised subnet routes work once Tailscale is connected and the route is available.
- WireGuard and other tunnels work when they install a kernel route to the destination. Userspace-only tunnels without a kernel route aren't supported.
- A tunnel's default route or exit node doesn't authorize private connections. Public traffic keeps going through Inspect's standard egress.
- Cloud metadata, loopback, link-local, and other restricted or special-use addresses stay blocked.
Security considerations
With private networking on, the agent, its tools, and the repository code in the sandbox can all send HTTP and HTTPS requests to anything the tunnel reaches. Use a dedicated, least-privilege tunnel identity and network ACLs that expose only the services sessions need, and keep authentication on the private services themselves. Inspect's route checks prevent accidental exposure of default routes and restricted addresses; they don't replace your VPN access policy.
Untrusted prompts and repository changes run with the same network access, so review them before giving sessions access to sensitive services.
Inspect doesn't log requests a sandbox sends to private destinations through the tunnel, and they don't appear in the audit log. Use your VPN's and the destination service's logs for that traffic.