macOS tip: store agent secrets in Keychain instead of env files so LLMs never see them

HankYeomans · x · 2026-09-10

A practical reminder for macOS users: store secrets, tokens, and certs in Apple's Keychain instead of environment variables or .env files. Particularly useful for AI agents passing tokens around—secrets never enter the shell or get consumed by the LLM's context.

Related event: macOS Tip: Store Secrets in Keychain Instead of Env Files(2 posts)→

Original post →

More from coding & agent

coding & agent channel →