~/.xpander/credentials. You can have multiple profiles for different organizations or environments (production, staging, …).
xpander login (alias l)
Authenticate via browser. Opens xpander.ai in your default browser, completes the OAuth flow, and writes credentials to the active profile.
xpander configure (alias c)
Set up API credentials manually (for environments without a browser, or when you already have an API key).
The wizard:
- Stores your API key in the profile.
- Validates against xpander.ai (unless
--no-validate). - Auto-detects your organization ID.
- Writes both to
~/.xpander/credentials.
xpander profile
Manage profiles.
Use
--profile <name> on any command to override the active profile for a single call:
Auth priority
When multiple credential sources are present, the CLI resolves auth in this order:--api-keyon the command line.XPANDER_API_KEYenvironment variable.~/.xpander/credentials(the active profile).

