Comparison
LLM Guard scans strings in a Python app. The free core proxies an agent.
Use LLM Guard when you are building the service that calls the model and you want several scanners in one Python API. It does not terminate Claude Code or Codex traffic. The repository is archived.
LLM Guard
LLM Guard (MIT, Protect AI) is a library of scanners for text going into a model and text coming back. Prompt scanners in the README include anonymization, banned topics, prompt injection, secrets, toxicity, token limit, and a regex scanner. Output scanners include a deanonymizer, bias, and relevance. You run them in process, in the order you pass to scan_prompt or scan_output. Quickstart.
It is the better choice for a chat application you host, when you want several of these behind one Python API:
- Secrets, via Yelp detect-secrets, with partial redaction, full redaction, or a hash. Documented types include API tokens such as AWS, Azure, GitHub, and Slack, private keys, and high-entropy strings. Secrets scanner.
- PII anonymization through Presidio, with a vault so a later deanonymize scanner can restore values. Documented entities include person names, emails, phone numbers, credit cards, IP addresses, US social security numbers, and IBANs. Anonymize.
- Prompt injection, toxicity, banned topics, language, and gibberish scanners.
The free core does not score toxicity, does not detect prompt injection, and does not anonymize a person's name. If those are the requirements, LLM Guard matches them and the free core does not.
The README says the project and its Hugging Face models are no longer under active development. GitHub marks the repository archived. Pin a release and plan to maintain it yourself, or pick a project that is still updated. Archived does not change what the current code does.
Free core
Set the agent's base URL to 127.0.0.1. The free core masks its builtin secrets, IP addresses, and internal hostnames, then restores placeholders in the response, including a streamed server-sent event. There is no Python process to insert around the agent. README.
LLM Guard does not terminate POST /v1/messages or POST /v1/responses. The quickstart is a function call around a string you already have. Putting it in front of Claude Code means writing a proxy.
This page did not run the two secret lists on one corpus. LLM Guard follows detect-secrets, which looks for high-entropy strings as well as known token shapes. SymVeil builtins are AWS access key ids, GitHub PATs (classic and fine-grained), Slack tokens, Google API keys, Stripe live secrets, PEM private keys, and quoted api_key, secret, token, and password assignments, plus any [[redact.secrets]] rule you add. A high-entropy blob that matches none of those stays in the request. detect-secrets is the wider net for that blob. The free core is the one on the agent socket that puts the original token back in the reply.
Code names and .env files
Keep .env files out of the agent's read path with the agent's own deny rules. That is the secrets guide. Neither free tool learns the code names in a firmware tree. SymVeil Pro is planned, about $9 a month, and is not for sale. LLM Guard's anonymize scanner can hide names you pass in hidden_names. That is a list you supply, not a scan of a C tree.
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.