Skip to main content

🦊 FoxKey — Secure TOTP Manager

Minimalist, secure terminal 2FA client with strong defaults and zero footguns.

More about me / other projects: abhrankan.netlify.app

Features

  • Encrypted vault (Argon2id + ChaCha20-Poly1305)
  • Plaintext label index (list without password)
  • otpauth:// URI support
  • Clipboard auto-clear + live countdown
  • Export / Import encrypted backups
  • Change master password
  • BusyBox-style single script

Installation

From PyPI

pip install foxkey

Single binary (recommended)

pip install pyinstaller
pyinstaller --onefile --name foxkey foxkey.py
# Move dist/foxkey to ~/bin or /usr/local/bin

Development

git clone https://github.com/foxhackerzdevs/foxkey.git && cd foxkey
pip install -e .

Usage

foxkey add github                          # prompts for the secret (recommended)
foxkey add github otpauth://totp/...       # also accepted, but exposes the secret
                                            # in shell history and `ps` -- scripting only
foxkey list
foxkey get github
foxkey export --file backup.enc
foxkey import backup.enc
foxkey change-password

Security Notes

  • Master password never touches CLI args
  • The service secret (add's second argument) is optional and prompted via getpass when omitted — same reasoning as the master password: passing it directly leaks it into shell history and ps. The positional form still works for scripted use.
  • import always re-encrypts the vault under its current live master password, even when restoring a backup that was encrypted under a different (e.g. older) password. Importing an old backup can never silently change your master password to match it.
  • Vault refuses weak operations
  • The vault's label list is authenticated together with the encrypted data (since 0.2.2), so editing the file without the master password makes it fail to open. Vaults saved by 0.2.2 or later cannot be opened by older versions. Older vaults still open, and are upgraded the next time the vault is saved (add, remove, change-password, import); until then their label list is not authenticated.
  • Clipboard cleared after token lifetime

Metadata

Release files for foxkey 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foxkey 0.2.3
File Size Uploaded Provenance Actions
foxkey-0.2.3.tar.gz 13.4 kB Without provenance Details for foxkey-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for foxkey 0.2.3
File Interpreter ABI Platform Actions
foxkey-0.2.3-py3-none-any.whl Python 3 none any Details for foxkey-0.2.3-py3-none-any.whl

Total release size: 23.9 kB

Release files / foxkey-0.2.3.tar.gz

Download URL foxkey-0.2.3.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b72e6f4525a00f0986848319f4adf184993cf360eeb99a64cba6870f4014483e
BLAKE2b-256 checksum
How to use checksums
0ba0eddaae6e34a00dccfb92eb650ec44da61c69a7a48828402d3ad189558145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / foxkey-0.2.3-py3-none-any.whl

Download URL foxkey-0.2.3-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9335468282f87384e854f70b8e78e9db261a325c9e52edc8d2921b75f3fd4b5
BLAKE2b-256 checksum
How to use checksums
cbae8f49d6ecb1f7fe1a64220d9bc61e66a458b3f5fdf10e85e62ac6db66ab80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for foxkey 0.2.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page