Guide

How to store .env secrets in the macOS Keychain instead of plain files

A `.env.production` on disk is readable by every program you run, swept into backups and one `git add .` away from a leak. Your Mac already has an encrypted place for secrets.

By Anmol Sethi · Updated

01

Why not plain files

02

Save a secret

03

Read it back

04

Use it when you run your app

05

Where this gets painful

06

The one-click way: Dotvane

Try Dotvane free for 7 days. Every feature, no account.

Download for Mac

Still have a question?

Write to the developer. Every email gets a reply.

[email protected]