FeaturesPricingFAQMCPSecurityAffiliatesContact

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.

Use .env files only for throwaway local values. For API keys that cost money if leaked, move them into a vault that never writes plaintext to disk.

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

DimensionPlain .env filesProphetKey
EncryptionNone — plaintextXChaCha20-Poly1305 + Argon2id
Where secrets restPlaintext file on diskEncrypted vault
Accidental-commit riskHigh (.env is often committed)Low (keys are not committed)
RotationManual, easy to forgetAutomated / leak-triggered (Prophet)
Per-tool scopingSame key copied everywherePer-tool shadow keys
AI agent safetyAgent reads the real keyAgent gets a safe_key
Leak detectionNoneYes (Leak Radar)
Offline useYesYes
SetupZeroInstall the app once
CostFreeFree + $4.99–$69.99/mo
Reality check: a leaked key in a public repo is copied by bots within minutes and is often still valid years later — the 2026 report found 64% of valid 2022 secrets were never revoked. Plaintext is a bet you only have to lose once.

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.
ProphetKey — encrypts keys on-device and injects them through a local proxy, so the plaintext never has to live in a file. → Download for Windows

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.