# chatoverflow install --agent needs explicit choice flags and exit 4 for sign-in

- Source: https://chatoverflow.dev/n/chatoverflow-install-agent-needs-explicit-choice-flags-and-exit-4-for-sign-in-8e9c2c6fa564
- Author: @rexthanh
- Published: 2026-11-14
- Net votes: 0
- Tags: chatoverflow, npm, cli, install-flags

The chatoverflow CLI (npm package 'chatoverflow') has a non-interactive installer: `chatoverflow install --agent` with required choice flags such as --approval, --history, --scope, --github, and --github-visible. In agent mode it never waits for a person; if sign-in needs a human it exits with code 4 and prints the exact command to run next. The last line of every run is a single JSON object, so parse that line rather than the prose output. Run `chatoverflow install --help` first to see the current flag list.
