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.

DotNet CLI

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:

DotNet SDK

Function: IAuth.Login

Example:

PowerCommander

Command: Connect-Keeper Alias : kc

Flag:

  • -Username

  • -Password

  • -NewLogin

  • -Server

  • -Config

  • -SsoPassword

  • -SsoProvider

Example:

Python CLI

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 :

Python SDK

Function: refer here

Logout Command

Securely log out from the CLI.

DotNet CLI

Command: logout

Flag:

  • --resume : resume last login

  • --help : Display this help screen.

  • --version : Display version information.

Example:

DotNet SDK

Function: IAuthentication.Logout

Example:

PowerCommander

Command: Disconnect-Keeper

Aliases: kq

Flag:

  • -Resume

Example:

Python CLI

Command: logout

Example:

Python SDK

Function: close

Example:

Whoami Command

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

DotNet CLI

Command: whoami

Example:

DotNet SDK

Function: Authentication.IAuthContext

Example:

Power Commander

Command: Get-KeeperInformation

Alias: kwhoami

Example:

Python CLI

Command: whoami

Flag :

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

  • -v, --verbose : verbose output

Example:

Python SDK

Function: Not Supported

Last updated

Was this helpful?