vs .env files
ProphetKey vs plain .env files
The .env file is the most convenient place to put an API key — and one of the most common places for one to leak. Here is what you actually trade when you keep keys in plaintext.
Why .env files leak
A .env file is plaintext: anyone who reads, screenshots, or commits it reads the key. GitGuardian counted 28.6 million new secrets in public GitHub commits in 2025, including 24,008 unique secrets in MCP config files alone. Because .env keys are copied into every tool and rarely rotated, one accidental push can expose a key that stays valid for years.
Where ProphetKey differs
ProphetKey removes the plaintext file from the equation. Keys are encrypted on your device with XChaCha20-Poly1305 and Argon2id and injected at call time through a local proxy. Each AI tool can use its own shadow key, and agents receive only a safe_key. Rotating a leaked shadow key never touches your real provider key.
Head to head
| Dimension | Plain .env files | ProphetKey |
|---|---|---|
| Encryption | None — plaintext | XChaCha20-Poly1305 + Argon2id |
| Where secrets rest | Plaintext file on disk | Encrypted vault |
| Accidental-commit risk | High (.env is often committed) | Low (keys are not committed) |
| Rotation | Manual, easy to forget | Automated / leak-triggered (Prophet) |
| Per-tool scoping | Same key copied everywhere | Per-tool shadow keys |
| AI agent safety | Agent reads the real key | Agent gets a safe_key |
| Leak detection | None | Yes (Leak Radar) |
| Offline use | Yes | Yes |
| Setup | Zero | Install the app once |
| Cost | Free | Free + $4.99–$69.99/mo |
Sources: GitGuardian · OWASP Secrets Management Cheat Sheet · Argon2 (Wikipedia)
When a plain .env file is fine
- The value is not secret (feature flags, local ports, public URLs).
- It is a throwaway key you control and can rotate instantly.
- The file is never committed and never screenshotted.
When to move to a vault
- The key costs money if abused (LLM providers, cloud APIs).
- You share the machine or the repo with others.
- You want the key to be injectable without ever touching disk in plaintext.
FAQ
Why are .env files risky for API keys?
.env files store keys in plaintext, sit next to your code, and are frequently committed by accident. GitGuardian detected 28.6M+ secrets in public GitHub commits in 2025, and .env / config files are among the most common sources.
Is it fine to keep .env files locally?
For throwaway local values, yes. For API keys that cost money or grant access, no: one accidental commit or pasted screenshot exposes them, and they are rarely rotated.
Does ProphetKey replace .env entirely?
You can keep .env for non-secret configuration. For the secrets themselves, a vault that injects keys at call time removes the plaintext file from the equation.
Is ProphetKey free to try?
Yes. The Free plan covers 5 keys with the local proxy and shadow keys — enough for personal use.