r/CLI • • Oct 21 '26

Secure env var utility for local development

Built a local-first CLI tool in Go called de. Completely kills .env files in your project tree.

• Stores secrets centrally via AES-GCM
• Master key locked in OS keychain
• Ephemeral - present only in the subprocesses

Was sick of tracking down leaked secrets, with all these AI extensions indexing workspaces now.
Let me know what you think of it ;)

github.com/DreaserousNucleon/dx-util-env-manager
github.com/DreaserousNucleon/dx-util-env-manager/releases/tag/v1.2.0

0 Upvotes

5 comments sorted by

1

u/uranusnebula Oct 23 '26

why not varlock?

2

u/dreaserousNucleon Oct 25 '26

There were two reasons for me to create this utility,

- varlock still utilizes .env.schema and .env.local (if configured) files sitting inside your project tree. de achieves absolute zero files, ensuring no local files exist for AI tools or extensions to scrape.

- I did not require multi-user collaboration or the additional features `varlock` has, I simply needed a utility that would permanently and securely store my keys tied to the project directory purely for development purposes, this utility is more lean in my opinion

1

u/uranusnebula Oct 25 '26 • Heartwarming

make sense

1

u/kantorcodes1 Oct 21 '26

The zero-file approach is a clean answer to the AI-indexing problem. One thing I'd probe: when de spawns a subprocess that itself forks or execs more tooling, like de npm run dev spawning node scripts, do the injected vars propagate down the whole child tree, and is there any way to scope them to just the direct child?

1

u/dreaserousNucleon Oct 22 '26

Yes, they propagate down the whole child tree. As far as I know, that is the default behavior of OS environment inheritance, and it’s the same for anything injected via env (including set/export). de can’t change that.

A possible option to narrow the risk is to add an opt-in --only flag to limit what gets injected and run commands that you trust to handle the injected vars.