James Washington
writing about archive utils free game ideas replays
Technique

One Keychain item for all shell secrets (base64 or bust)

Keep every API key in one locked vault instead of in shell config files, without slowing down new terminals.

built Aug 2026 The server in the closet

how it works

Store base64 of NAME=VALUE lines in a single Keychain item (one ~32ms read vs ~1.3s for 41 items); base64 is load-bearing because `security -w` silently switches to hex when data has newlines, which also fools naive round-trip checks.

Technique: A pattern or hard-won lesson, written down so it isn't learned twice.

The code for this one lives in a private repo. This page explains the idea so you can build your own.

keychainmacossecretsshelltechnique

related

  • Headless shells need 0600 token files Technique Remote terminal sessions can't open the Mac's password vault, so they need separate locked-down token files.
  • devenv-* Keychain secret helpers Command-line tool One locked vault for all ~41 API keys, with commands to add or read a secret without it appearing on screen.
  • OrbStack container gotchas on a Mac server Technique Hard-won traps running ~30 containers on a Mac.
  • Base64 Encoder/Decoder Browser tool Encode and decode Base64 text and files.
  • seed-headless-tokens Command-line tool Sets up the login tokens that remote terminal sessions need, entered hidden at the console.
← everything I've built
© 2026 James Washington
github twitter rss