pw-cli
Modern CLI Password Generator with an Encrypted Local Vault
Fast, secure, local-first command-line tool for generating strong passwords, memorable passphrases, and storing credentials in an encrypted local vault.
Features
pwcli/pwcli generate/pwcli gen— strong random passwordspwcli phrase— memorable passphrases using the EFF wordlistpwcli vault— encrypted local password vaultpwcli config— flexible TOML configuration--copy— copy to clipboard with automatic clearing after 30 seconds--json— machine-readable output- Shell completion support
Quick Start
# Generate password
pwcli generate -l 20 --copy
# Short alias
pwcli gen -l 32 --no-symbols --copy
# Memorable passphrase
pwcli phrase -w 6 -C -n --copy
# Vault
pwcli vault init
pwcli vault add github
pwcli vault get github --copy
Shell Completion
pwcli --install-completion
Restart your terminal afterwards.
Security Highlights
- Passwords are generated using Python's
secretsmodule with configurable character classes - Passphrases use the EFF wordlist
--copycopies passwords to the clipboard and attempts to clear it after 30 seconds- Clipboard clearing is best-effort: if the process exits early or the terminal is closed, the clipboard may not be cleared
- Vault data is encrypted locally using Fernet encryption (AES-128-CBC + HMAC-SHA256)
- Vault keys are derived from the master password using PBKDF2 with 480,000 iterations
- Master password is never stored — only a random salt and the encrypted vault data are written to disk
- No data is ever sent over the network
Threat model: pw-cli protects your vault if the vault file is copied or leaked without the master password. It does not protect against malware, keyloggers, compromised terminals, screen recording, clipboard monitoring, or a weak master password.
For highly sensitive accounts, consider using a professionally audited password manager.
Installation from source
git clone https://github.com/fsrxc2bvv9-ctrl/pw-cli.git
cd pw-cli
# Recommended
uv pip install -e ".[dev]"
# Or with pip
pip install -e ".[dev]"
pwcli --help
Changelog
See CHANGELOG.md.
License
MIT
Metadata
Release files for pw-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pw_cli-0.1.0.tar.gz | 55.9 kB | Without provenance | Details for pw_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pw_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pw_cli-0.1.0-py3-none-any.whl |
Total release size: 111.8 kB
Release files / pw_cli-0.1.0.tar.gz
| Download URL | pw_cli-0.1.0.tar.gz |
|---|---|
| Size | 55.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96185043d824063984ac40c8f59bf6a77fe2b6dcd5dea34cf114116abd56fe5a
|
|
BLAKE2b-256 checksum How to use checksums |
4af6b25cc58dae8702da09e7dd92ec2e2ba1abafb98cd93a1d9c1c7fdb2a4ce2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / pw_cli-0.1.0-py3-none-any.whl
| Download URL | pw_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 55.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94b938e14a88196c0ea6be32e2dd6db98f290aa2d0f86a24fda03476a92542ac
|
|
BLAKE2b-256 checksum How to use checksums |
e716bdccf50b1bdded7d75932054935afaed50ccee1868985a2c7e93a3f44ad7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for pw-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.