2 ms·
For Mac, I use `security set-generic-password` and `security find-generic-password` to manage secrets using Keychain. Inspiration here: https://gist.github.com
by thomascountz 2y ago
For Mac, I use `security set-generic-password` and `security find-generic-password` to manage secrets using Keychain.
Inspiration here: https://gist.github.com/bmhatfield/f613c10e360b4f27033761bbee4404fd https://gist.github.com/bmhatfield/f613c10e360b4f27033761bbe...
Then you can use it like this:
export OPENAI_API_KEY=$(keychain-environment-variable OPENAI_API_KEY)
- ocodo 2y agoas a cross platform alternative, I use pass (https://www.passwordstore.org https://www.passwordstore.org) export OPEN_API_KEY=$(pass show open_api_key)