Your API keys, encrypted, offline, on your terms.
Let's be honest: you've probably got API keys scattered everywhere. 🫠 A few in a .env file. One or two pasted straight into a shell script you meant to clean up. Maybe one sitting in your .zshrc in plain text, right where anyone glancing at your screen (or anything that gets its hands on your dotfiles) can read it.
MicroVault fixes that with the simplest thing that could possibly work: one encrypted file, one password only you know, and a CLI that gets your keys in and out without ever leaving them lying around.
No account to create. No server to trust. No cloud sync to worry about getting breached. It's just you, your terminal, and a vault that only opens for you.
🔐 What's actually happening under the hood
- Your master password runs through PBKDF2-SHA256 with 600,000 iterations to derive an encryption key — that's deliberately expensive, so brute-forcing it isn't cheap either.
- Every key is encrypted at rest with Fernet (AES-128-CBC + HMAC-SHA256), which means the vault file isn't just unreadable without the password — it's tamper-evident too.
- Writes are atomic. If your machine crashes or loses power mid-save, you get the old file or the new file, never a corrupted mess in between.
- Every save auto-snapshots a backup, so "oops, I didn't mean to delete that" is a
restoreaway, not a disaster. - Your master password is never written anywhere. Not to disk, not to a log, not to memory longer than it has to be. If you forget it, nobody — including us — can get your keys back. That's the deal: real security means real consequences for losing the password.
✨ Why you'll actually want to use this
-
Add a key without it ever touching your screen. API key entry is a hidden prompt, same as typing a password — it never echoes, never lands in your shell history.
-
Name your services whatever you want.
openai,aws,that-weird-internal-tool, doesn't matter — there's no fixed list to fight with. -
Bulk import from an existing file. Already have a pile of keys in a text file? MicroVault's importer handles
NAME=value,NAME: value,NAME value, evenexport NAME=value— and it shows you exactly what it parsed before touching your vault. -
Pull keys straight into your shell, on demand, without ever putting a plaintext secret in your
.zshrc:eval "$(microvault env)"
One line, and every stored key becomes a real environment variable for that session — gone the moment you close the terminal.
-
Other tools can call their APIs straight from what's in MicroVault — no copy-pasting a key into a separate config file somewhere else. The catch: a lot of real tools expect a specific env var name that isn't the obvious one (WPScan wants
WPSCAN_API_TOKEN, VirusTotal's CLI wants the genuinely oddVTCLI_APIKEY,ghwantsGH_TOKEN). Thealiascommand fixes that — set the exact name a tool expects once, andmicrovault envexports it correctly from then on:> alias wpscan Export name for wpscan (suggested: WPSCAN_API_TOKEN — press Enter to accept): wpscan will now export as WPSCAN_API_TOKEN.
MicroVault recognizes a handful of common tools and suggests the right name — but
aliasalways accepts anything you type, so this works for literally any tool, known or not. -
An arrow-key menu if you don't feel like typing. Hit Enter at the prompt with nothing typed, and you get a navigable list. Prefer typing
add openaidirectly? That still works exactly the same. -
Colorful, readable output — because staring at a wall of monochrome CLI text all day is nobody's idea of a good time.
🚀 Try it
pip install microvault
microvault
That's it. First run asks you to set a master password, and you're in.
> add openai
API Key (input hidden): ••••••••••••••••••••••
Saved openai.
🔌 Using a stored key with any tool
Same four steps, every time, no matter what the tool is:
1. Store it.
> add servicename
API Key (input hidden): [paste the key]
Saved servicename.
2. If the tool expects a specific env var name, alias it. Most tools that auto-read a key from the environment have their own convention — check that tool's docs for the exact name it looks for. If you don't know it, just skip this step; the default (SERVICENAME_API_KEY) works fine for anything that lets you pass the key as a flag instead.
> alias servicename
Export name for servicename (suggested: ..., or type your own):
servicename will now export as WHATEVER_THE_TOOL_EXPECTS.
3. Load it into your shell.
eval "$(microvault env servicename)"
4. Run the tool. If it auto-reads the env var, you're done — nothing else to type. If it takes the key as a flag instead, pass it explicitly:
sometool --api-key "$WHATEVER_THE_TOOL_EXPECTS"
Worked example, using WPScan — which auto-reads WPSCAN_API_TOKEN, not the default MicroVault would generate:
# in MicroVault: add wpscan_api, then alias wpscan_api -> accept the
# suggested WPSCAN_API_TOKEN, then exit
eval "$(microvault env wpscan_api)"
wpscan --url https://your-authorized-target.com
No --api-token flag needed — WPScan finds WPSCAN_API_TOKEN in the environment on its own. Same pattern works for any tool with any env var convention; the alias is what bridges MicroVault's naming to whatever that specific tool actually expects.
📦 Storage
Everything lives at ~/.microvault/ by default. Want it somewhere else? Set MICROVAULT_HOME and it follows you there.
📄 License
Apache License 2.0 — see LICENSE.
Metadata
Release files for microvault 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| microvault-1.1.tar.gz | 20.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| microvault-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 40.6 kB
Release files / microvault-1.1.tar.gz
| Download URL | microvault-1.1.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
466fb222003932fe62c482f05135bf414a074f3e2ea781dfd3a9a0931b60c818
|
|
BLAKE2b-256 checksum How to use checksums |
648083f378677df83492d037ae2a7f9b9671cc193c3af078dd97e4f28bfdd6aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency logRelease files / microvault-1.1-py3-none-any.whl
| Download URL | microvault-1.1-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1a4d66fe9dc74951844850125f6b920df917c7899059ae5c9b5150c186b90b9
|
|
BLAKE2b-256 checksum How to use checksums |
05d51dde5efd18602f28711b97a8a3c1468826970739e8cb31cb99e556b88d36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 22, 2026.
Transparency log