Remix.run Logo
ekianjo an hour ago

on Linux use systemd-credentials. It already does that

bukershok 14 minutes ago | parent | next [-]

Soon it will also be for Linux

porridgeraisin 40 minutes ago | parent | prev [-]

Yes, you can even have it tpm-backed.

echo -n "sk-proj-12345..." | systemd-creds encrypt --with-key=tpm2 --name=openai_key - openai.cred

And then at runtime export OPENAI_API_KEY=$(sudo systemd-creds decrypt openai.cred)