Skip to content
Fresh

sbx policy set-default

Back

Reference

sbx policy set-default

| Description | Set the default network policy | | Usage | sbx policy set-default <allow-all|balanced|deny-all&gt; [flags] |

Description

Set the default network policy for all sandboxes.

This must be run before adding custom allow/deny rules or starting a sandbox for the first time. The default policy determines the baseline network access.

Available policies: allow-all All outbound network traffic is allowed balanced Common dev traffic allowed (AI services, package registries, etc.) deny-all All outbound network traffic is blocked

After setting defaults, use "sbx policy allow/deny" to add custom rules. Use "sbx policy reset" to clear all policies and start over.

Global options

OptionDefaultDescription
-D, --debugEnable debug logging

Examples

console
# Set balanced defaults (recommended)
sbx policy set-default balanced

# Allow all traffic
sbx policy set-default allow-all

# Block everything, then allow specific sites
sbx policy set-default deny-all
sbx policy allow network api.example.com:443