CLI Authentication
The CLI authenticates with either a browser OAuth session (device-code flow) or a stored API key / PAT. Either way,nexspace login saves the credential to
your OS keychain when available (macOS Keychain, Linux Secret Service,
Windows Credential Manager), falling back to ~/.nexspace/config.json
(mode 0600).
Device Code Login (Interactive)
Best for personal use on your workstation:API Key / PAT (Headless)
Best for CI/CD, scripts, and automation. Store the key once withnexspace login --token — it also reads the NEXSPACE_API_KEY environment
variable as a fallback for the token value:
Verify Authentication
GET /api/auth/me.
Logout
~/.nexspace/config.json.
