Comparison
Scanners read the repo. The free core rewrites a request.
Use gitleaks or TruffleHog when the question is whether a credential is in git. The free core does not scan history. It rewrites a model request that is about to leave the machine.
gitleaks
gitleaks (MIT) detects secrets such as passwords, API keys, and tokens in git repositories, directories, and stdin. git scans patches from git log -p, so it sees history. dir scans files. stdin scans a stream. Install it as a binary, a Docker image, a pre-commit hook, or Gitleaks-Action. The README describes the engine as regular expressions.
Use it when a commit or a pull request should fail because a key was added. The README says the project is feature complete: new features are not being merged, future releases are security patches, and the author's focus is moving to Betterleaks. That is a maintenance fact. It is still the right tool for the scan it already does.
gitleaks does not sit between a coding agent and a model, and it does not call the service that issued a key. A finding is a pattern match. The free core is worse at this job. Its builtin list is a handful of token shapes, it does not walk git history, and it has no pre-commit hook.
TruffleHog
TruffleHog (AGPL-3.0) looks for credentials a machine uses to authenticate to another machine: API keys, database passwords, private keys. The README describes discovery across git, chats, wikis, logs, API testing platforms, object stores, filesystems, and more. It says the tool classifies over 800 secret types. This page did not count the detectors.
For a credential it can classify, TruffleHog can contact that provider and report whether the credential is active. The README's three result statuses are verified (the provider accepted it), unverified (detected, but not confirmed), and unknown (the check failed, for example because the network or the API failed). The AWS example is a GetCallerIdentity call.
That check sends the candidate credential to the provider. Run it when you already think a key leaked and you need to know whether to rotate it. Do not run it over a prompt you are trying to keep on the machine.
TruffleHog is also the better tool for history and for sources that are not a git working tree. The README documents git, GitHub, and filesystem scans, and notes that diffs larger than 1 GB are not scanned. License is AGPL-3.0. The free core is Apache-2.0. If the license decides the choice, read both texts. This page is not legal advice.
Free core
The proxy on 127.0.0.1 replaces a secret, an IP address, or an internal hostname in a Claude Code, Codex, Cursor CLI, or Grok Build prompt with an @@sv:…@@ placeholder and restores it in the reply. Kept addresses, from the README: 127.0.0.1, 0.0.0.0, 255.255.255.255, ::1. Hostnames are masked only under internal_domains.
Piping the prompt to either scanner reports a finding. It does not rewrite the agent protocol, and it does not restore the reply. Piping it at TruffleHog's live check can also disclose the credential to the provider.
The agent's own deny rules come first. A key the agent never reads is better than a key that gets masked. See the secrets guide. A token shape only gitleaks or TruffleHog knows will pass through the proxy unless you add a [[redact.secrets]] rule. 10.8.0.14 and fw.aurora.corp are not credentials. The scanners are not built to mask them in a live request. Learned code names are not in the free core. Pro is planned, about $9 a month, and is not for sale.
Other local tools
Cover, shim-cli, and LocalGuard also sit on the path between a coding agent and a provider. Notes below are from their READMEs and sites on 20 Oct 2026. This page did not run them.
Cover
Cover is a Go proxy, Apache-2.0 (LICENSE). It replaces matches on the machine and writes the originals back into ordinary responses and streams. Rule actions in the README: allow, placeholder, pseudonymize, mask, redact, block. Built-in detectors cover AWS and GCP keys, GitHub, GitLab, Slack, Stripe, and Anthropic tokens, private-key blocks, JWTs, explicit secret assignments, emails, SSNs, credit cards, phone numbers, and IBANs. A bare OpenAI sk-... value is not one of those detectors. A match has to sit on one line.
Named clients: Codex, Claude Code, Cursor, Pi / Oh My Pi, and OpenAI- or Anthropic-compatible SDKs. The Cursor line in the README is: use the endpoint when the app exposes an API base URL, then check with cover doctor or cover monitor. Reversible mappings are memory-only, with a TTL and a capacity limit. An optional local llama.cpp model can mark names and internal codenames that the regex missed. The README calls that pass supplemental, not a release approval, and skips strings outside 8 to 2,000 bytes.
Use Cover if you want a realistic stand-in, a block action, those PII detectors, or that local model. The SymVeil free core has none of those. It stores the reverse map in .symveil/vault.json.
shim-cli
shim-cli is Python, Apache-2.0. The hook and detector add no network destination, account, or telemetry. shim install claude masks eligible tool results. shim watch -- claude is a separate proxy that forwards the bytes unchanged and reports tokens and cost. See what it cannot do.
A prompt typed into Claude Code or Codex is not rewritten. The README says neither client lets a hook rewrite it. shim reports the prompt, or stops it under enforce. GitHub Copilot CLI is the exception: the model receives the masked prompt. Codex and Copilot CLI tool traffic is not inspected. VS Code masks nothing. In Claude Code, shell commands, file writes, failed command output, and @ attachments are reported or denied, not masked. Windows is not supported. The README says WSL is not yet checked, and that detection is best-effort, not a DLP boundary.
Use shim-cli if you want the session report, or if the client is Copilot CLI. It will not mask a prompt you type into Claude Code or Codex. A base-URL proxy can, for a client that actually sends that traffic to the proxy.
LocalGuard
LocalGuard is a desktop app for macOS (Apple silicon), Windows, and Linux. The public repository holds a README and docs. It does not hold the application source. GitHub reports no license. The README says all rights reserved.
Without a subscription the app is detect-only: it shows what left and changes nothing (guide, README). A subscription turns replacement and restore on. The README prices that at EUR 5 for the first month, then EUR 49 a year. The site prices it at USD 5, then USD 49 a year. The two pages disagree. The site says scanning stays on the machine, uses patterns plus an on-device model, and does not catch everything.
Use LocalGuard if you want a menu-bar app that also looks for names, emails, and card numbers, and you will pay for redaction. The SymVeil free core redacts its builtin secrets, IPs, and configured hostnames with no subscription. It does not detect a person's name. The matcher is in the Apache-2.0 tree.