SageOx

The hivemind for agentic engineering

CLI

ox login

Authenticate your CLI with the SageOx platform using device flow authorization.

Usage

terminal
$

How It Works

The ox login command uses OAuth 2.0 device flow:

  1. Request device code - CLI requests a code from SageOx
  2. Open browser - Authorization page opens automatically
  3. Authorize - Sign in and approve CLI access
  4. Complete - CLI receives and stores credentials

This is secure because your password never enters the terminal.

Credential Storage

OSLocation
macOS/Linux~/.config/sageox/credentials.json
Windows%APPDATA%\sageox\credentials.json

Commands

terminal
# Check authentication status
$
# Remove stored credentials
$
# Re-authenticate (switch accounts)
$

Troubleshooting

Browser does not open - Copy the displayed URL manually.

Authentication timeout - Device code expires after 15 minutes. Run ox login again.

Wrong account - Run ox logout then ox login.

Environment Variables

VariableDescription
SAGEOX_API_URLOverride API endpoint
SAGEOX_NO_BROWSERSet to 1 to disable automatic browser