For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

agentengine agent egress mode

Set egress_mode in agent.yaml.

Set network.egress_mode in agent.yaml.

MODE is deny_all, allow_list, or allow_all. allow_all requires --confirm-allow-all and is rejected while that sandbox still lists destinations: remove them first, or use allow_list. --confirm-allow-all is valid only with allow_all.

This edits the local file and does not change the running workspace. Redeploy for the new mode to apply.

Examples:

agentengine agent egress mode allow_all --confirm-allow-all
agentengine agent egress mode deny_all
agentengine agent egress mode MODE [flags]
--component string Target a single sandbox: agent or tool. Omit to apply to both.
--confirm-allow-all Required acknowledgement when MODE is allow_all.
-h, --help help for mode
--workspace string Monorepo: select a specific workspace by name (from root agent.yaml)
--log-file string override log file path
--log-level string file log verbosity (error|warn|info|debug) (default "info")
--no-log disable file logging
-q, --quiet silence stderr below error
-v, --verbose count raise stderr verbosity (-v info, -vv debug)
Rate this page