Skip to main content

psamvault

A secure command-line password vault for the terminal — with a web dashboard.

Your credentials are encrypted locally before being sent to the server — the server never sees your plaintext passwords or your encryption key.

Your entries live on the server, encrypted under a key that never changes, and the key material stays on your device: the pepper is generated per machine, kept in the OS keychain, and never sent anywhere. That one design choice explains everything that is unusual about using psamvault — what a lost laptop costs you (the key, not the data), why a login password alone will not get you in on a new machine, and why a backup here means a backup of the key rather than a copy of your entries.

Full documentation: docs/README.md.

Demo

▶️ Watch CLI walkthrough

A quick walkthrough of the CLI in action.

psamvault --version     # or -V — show the installed version

Features

  • Vault credentials — site logins (username, password, notes, login URL) encrypted locally before they reach the server. Guide
  • API keys — the same sealed storage for service tokens, with service hints, notes and project grouping. Guide
  • Secure notes — encrypted free text for the secrets that are not a username/password pair. Guide
  • Search — find an entry by site, username/service or notes. Nothing is searchable but the name, the username, the service, the title and the notes; matched values are never printed, and each match names the get / ak-get / note-get command that reveals it. Guide
  • Secure password generation — secrets-based passwords with length/symbol/digit control, and an option to store the result in one step. Guide
  • Browser autofill — open the site's login page and type the saved credentials into the form, leaving the window open for 2FA. Guide
  • Web dashboard — browse and edit the whole vault in a browser, after authenticating through your existing CLI session. Guide
  • Recovery codes — eight one-time codes, each encrypting your vault key, for a forgotten login password. Guide
  • Backup & recovery — a passphrase-protected copy of the vault key, stored as a server slot and a portable kit file, with verification that proves it restores your actual vault. Runbook
  • Export & import — the other artifact: a data dump of the entries themselves, for server-side data loss, a deleted account, a migration or a handoff. Guide
  • Agent reveal guardrail — the four commands that print a secret classify their caller and refuse when the caller is a program, with capabilities and a one-shot human approval as the way through. Guide
  • Safe upgrades — upgrades through pipx or uv tool in place, without ever rebuilding the environment it is running from; pre-update snapshot of your state, stashed local changes and rollback hints. Guide
  • Typed errors — network failures, expired sessions and wrong passphrases each say what they are and what to do next, with -v for the underlying detail. Guide
  • Command groups — every root command also works under its group (psamvault auth login, psamvault vault add, psamvault ak get, …). Guide
  • Changelog — the latest version, the full history, or one specific version, plus an automatic notice after every upgrade. Guide

The documentation map — overview, guides and reference — is in docs/README.md.

Installation

pipx install psamvault

pipx installs psamvault in an isolated environment and exposes it as a global command — the recommended way to install CLI tools. After installation you can use either psamvault or the shorter pv alias.

Windows, macOS, Linux — plus the pip/uv and source paths, the one-time browser-autofill setup, first-run configuration, where state lives, upgrading and uninstall — are all in docs/installation.md.

Quick start

psamvault configure                    # once per machine — generates this device's pepper
psamvault signup                       # create an account (it offers a vault backup before it finishes)
psamvault add github.com --user me@example.com
psamvault get github.com
psamvault backup create                # do this while you still have the machine

psamvault login replaces signup on a machine where the account already exists, and psamvault restore replaces it on a machine that has nothing but a backup passphrase.

The full first-run walkthrough — the pepper prompt, the password rules, and what configure writes where — is in docs/installation.md.

Every command, every flag, and — importantly — when to run each one: docs/reference/commands.md.

Security

  • Your login password is never stored or transmitted in plaintext
  • The server stores only encrypted blobs — it cannot decrypt your vault
  • AES-256-GCM for all encryption (authenticated — detects tampering); PBKDF2-HMAC-SHA256 with 600,000 iterations for key derivation; Argon2id server-side for recovery codes and backup passphrases
  • Backup kit files hold key material only — never the pepper, the passphrase, entry plaintext or ciphertext — and are written owner-only
  • A backup protects against losing a machine, not against a compromised one, and rotating a backup passphrase does not disarm a kit file that was already copied — a kit is not a data backup either
  • The reveal guardrail is a guardrail, not a boundary: an agent with your shell and your keychain can read the credential anyway. The real boundary is running the agent as a different OS user
  • Your VEK is stored locally only during an active session, and restore is proof-checked — it decrypts one of your real entries and reports honestly if it cannot
  • Server-side sessions — the dashboard keeps your VEK and tokens on the filesystem, never in the browser cookie, which holds a random session ID only

