~/.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:
xpander secrets-sync
Upload your local .env variables to deployed agents as runtime secrets.
This reads
.env in the current directory and uploads each KEY=value line to the deployed agent’s secret store. Existing secrets with the same key are overwritten.
Use this after xpander agent deploy whenever you change environment-dependent config without rebuilding the container: for example, rotating an external API key.
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).

