Login Command

The login command authenticates you with the xpander.ai engine. It supports both browser-based OAuth authentication and manual API key input.

Usage

xpander auth login [--api-key <key>]

Options

OptionDescription
--api-key <key>Optional. Manually provide your API key instead of using browser-based authentication

Examples

Browser-based Authentication

xpander auth login

This will:

  1. Open your default browser
  2. Direct you to the xpander.ai login page
  3. After successful authentication, return you to the CLI

API Key Authentication

xpander auth login --api-key YOUR_API_KEY

Response

On successful authentication:

✓ Successfully logged in as user@example.com
Current organization: MyOrg (org_12345)

Notes

  • The login session is valid for 30 days
  • Your credentials are securely stored in your system’s keychain
  • You can check your login status using xpander engine status