Repository navigation
PromptGuard CLI v2.5.0
PromptGuard CLI v2.5.0
Added
-
The local MCP server's
promptguard_redacttakespii_types, as the
hosted tool does. Name the PII types to redact in the REST API's
vocabulary (detector names such asemailorphone_us, the aliases
phone,ip_addressandpassport, andapi_key); omit it and the
Project's policy decides, as before. An unknown name is a tool error whose
structured content is{"kind": "error", "error": ..., "code": "unknown_pii_type"}, the hosted server's shape, and nothing is redacted or
counted. The tool's description and parameters are the hosted tool's again. -
promptguard_redactresults carryskipped. It lists the matches the
API deliberately left in the text, such as an email at a domain reserved
for documentation and testing (example.com,.test), with the reason
reserved_domain. It is[]when nothing was skipped. An API from before
the field sends none, and the tool then answers[]too, although that API
may still have left a reserved-domain email in the text.
Security
- The lockfile moves
quinn-udpto 0.5.16 (RUSTSEC-2026-0538) andrustix
to 1.1.6 (RUSTSEC-2026-0486). Neither was in the shipped binary:
quinn-udpbelongs to the HTTP client's HTTP/3 support, which the CLI does
not enable, andrustixonly to the test suite. The update keeps
cargo auditclean.
Drop-in LLM security for your applications - Built with Rust + Tree-sitter
Installation
One-line install (macOS/Linux):
curl -fsSL https://raw.githubusercontent.com/promptguardhq/promptguard-cli/main/install.sh | shManual install:
- Download the binary for your platform below
- Make it executable:
chmod +x promptguard-* - Move to PATH:
sudo mv promptguard-* /usr/local/bin/promptguard - Verify:
promptguard --version
Checksums
SHA256 checksums are provided for each binary (.sha256 files).
About PromptGuard CLI
- ✅ Real AST transformations using Tree-sitter
- ✅ TypeScript, JavaScript, Python support
- ✅ OpenAI, Anthropic, Cohere, HuggingFace providers
- ✅ Automatic backups with safe revert
- ✅ Single 5.3MB static binary
Supported Platforms
- macOS ARM64 (M1/M2/M3)
- macOS x86_64 (Intel)
- Linux x86_64
- Windows x86_64
📖 Documentation: https://docs.promptguard.co/cli
🏠 Homepage: https://promptguard.co
🐛 Issues: https://github.com/promptguardhq/promptguard-cli/issues