env-xray

It runs on your machine. The question is whether it runs on anyone else's.

python3 env-xray.py ~/work/their-codebase --open

See what it produces, before you buy anything

Four real reports for projects you can check yourself. Nothing was executed to produce them — the tool read the files, and that is all.

netbox2,326 files, no findings at all — a clean repository has to come back empty, or the tool is useless outlineone variable must be set before it starts, not the 77 a naive scan reports; SMTP_HOST is read but missing from .env.sample immicha workflow sets API_KEY_ISSUER_ID; fastlane reads a different name. Nothing reads what the workflow sets documensoexactly 5 variables stop the program — its 5 requireEnv() call sites, found without being told

What it answers

Why the findings are worth reading

The first run of this tool, across the four repositories above, produced 239 findings. It now produces 24. Every one of the 215 that disappeared was a false alarm traced to a specific wrong assumption.

Why environment-variable linters cry wolf — all 215, grouped by the belief that caused them, with the real code that proved each one wrong. It is the most useful thing on this page even if you never buy anything.

The reason a grep cannot do this: almost nobody writes process.env.SMTP_HOST where you can find it. outline exports withFileSecrets(process.env) and reads environment.SMTP_HOST everywhere — 14 literal reads, about 100 real ones. documenso has env(name), which returns undefined, and requireEnv(name), which throws; telling those apart is the whole difference between "must be set" and "quietly empty". immich keys a zod schema by variable name and never writes the names again.

It never runs your code

No import, no install, no build, no network, and it never reads a value off your machine. That is what makes it safe to point at a repository you were handed five minutes ago.

Get env-xray - $39

Reads Python, JavaScript/TypeScript, Go, Rust, Ruby, PHP, Java, C#, Elixir, Dart and shell; env files, compose, Dockerfiles, GitHub Actions, GitLab CI, Kubernetes, fly.toml, render.yaml, vercel.json, app.json and prisma. One file, Python 3.9+, no dependencies. One developer, every repository you work on, client work included.

More measured notes on coding agents: alexenabled.github.io