Skip to content

Egress

Every runtime has one egress policy. Setting it replaces the complete policy.

Policy entries are hostnames or wildcard host patterns, not URLs:

pypi.org
api.openai.com
*.pythonhosted.org

Hosts are lowercased, sorted, and deduplicated. Do not include schemes, paths, ports, or query strings.

Each call replaces the entire policy, so include every host you want to keep.

Terminal window
runta egress set demo \
--mode allowlist \
--allow pypi.org '*.pythonhosted.org' api.openai.com

Read the current policy with runta egress describe demo, runtime.egress.get(), or await runtime.egress.get().

An empty denylist is the default open policy:

Terminal window
runta egress set demo --mode denylist

Use the Runta CLI for terminal workflows, shell scripts, and direct runtime operations.

TaskCLI command
Inspect the current policy runta egress describe demo
Set an allowlist runta egress set demo --mode allowlist --allow api.openai.com
Set a denylist runta egress set demo --mode denylist --deny example.com
Reset to the default open policy runta egress set demo --mode denylist