Skip to main content

Password Manager CLI

Project description

OniLock - Secure Password Manager CLI

OniLock is a command-line password manager that allows you to securely store, retrieve, and manage your passwords with ease. Designed for simplicity and security, OniLock offers encryption and clipboard integration to keep your credentials safe.

📖 Introduction

Most password managers focus on graphical interfaces, leaving terminal enthusiasts behind. Onilock changes that by offering a sleek, terminal-based user experience paired with a comprehensive set of command-line options.

It’s designed for those working without a graphical interface, users who need quick password access over SSH, or anyone who simply prefers the command line over traditional GUI tools.

With full support for command-line arguments, Onilock empowers users to create custom aliases and streamline password management to fit their unique workflows.

🚀 Features

  • Initialize a secure profile using onilock init
  • Store new accounts with onilock new
  • List stored accounts using onilock list
  • Copy passwords to clipboard securely with onilock copy
  • Remove accounts using onilock remove
  • Generate strong passwords with onilock generate
  • Shell completion support for faster command-line usage

🛠 Installation

OniLock is best installed using pipx to keep it isolated:

  1. Install pipx
sudo apt install pipx
  1. Install OniLock systemwide

N.B. Make sure you don't have any active virtual environments before executing this command.

pipx install onilock

⚠️ Issues

If you encounter any issues with the init command, make sure the following dependancies are setup in your system:

  1. Ensure dbus and a keyring backend are installed. If not, run the following command
sudo apt install gnome-keyring dbus-x11
  1. Start the key-ring daemon
eval $(dbus-launch --sh-syntax)
export $(gnome-keyring-daemon --start)

📌 Usage

Once installed, you can use onilock directly from your terminal:

onilock --help

🔹 Initialize OniLock

Before using OniLock, initialize your profile:

onilock init

🔹 Add a New Account

onilock new

You will be prompted to enter the account name, username, and password.

🔹 List Stored Accounts

onilock list

Displays all saved accounts.

🔹 Copy a Password to Clipboard

onilock copy <account_name>

This copies the password to your clipboard securely.

🔹 Remove an Account

onilock remove <account_name>

Deletes the stored credentials.

🔹 Generate a Secure Password

onilock generate

Creates a strong random password.

🔒 Security

  • OniLock encrypts stored passwords and prevents direct file access.
  • Uses the system keyring for secure storage (if available).
  • Passwords copied to the clipboard are automatically cleared after a short period.

🖥️ Shell Autocompletion

Enable shell autocompletion for easier usage:

onilock --install-completion

📜 License

OniLock is open-source and licensed under the Apache 2.0 License.

🤝 Contributing

Contributions are welcome! Feel free to submit issues and pull requests.

📝 Changelog

v1.5.4

  • Update version command
  • Ignore case for delete and copy commands
  • Detect file corruption and manipulation using checksums

v1.5.0

  • Rename shadow to vault
  • Clear clipboard after 25 seconds if it still contains the password.
  • Encrypt json files using PGP key instead of storing them as raw json file.
  • Detect file corruption and manipulation using checksums

v1.4.0

  • Publish the project under the Apache 2.0 license
  • Multiple refactoring
  • Big upgrade to README.md file.

View full changelog history on CHANGELOG.md file.

📧 Contact

Author: Mouad Kommir
Email: mouadkommir@gmail.com

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

onilock-1.5.5.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

onilock-1.5.5-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file onilock-1.5.5.tar.gz.

File metadata

  • Download URL: onilock-1.5.5.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for onilock-1.5.5.tar.gz
Algorithm Hash digest
SHA256 3bf6bf38dad5207f8033ab7e569d41c0cab651de5304491f4c008e1efe6c0205
MD5 5f2ca9a2b8f175bfd4ac308e3c6ded69
BLAKE2b-256 1d89d3838b43f4437614d33d3f770d9b32e2b336afe83d122cbd3a18d5dd6a6a

See more details on using hashes here.

File details

Details for the file onilock-1.5.5-py3-none-any.whl.

File metadata

  • Download URL: onilock-1.5.5-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for onilock-1.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 09d49953472ee1f3821d89e5ac5cff44e34543eeb942ae0fb0f0a6fe75c56504
MD5 b108c0b33b596d1a04340abc82d9a1df
BLAKE2b-256 0bce10d407501f84491c214192748987bdc0b1ae68dc7babf8edc0525db046de

See more details on using hashes here.

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