pensar login
Overview
The pensar login command connects your CLI to Pensar Console for managed inference. This is the headless equivalent of the TUI /login command — it uses the same device authorization flow but runs entirely in the terminal without the TUI.
The pensar auth command still works as an alias for backward compatibility, but pensar login is now the primary command name.
Usage
Subcommands
The legacy pensar auth command and subcommands still work for backward compatibility.
Login Flow
- Apex requests a device code from the Pensar authentication service
- A browser window opens to the verification URL
- Enter the user code displayed in your terminal to confirm
- Select a workspace (if your account has multiple)
- Apex stores the auth tokens locally
If you’re already connected, pensar login will show your current status and offer to reconnect.
Checking Status
Displays your auth type (WorkOS or API key) and current workspace. When using API key auth, the command resolves your workspace from the server if it isn’t already stored locally.
Logging Out
Clears stored authentication tokens from your local configuration. You can reconnect at any time by running pensar login again.