Client configuration
Synopsis
The client reads command options, environment variables, saved login data, and built-in defaults. A value earlier in the documented order wins. For authentication,AGENTSFLEET_API_KEY overrides the saved login token. The login command accepts --token, piped input, or browser approval.
Example with output
Options
The API URL uses this order:
--api, AGENTSFLEET_API_URL, .env.local, then the built-in URL.
Errors
An invalid URL returns exit code4. A missing token returns exit code 1.
A network failure returns exit code 2. The client does not change saved login data after a network failure.
Do not put tokens in command history. Use AGENTSFLEET_API_KEY through your secret manager for unattended commands.