Login Commands

This page describes all ways to login to keeper from sdk and cli perspective

Commands:

Keeper supports multiple login methodologies, these include

Authentication Workflow (High-Level)

  • Primary Authentication

    • Regular account (username + master password)

    • Cloud SSO (SAML, OIDC)

    • On-Premises SSO

    • Managed Company (MSP) login

  • Secondary Authentication (2FA)

    • TOTP (Google/Microsoft Authenticator)

    • SMS one-time code

    • DUO (push, SMS, voice)

    • RSA SecurID

    • WebAuthn/U2F (security keys, biometrics)

  • Device Approval

    • Email link

    • 2FA challenge

    • Keeper Push notification

SDK Authentication Flow

  1. Initialize SDK client/session context

  2. Select login method (master password, SSO, MSP)

  3. Handle challenges issued by Keeper

    • 2FA challenge

    • Device approval

    • Security key prompt

  4. Establish secure session

    • Receive encrypted session token

    • Unlock vault and enterprise APIs

Login Command

Authenticate to start a session.

chevron-rightDotNet CLIhashtag

Command: login

Flag:

  • --password master password

  • --resume resume last login

  • --sso login using sso provider

  • --alt login using sso master password

  • --help Display this help screen.

  • --version Display version information.

  • email (pos. 0) Required. account email

Example:

chevron-rightDotNet SDKhashtag

Function: IAuth.Login

Example:

chevron-rightPowerCommanderhashtag

Command: Connect-Keeper Alias : kc

Flag:

  • -Username

  • -Password

  • -NewLogin

  • -Server

  • -Config

  • -SsoPassword

  • -SsoProvider

Example:

chevron-rightPython CLIhashtag

Command: login

Flag:

  • -h, --help : show this help message and exit

  • --sso-password : force master password for SSO accounts

  • --resume-session : resumes current login session

  • -p, --pass : PASSWORD master password

Example :

chevron-rightPython SDKhashtag

Function: refer here

Logout Command

Securely log out from the CLI.

chevron-rightDotNet CLIhashtag

Command: logout

Flag:

  • --resume : resume last login

  • --help : Display this help screen.

  • --version : Display version information.

Example:

chevron-rightDotNet SDKhashtag

Function: IAuthentication.Logout

Example:

chevron-rightPowerCommanderhashtag

Command: Disconnect-Keeper

Aliases: kq

Flag:

  • -Resume

Example:

chevron-rightPython CLIhashtag

Command: logout

Example:

chevron-rightPython SDKhashtag

Function: close

Example:

Whoami Command

Displays information about the current authenticated user, including username and email.

chevron-rightDotNet CLIhashtag

Command: whoami

Example:

chevron-rightDotNet SDKhashtag

Function: Authentication.IAuthContext

Example:

chevron-rightPower Commanderhashtag

Command: Get-KeeperInformation

Alias: kwhoami

Example:

chevron-rightPython CLIhashtag

Command: whoami

Flag :

  • -h, --help : show this help message and exit

  • -v, --verbose : verbose output

Example:

chevron-rightPython SDKhashtag

Function: Not Supported

Get and Set Keeper Password Visible command

Displays information about the current authenticated user, including username and email.

chevron-rightDotNet CLIhashtag

Not Implemented

chevron-rightDotNet SDKhashtag

Not Implemented

chevron-rightPower Commanderhashtag

Command: Get-KeeperPasswordVisible

Returns current password visibility setting (True or False).

Example:

Command: Set-KeeperPasswordVisible

Toggles whether passwords are shown in plaintext or masked when displaying records.

Flags: -Visible — When present, passwords are shown in plaintext. When omitted, passwords are masked.

Example:

chevron-rightPython CLIhashtag

Not Implemented

chevron-rightPython SDKhashtag

Not Implemented

Show-Two Factor Code command

Displays information about the current authenticated user, including username and email.

chevron-rightDotNet CLIhashtag

Not Implemented

chevron-rightDotNet SDKhashtag

Not Implemented

chevron-rightPower Commanderhashtag

Command: Show-TwoFactorCode

Description: Generates and displays TOTP codes for records with a oneTimeCode field. Shows code, elapsed, and remaining seconds.

Flags: -Records — Record UID(s) or objects (Required, pipeline)

Example:

Command: Set-KeeperPasswordVisible

Toggles whether passwords are shown in plaintext or masked when displaying records.

Flags: -Visible — When present, passwords are shown in plaintext. When omitted, passwords are masked.

Example:

chevron-rightPython CLIhashtag

Not Implemented

chevron-rightPython SDKhashtag

Not Implemented

Last updated

Was this helpful?