docs/cmd/install-ezagent.md

Distribution installer

Build the archive and dist/install-ezagent.sh with just dist. Run the installer as the target user. The default binary destination is ~/.local/bin; pass a path to override it. Use --help for optional packages and flags.

The installer asks two separate questions when the user's EzAgent config.yaml is missing. Existing config is left untouched, even with explicit flags. The config path is $XDG_CONFIG_HOME/ez-agent/config.yaml or, if XDG_CONFIG_HOME is unset or empty, ~/.config/ez-agent/config.yaml. Extracting the archive directly does not run setup.

First-install questionTerminal and unattended defaultFlag
Should EzAgent ask before risky calls?Workspace approvals--approvals=workspace|yolo
Run tools in a Bubblewrap sandbox?Off--bubblewrap=on|off

Bubblewrap requires Linux 5.6 or later with unprivileged user namespaces, openat2 and pidfds. Install non-setuid bwrap 0.8.0 or later from your system's bubblewrap package and make it available on PATH. EzAgent does not ship or install it. If the check fails, the installer exits non-zero before installing binaries or writing a config.

The setup program reports the config as existing, missing, or indeterminate. It is indeterminate when the config path is not absolute or the path exists but is not a regular file, and the installer treats it the same way when the setup program cannot run. An explicit --bubblewrap=on then stops the install before copying binaries, because the opt-in could not be saved. Rerun with --bubblewrap=off to install without opting in. With --bubblewrap=off or no flag, the installer warns, copies the binaries, and skips first-install setup.

An opted-in install starts with Normal networking and no project mounts. The daemon and sandbox can start, but managed tool calls from any workspace are refused until that workspace is listed. Use Global User Config → Execution safety in the configurator to add projects, grants, and engine destinations or change the network mode. Restart the daemon after saving. If sandbox startup fails, sandboxed providers remain unavailable; EzAgent never runs them on the host as a fallback. See the Bubblewrap policy for network-specific prerequisites and limits.