Dead configuration is configuration debt. Every API_KEY left in .env after its feature was removed is a clue for attackers AND a maintenance trap: a future refactor can accidentally re-enable a feature by reusing the same name.
The Unused Variable Detector cross-references your .env against a paste of your source (or any folder listing, config dump, or template). Each key gets a usage count, and keys that appear nowhere are listed as candidates for removal.
It understands the common ways code addresses dotenv keys — bare name, camelCase, underscore-stripped and lowercased — so a key read as process.env.API_KEY, apiKey or apikey is counted as used. A comment-ignore toggle cuts out the noise. All matching happens locally.