Subcommands
| Command | Description |
|---|---|
vtrix auth login | Initiate device code authorization; credentials are saved automatically on completion |
vtrix auth set-key <api-key> | Set an API Key directly, no browser login required |
vtrix auth status | Show current login status and account info |
vtrix auth logout | Clear local credentials |
Login flow
Initiate login
vtrix auth loginThe terminal outputs a device code and authorization URL:
┌─────────────────────────────────────────────┐
│ │
│ Visit: https://vtrix.ai/device │
│ Code: ABCD-1234 │
│ │
└─────────────────────────────────────────────┘
Waiting for authorization... (opens browser automatically)Complete authorization in the browser
The CLI will automatically try to open your browser. If it doesn’t open, visit the URL above manually, enter the device code, and confirm.
Authorization successful
Once confirmed in the browser, the terminal receives the response automatically:
✓ Authenticated as user@example.com
✓ Credentials saved to keychainSubsequent commands like vtrix run and vtrix models will not require re-authentication.
set-key: Set API Key directly
Ideal for automation scripts, CI environments, or when you already have an API Key and want to skip the browser flow.
vtrix auth set-key <api-key>✓ API Key updatedset-key only updates the API Key field in the local config and does not affect existing AuthToken or RefreshToken values.
- Have an API Key: use
set-key— writes directly, no browser needed. - First time / need full account credentials: use
login— completes device code authorization and obtains both Token and API Key.
Credential storage
| Platform | Location |
|---|---|
| macOS / Windows | System Keychain |
| Linux (with D-Bus) | System Keychain |
| Linux (without D-Bus) | ~/.config/vtrix/config.yml |
Set the environment variable VTRIX_NO_KEYCHAIN=1 to skip the Keychain. Credentials will always be written to ~/.config/vtrix/config.yml.
Check current status
vtrix auth status● Logged in
User: user@example.com
Expires: 2026-07-10Log out
vtrix auth logout✓ Credentials cleared