Skip to main content

KEYS - Straightforward CLI wrapper for Keeper Commander

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keeper_keys-0.2.0.tar.gz (251.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keeper_keys-0.2.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file keeper_keys-0.2.0.tar.gz.

File metadata

  • Download URL: keeper_keys-0.2.0.tar.gz
  • Upload date:
  • Size: 251.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for keeper_keys-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d243f58222b78b3a45bb3d30138201cb6cf68c7bf277df51a53b5649c56ac46a
MD5 6c8bb5e055b0e75b248f03271ba9d8c5
BLAKE2b-256 3bb5365429149a80d6f30178372ca0a46311ed61ddb50563dc0f5dd3f8c3bf3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for keeper_keys-0.2.0.tar.gz:

Publisher: workflow.yml on ilpianista/keeper-keys

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file keeper_keys-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: keeper_keys-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for keeper_keys-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29bb53a017855c36fae95b9ae637b300ba15a11f696fb4a1f811ac135033b5cb
MD5 39b150a790a11f6b97e39f4b1b10a25b
BLAKE2b-256 e96b281e5995588aced83007a6ac533da9fd940cf7f1aa67ace49d36f46674d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for keeper_keys-0.2.0-py3-none-any.whl:

Publisher: workflow.yml on ilpianista/keeper-keys

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page