The threat model, the key-material table, the guardrail's measured limits and the known limitations of rotation are documented in SECURITY.md. The file-by-file and variable-by-variable detail is in docs/reference/configuration.md.

Documentation

Page What it covers
docs/overview.md What psamvault is, how the client-side encryption model works, and what the server can and cannot see
docs/installation.md Install on Windows, macOS or Linux; first-run setup; where state lives; upgrading and uninstall
docs/features.md The feature map — what each capability is, and when you reach for it
docs/guides/backup-and-recovery.md The runbook for a new machine or a wiped laptop, and the failure modes
docs/guides/agent-reveal-guardrail.md Who may print a secret, the three policy modes, and the measured limits
docs/guides/upgrading.md The registry (pipx / uv tool) and source upgrade tracks, state snapshots, stashing and rollback
docs/guides/web-dashboard.md The dashboard: features, login flow and how it interacts with the keychain
docs/reference/commands.md Every command and subcommand, with flags, examples and when to run it
docs/reference/configuration.md Every file, path and environment variable

The pages are grouped the way you would use them: Introduction (what it is, how to install it, what it does), Guides (the runbooks — backup and recovery first), and Reference (every command, every file). The index is docs/README.md.

What psamvault is not

  • Not a boundary against a compromised machine. The reveal guardrail is a guardrail, not a boundary, and a backup protects against losing a machine, not against a compromised one.
  • Not true key revocation. Rotating a backup passphrase revokes the server-side copy, but the vault key itself never changes — a kit file you already copied still holds key material that works.
  • Not a data backup. A kit file restores access to data that still lives on the server; psamvault export is the artifact that carries the entries.
  • Not a single point of failure, by design. Recovery codes and a vault backup are independent paths back in — set up both.
  • Not a way to recover a deleted account. If uninstall deleted the account, the entries are gone from the server; an export dump is what rebuilds them.

Requirements

  • Python 3.11 or higher
  • pipx — the recommended installer
  • An OS keychain psamvault can write to — Windows Credential Manager, macOS Keychain or Linux Secret Service
  • The Chromium browser binary if you want browser autofill (a one-time step covered in the installation page)

Contributing

Contributions are welcome. CONTRIBUTING.md covers local setup, the branch and commit conventions, and how to submit a change. Please report security issues privately through GitHub Security Advisories rather than in a public issue — see SECURITY.md.

Licence

MIT — see LICENSE.


psamvault — your vault, your keys, your control.

Metadata

Release files for psamvault 0.7.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 psamvault 0.7.3
File Size Uploaded Provenance Actions
psamvault-0.7.3.tar.gz 6.9 MB Without provenance Details for psamvault-0.7.3.tar.gz

Built distribution (wheel)

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

Total release size: 13.9 MB

Release files / psamvault-0.7.3.tar.gz

Download URL psamvault-0.7.3.tar.gz
Size 6.9 MB
Tags Source
SHA-256 checksum
How to use checksums
b68957f32aa715e6bcacc129a9757f00a17b48a85c66ac292af557ae74783f95
BLAKE2b-256 checksum
How to use checksums
e998b8a9423351cd6bd085b694f4e9fb5b78a739faa4c161c9a917a69d52e7ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / psamvault-0.7.3-py3-none-any.whl

Download URL psamvault-0.7.3-py3-none-any.whl
Size 7.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c3d8883f573f7654fc7ad3984b035bfd1b06373861036cf1df8d3742d058cebb
BLAKE2b-256 checksum
How to use checksums
3b7c4a6a2a9e227ab0576d11d235d13c05a87379b9096ca97f0ea414dabac472
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Security for psamvault 0.7.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