Configure Sandbox NetworkPolicy
Use a Kubernetes network plugin that enforces NetworkPolicy. To enable the chart’s policy and disable its broad IPv4 and IPv6 internet rules, add these settings to your Helm values:sandboxNetworkPolicy.extraEgress to allow other required destinations,
such as a Git host, model gateway, or package mirror. Use IP ranges or pod
and namespace selectors. Review all policies that select sandbox pods.
Kubernetes combines their allow rules. See
Kubernetes NetworkPolicy.
Control Internet Access with a Firewall or Proxy
If a workflow needs access to approved public sites, route its traffic through an outbound firewall or an enforced forward proxy. Set the destination allowlist there and configure your network rules to permit the required traffic along that path. With a forward proxy, allow the proxy’s address and port, configure compatible clients to use it, and block direct internet access from the sandbox.Provide Search Across Approved Sources
Give agents a search tool through an approved remote MCP service and allow sandboxes to reach it. Configure the service to keep the upstream provider’s API key and apply an administrator-managed list of domains to every query. For example, allow the documentation sites for your language and framework. See Organization MCP Servers to connect the tool. For the Exa Search API, setincludeDomains. For the
Tavily Search API,
set include_domains and include_domains_mode: restrict.
Start with results and snippets. If you add a tool that fetches full pages,
enforce an approved destination list for fetches, including redirects.
Use an internal search index when queries may contain private code or internal
details. If your organization approves the built-in Tavily integration,
OpenHands can route search through the app using
TAVILY_API_KEY. Use a
customer-managed search service when you need a fixed domain list across
requests.

