A vault that knows what a .p8 is.
Drop in a .p8, a keystore or a .env file. Keys knows what it is, when it expires and which env var it goes in.
End-to-end encrypted, on your own Cloudflare account.
Self-host · CLI · Security · FAQ
A demo vault. Click to see it full size.
Keys is a personal project, shared as is. Use it at your own risk. No support is promised.
- Kinds: 23 of them, from API tokens and logins to Apple
.p8keys, Android keystores, SSH and GPG keys, TLS certificates and service accounts. Each gets the right fields. - Providers: 54, from Stripe to Cloudflare. Keys knows their usual env var names and where to rotate most keys.
- Expiry: read from certificates, keystores, SSH certificates, GPG keys and JWTs. Expiring soon lists what runs out in the next 30 days by default.
- Env names: each value knows its variable. Copy a
.envfor a tag and environment, or run a command with them set. - Import: drop files or a folder. Keys works out what each one is, in your browser.
Import reads what each file is. ⌘K finds anything.
Drop a folder. Keys sorts it, tags it and reads the expiry.
- Your browser encrypts everything with age before it leaves. The Worker and R2 only ever hold ciphertext.
- Unlock with a passkey, or with the recovery key you save when you set up. The Mac CLI unlocks with Touch ID through the Secure Enclave.
- Every save is a new object. Nothing is overwritten, so history and undo keep working and two saves at once can't lose data.
- Cloudflare Access sits in front, so nobody else reaches the app at all.
- No third-party requests. Fonts and icons are bundled, and the CSP allows only your own domain.
- You trust the code your Worker serves. Anyone who can change your Worker, your GitHub repo or your Cloudflare account could read your vault the next time you unlock.
- It can't protect you from a compromised browser or Mac while the vault is unlocked. Details: docs/security-model.md.
- A Cloudflare account with a domain.
- Cloudflare Zero Trust for Access (free for up to 50 users).
- A browser whose passkeys support PRF: macOS 15 or later, or Chrome 132 or later.
- The CLI needs macOS and Node.
- Deploy. Click Deploy to Cloudflare. It copies the repo to your GitHub and creates the Worker and an R2 bucket.
- Put Access in front. Give the Worker your domain and add a Cloudflare Access application for it. Then copy the team domain and the application's AUD into the Worker's settings. Without them the Worker refuses every request.
- Make your vault. Open your domain, make a passkey and save your recovery key.
Step by step: docs/self-host.md.
macOS only, for now. It never prints a value unless you ask for that field or run keys env. It needs an Access service token (see docs/self-host.md).
curl -fsSL https://github.com/jatindotdev/keys/releases/download/cli-latest/install.sh | sh
keys login --url https://keys.example.com$ keys show stripe
Stripe secret key
id q8m2k4v1x9t0c7h3n5b6r2w4za
kind API key or token (token)
tags Lantern
environment production
expiry none
notes none
Fields
value Token set secret STRIPE_SECRET_KEY (own)
login Login empty
host Host empty
Files
none
$ keys env-name stripe value STRIPE_API_KEY
Stripe secret key's Token now goes in STRIPE_API_KEY.
$ keys run --tag Lantern --env production -- npm startInside Claude Code or Codex (or with KEYS_AGENT=1) it won't print secret values. It can still copy them, write them to a file or pass them to a command. That guards against mistakes, not a hostile agent: its limits. Every command: keys --help.
The CLI: keys update. With gh signed in, it checks the release's build attestations first. To build it yourself: docs/self-host.md. The web app: bring the new release into your copy of the repo, and Cloudflare deploys it (see docs/self-host.md).
keys logout removes the CLI's files on this Mac. Remove its unlock slot in Settings, then delete ~/.local/share/keys-cli and ~/.local/bin/keys.
The vault is encrypted either way, but Access keeps everyone else from even loading the page or the ciphertext. Built-in sign-in, with Access optional, comes next.
Encrypted files in R2, their sizes and when they change, and the requests your Worker serves. Never a name, a value or a file's contents. Access logs your email and IP when you sign in. R2's file names show how many unlock slots, files and vault versions exist.
You trust the code your Worker serves. Anyone who can change your Worker, your GitHub repo or your Cloudflare account could read your vault the next time you unlock.
Unlock with your recovery key, then add a new passkey in Settings. If you lose every passkey and the recovery key, the vault can't be opened. Nobody can reset it.
Found a problem? Report it privately: SECURITY.md.
None is promised. Issues are welcome, and may not get an answer.
MIT. A personal project by Jatin Kumar.