[egress] table to the agent’s
opencomputer.toml and deploy again:
sandbox_exec,
background jobs, and anything they start. Connections to anything else are
refused.
What each entry allows
- A wildcard does not cover its own domain.
"*.example.com"allowsapi.example.comanda.b.example.com, notexample.com. To reach both, list"example.com"and"*.example.com". - Domains cover HTTPS on port 443 only. Plain
http://, other ports, and non-TLS protocols to a domain are refused. To reach those, list the destination’s IP address or CIDR instead. - Domains are matched on the TLS server name. The connection goes to the allowed host whatever IP address the client picks, so pointing an allowed name at another address does not reach that address.
- DNS lookups are not filtered. Names outside the list still resolve; the connection is what is refused. Resolvers other than the sandbox’s own are blocked.
- Platform hosts are always allowed. The sandbox can always reach OpenComputer and the storage it loads your agent from, so you never list them.
allow = [] (or an [egress] table with no allow) allows nothing beyond the
platform hosts. Without an [egress] table the network stays open.
Rules
- Up to 64 domains and 64 IP addresses or CIDRs.
- Domains take no scheme, port or path.
"https://api.github.com"and"api.github.com:443"are rejected. A bare"*"is rejected; remove the[egress]table instead. - A bare IP address means that single address (
/32or/128).
400 invalid_egress, if you call
POST /v1/deployments directly. There the allowlist is
"egress": { "domains": [...], "cidrs": [...] }; the CLI splits allow into
these two lists for you.
Fixed IP addresses
To have the sandbox’s traffic leave from a fixed set of IP addresses, for example so a customer can allowlist your agent, setfixed_ips to a region:
fixed_ipsworks with or withoutallow. With both, the sandbox reaches only the allowed hosts, and reaches them from the fixed addresses.- If the region’s addresses are unreachable, the sandbox has no network rather than falling back to other addresses.
- The region of
fixed_ipsis independent of the agent’sregion; pick the same one to keep latency down.
400 invalid_fixed_ips
to "fixedIps": "<region>" on POST /v1/deployments.
Changing the list
A change applies to sandboxes started after the deploy. A sandbox that is already running keeps the list it started with until it stops. Each agent in a project has its ownopencomputer.toml, so agents in one project can have
different lists.
The list covers the agent’s sandbox. Model calls, and MCP servers the agent
connects to, are made by OpenComputer outside the sandbox and are not held to
it.