A small, standalone helper for moving away from plaintext credentials. It copies one value; it never changes your .env.
This goes with the Apple Keychain plugin for Hermes. That PR has the plugin source and setup details. This gist is a separate, optional helper.
You need macOS, Python 3.10 or newer, and Hermes with the Apple Keychain plugin enabled. Configure the plugin's Keychain target first. This helper uses the public hermes keychain set --stdin and hermes keychain doctor commands, with no Python dependencies or private Hermes imports.
Run it in your own terminal. Select the exact profile directory, so the source file and destination profile are explicit: