Skip to content

KEYS: a straightforward CLI wrapper for Keeper Commander

License

Notifications You must be signed in to change notification settings

ilpianista/keeper-keys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI - Version PyPI - Python Version

KEYS: Keeper, Exports Your Secrets

DISCLAIMER: This project is a private open source project and doesn't have any connection with Keeper Security.

A straightforward CLI wrapper for Keeper Commander that simplifies extracting secrets to setup environment variables.

keeper find-password does the same thing, except it doesn't handle SSO automatically and needs the --field parameter to work with API records.

Usage

# Set environment variable from a Keeper record
export OPENAI_API_KEY="$(keys 'OpenAI')"

# Specify a custom field
export SECRET="$(keys 'My secert record' --field 'password2')"

# Insert a new login secret
keys --insert OpenAI

# Insert a new login secret in a folder (however, the folder MUST exists)
keys --insert "Tools/OpenAI"

Installation

uv tool install .

Note: requires Keeper Commander to be installed and configured.

Default field by record type

The --field argument defaults to password for Login and Secure Note records and to API Key for API records.

SSO login

If SSO login is required, KEYS will automatically open the SSO login URL in your browser and wait till you paste the obtained login token in the terminal.

Donate

Donations via Liberapay or Bitcoin (1Ph3hFEoQaD4PK6MhL3kBNNh9FZFBfisEH) are always welcomed, thank you!

License

MIT

About

KEYS: a straightforward CLI wrapper for Keeper Commander

Topics

Resources

License

Stars

Watchers

Forks

Languages