I was about to reset my Mac and realised my API keys and .env files were
scattered everywhere. So I built Lockshelf:
one place for them, encrypted on my own machine, that works on both my Mac and Linux.
No account, no server, no subscription. It's free and open source.

On a Mac (macOS 14 or later), you get the menu bar app and the lockshelf command:
brew install --cask yogeshvar/tap/lockshelf
It isn't notarized by Apple, so macOS blocks the first launch. Open it once, then click Open Anyway in System Settings → Privacy & Security.
On Linux, you get the command:
brew install yogeshvar/tap/lockshelf-cli gh
No Homebrew on Linux? The README has another way.
gh auth login && gh auth setup-git
lockshelf init first machine
lockshelf join you/lockshelf-store every other machine
Setup gives you a recovery passphrase. Save it in a password manager. It's the only way in on a new machine, and nobody can reset it.
lockshelf add OPENAI_API_KEY save a secret
lockshelf copy OPENAI_API_KEY copy it to the clipboard
lockshelf run OPENAI_API_KEY -- npm start run a command with it loaded
lockshelf file ~/project/.env save a file
lockshelf restore put saved files back
lockshelf ls list what's saved