Skip to content

PromptGuard CLI v2.5.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 15:07
· 13 commits to main since this release

PromptGuard CLI v2.5.0

Added

  • The local MCP server's promptguard_redact takes pii_types, as the
    hosted tool does.
    Name the PII types to redact in the REST API's
    vocabulary (detector names such as email or phone_us, the aliases
    phone, ip_address and passport, and api_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_redact results carry skipped. 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-udp to 0.5.16 (RUSTSEC-2026-0538) and rustix
    to 1.1.6 (RUSTSEC-2026-0486).
    Neither was in the shipped binary:
    quinn-udp belongs to the HTTP client's HTTP/3 support, which the CLI does
    not enable, and rustix only to the test suite. The update keeps
    cargo audit clean.
    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 | sh

Manual install:

  1. Download the binary for your platform below
  2. Make it executable: chmod +x promptguard-*
  3. Move to PATH: sudo mv promptguard-* /usr/local/bin/promptguard
  4. 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