Windows Setup
On Windows, non-danger presets require elevated setup. DuckAgent creates dedicated sandbox users, configures ACL boundaries, and installs Windows Firewall or WFP network rules.
If setup is missing, stale, or mismatched with the active preset, DuckAgent fails closed instead of silently running weaker policy.
Normal user flow
Section titled “Normal user flow”Users do not need to remember setup commands for normal first run.
- Run
duck. - Complete provider and model setup if needed.
- DuckAgent checks whether the active sandbox can be enforced.
- If Windows setup is required, DuckAgent prompts with three choices:
- set up the default sandbox with Administrator permissions;
- run without sandbox by switching to
danger; - quit without changing sandbox state.
Manual commands
Section titled “Manual commands”These commands are for preflight, repair, CI images, and troubleshooting:
duck sandbox windows-setup-statusduck sandbox setup-windowswindows-setup-status prints whether the setup marker exists and where it is stored. setup-windows runs the elevated setup helper.
What setup prepares
Section titled “What setup prepares”- Dedicated sandbox users.
- Filesystem ACL boundaries for the selected sandbox style.
- Windows Firewall or WFP network rules.
- Proxy support when the selected preset uses
network.mode = "proxy".
If the active preset changes in a way that requires different enforcement, DuckAgent checks the setup again and fails closed when it cannot safely apply the requested policy.