Skip to main content
Open in Passport: Agents Coding agents read the same files and environment you do. passport scan lists the keys they can reach and what each key can do.
Already installed the Passport CLI? passport scan is the same command. It needs Node.js 20 or newer and no Passport account.
The CLI keys near the end are the same list passport status shows. They stay on your computer: Passport doesn’t hold keys, so your CLIs keep their own sign-ins and Passport decides each command first (Keys and passport exec). An npm token in ~/.npmrc gets its own line telling you to run npm logout when you aren’t publishing. The last line is the next step: init connects those apps through Passport so your agents don’t need the keys. When the scan finds nothing and Passport isn’t set up on your computer yet, it ends with Turn on the guard for your agents: passport init instead.

What it never does

  • Never shows a key. Output names the kind of key and where it is. No part of the value is printed or saved, not even its first characters. Signed in, --verbose and --json give each CLI key a fingerprint (fp_…) so you can tell two keys apart: a hash keyed with a secret made on your computer that never leaves it, so nobody can test a guess against it.
  • Never sends a key. Without a sign-in the scan reads files on your computer and nothing else, so nothing leaves it. Signed in to Passport, it says what it sends, then sends it: your computer’s name, each MCP server’s name and how it connects (a host, or a command like npx), and how many keys each app has on your computer, so To fix matches. Never env values, arguments, paths, fingerprints, or keys. The scan exits 5 when your workspace’s policy doesn’t allow an MCP server. --local, and --check (CI and pre-commit), send nothing.
  • Never changes anything. It only reads, and it never follows a link out of the project folder.

Where it looks

A sign-in kept in your system keychain isn’t flagged. The GitHub CLI does this by default, and so does the Stripe CLI for live keys. The scan says which ones it saw. The scan recognizes keys by each provider’s own format, or by a well-known variable name holding a real-looking value. Placeholders like your-key-here or ${STRIPE_KEY} are ignored. It prefers missing a key over flagging something that isn’t one, so a clean result means none of the keys it knows about, not none at all.

Severity

The same key found in several places is listed once. Add --verbose to see every place.

Options

Use it in CI or a pre-commit hook

The command exits 0 when it finds nothing high or medium, and 5 when it does. With --check the scan reads files only and skips the shell environment, so secrets your CI runner injects don’t fail the check.

JSON output

keys is the CLI keys found on this computer (and npm’s token), the list passport status shows; signed in, each has a fingerprint. version changes only when a field changes meaning. unreadable counts files the scan found but couldn’t read.

Next

Connect these apps in Passport so agents use them through Passport instead of holding the keys. Start with the member quickstart.