Skip to content

PromptGuard CLI v2.1.0

Choose a tag to compare

@github-actions github-actions released this 06 Sep 11:36
· 5 commits to main since this release
f7c434a

PromptGuard CLI v2.1.0

Added

  • policy apply accepts tokenize as a pii_detection.mode. It validated
    the field against a hand-written list of redact/mask/block and rejected
    tokenize, telling you a value the API accepts is invalid. Tokenize is the
    reversible mode — the proxy tokenises on the way out and restores on the way
    back, streaming included — so the one PII mode whose effect can be undone was
    the one unreachable from policy-as-code.

    The platform had this same bug: tokenize was implemented end to end and then
    omitted from the write schema, which made a finished feature unreachable for
    every customer. This list is a third copy of that vocabulary and stays
    hand-maintained, so it now records where the source of truth is and that a new
    mode has to be added here too.
    Drop-in LLM security for your applications - Built with Rust + Tree-sitter

Installation

One-line install (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/acebot712/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/acebot712/promptguard-cli/issues