A minimal, self-contained CLI vault for managing personal account secrets
Project description
Mimir
A minimal, self-contained CLI vault for your account secrets. Everything lives in a single encrypted file you can store anywhere — recover it on any machine with just your master password.
- Doomsday recovery — lose every device and still get all your accounts back from the vault file and your password.
- Daily driver — one unlock per session, short commands, readable output.
- Portable — Python 3.9+, a single
pip install, any Linux/macOS box. No daemon, no account, no cloud lock-in. - Simple & auditable — small codebase, one dependency (
cryptography). The whole vault is one AES-256-GCM blob; nothing is stored in plaintext.
How it works
The vault is a single file encrypted with AES-256-GCM. Your master password is stretched with scrypt to derive the key — namespace names, keys, and values are all inside the encrypted blob, so the file is safe to keep anywhere public (a Git repo, cloud storage, a USB stick).
Secrets are organized into namespaces (one per account/service), each holding key–value pairs. Values can be marked sensitive, in which case they are masked as *** unless you pass --reveal.
Setup
Requires Python 3.9+ on Linux or macOS. git is optional and only needed for push/pull.
pip install mimir
Or run from a checkout with uv:
uv sync
uv run mimir --help
Create your vault and set the master password (asked once, no recovery if lost):
mimir init
By default the vault lives at ~/.config/mimir/vault.mimir. Point it elsewhere if you like:
mimir config set vault ~/Dropbox/secrets/vault.mimir
Sync to a Git remote (recommended for recovery)
So you can recover from scratch, sync the vault to a Git remote — a public GitHub repo is fine, since the file is fully encrypted. Create an empty repo, then:
mimir config set remote git@github.com:you/my-vault.git
mimir config set branch main # optional, defaults to main
mimir push
Mimir uses your existing Git credentials and only ever tracks the vault file. To recover on a fresh machine, install mimir, set the same remote, and pull:
mimir config set remote git@github.com:you/my-vault.git
mimir pull
mimir show gmail --reveal
Usage
The master password is asked once per session (default idle timeout: 15 minutes), then cached so subsequent commands don't prompt. Run mimir lock to end the session immediately.
Namespaces
mimir add gmail # create a namespace
mimir list # list all namespaces
mimir show gmail # show its entries (sensitive values masked)
mimir show gmail --reveal # ...with sensitive values unmasked
mimir delete gmail # delete the namespace and all its keys
Keys
mimir set gmail email alex@example.com # non-sensitive value
mimir set gmail password 'hunter2' --sensitive # masked by default
mimir get gmail email # -> alex@example.com
mimir get gmail password # -> ***
mimir get gmail password --reveal # -> hunter2
mimir delete gmail password # delete a single key
-r / -s are short forms of --reveal / --sensitive.
Sync
mimir push # commit the vault and push to the configured remote
mimir pull # fetch the vault; refuses to overwrite a newer local copy
mimir pull --force # overwrite the local vault regardless
Session & config
mimir lock # end the session now
mimir config list # show all config values
mimir config get session-timeout
mimir config set session-timeout 0 # 0 = never time out
| Config key | Default | Description |
|---|---|---|
vault |
~/.config/mimir/vault.mimir |
Path to the vault file |
session-timeout |
900 |
Session idle timeout in seconds (0 = no timeout) |
remote |
(unset) | Git remote URL for push/pull |
branch |
main |
Branch to push to and pull from |
Config is a plain-text file at ~/.config/mimir/config and is never encrypted.
Security notes
- The master password is set once at
mimir init. There is no recovery — lose it and the vault is unreadable. - The derived key is cached for the session in
/tmp/mimir-<uid>(mode0600), never the password itself. It is removed bymimir lock, on reboot, or after the idle timeout. - AES-GCM authenticates the file: any tampering causes decryption to fail with an explicit error.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mimir_vault-0.1.0.tar.gz.
File metadata
- Download URL: mimir_vault-0.1.0.tar.gz
- Upload date:
- Size: 43.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecd96e1e181c7ed9438a68859470a8d1f956167e29a327435661a40428657689
|
|
| MD5 |
cd72acfb242903dbcafbbe57c1004369
|
|
| BLAKE2b-256 |
eb4a94ac69f25d477948be7c9552b7a3c91715038541f37194c21ab71d54b1a7
|
File details
Details for the file mimir_vault-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mimir_vault-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5af1e334c7da7d6e2d499c7d5b49935e80537aea0ac0c8e658184eb3a2d791b2
|
|
| MD5 |
73a435486d57bbcb78347809a853e7f4
|
|
| BLAKE2b-256 |
90dcebad5b09de5e0a8bae5f7853868a184bfdc8731ed220c472ff6a22502430
|