Blog.
Notes on API keys, .env files and AI coding agents, from the people who make fidelius.
How to set environment variables on a Mac
Set an environment variable for one terminal window or permanently in ~/.zshrc, which zsh file to use, why Dock apps miss it, and where API keys belong.
Codex API key: auth.json, login and where the key is stored
Sign in to Codex CLI with an OpenAI API key, what ~/.codex/auth.json holds, moving it to the macOS Keychain, and keeping keys from the commands Codex runs.
Claude Code API key: where it's stored and how to set it
Every way to give Claude Code an Anthropic API key, where each keeps it on a Mac, which wins over your subscription, and how to keep it out of your files.
fidelius vs Infisical: an Infisical alternative
fidelius vs Infisical for Mac development, self-hosting, teams and CI: pricing, offline access, MCP masking and Infisical's Agent Proxy.
Does Claude Code save passwords in settings.local.json?
We ran Claude Code's "don't ask again" with fake keys. What it saved for a password, a bearer token, a variable and accio, and how to check your own repos.
fidelius vs Doppler: a Doppler alternative
fidelius vs Doppler for solo Mac development, team secrets and CI: pricing, offline access, AI agent support and where your keys are stored.
Is dotenvx encryption enough to keep secrets from AI agents?
What dotenvx encryption protects against AI coding agents, how its key custody and redaction work, and how it compares with keeping keys out of the project.
Is iCloud Keychain safe for storing API keys?
What Apple's end-to-end encryption covers, which keychain items actually sync, and the risk that matters more for developers: programs running as you.
How to hide API keys from AI agents in terminal output
Output masking replaces secret values before an agent sees them. Which tools do it, how it works, what it catches, and the cases it can't catch by design.
Does Cursor read your .env files?
Cursor's Agent can read .env files: the default ignore list only covers indexing, and .cursorignore misses the terminal and MCP tools. What to do instead.
envchain alternatives for the macOS Keychain in 2026
envchain has had one release since 2016. Compare it with envchain-xtra, kcv, fidelius and 1Password CLI on commands, Keychain storage, sync and agent support.
Where to store API keys on a Mac
Five places to keep API keys on a Mac, what each one exposes, and why keys added with the security command don't sync to your other Macs.
A dotenv alternative: drop the .env file
Keep reading process.env, drop the plain-text .env file. Why .env files became a problem with AI agents, when they're still fine, and how to move off them.
fidelius vs 1Password CLI for developer secrets
fidelius and 1Password CLI compared for developer keys: project setup, sync, platforms, pricing, AI agent support and the limits of output masking.
The best secrets managers for Mac developers in 2026
12 Mac tools for developer API keys, compared on storage, sync, how keys reach your commands, AI agent support and price, from each vendor's own pages.
Can Claude Code read your .env file?
Yes, and it doesn't need to ask. What deny rules block, what they miss, why .claudeignore does nothing, and how to keep keys out of the file altogether.
Keep secrets from Claude Code, Codex and Gemini CLI
What Claude Code, Codex and Gemini CLI read by default, from .env files to inherited environment variables, what to change in each, and one setup for all three.
Where should MCP server API keys live?
Most MCP setup guides paste API keys into JSON. How Claude Code, Cursor, Claude Desktop and Codex handle server keys, and how to keep them out of config files.