Skip to content

PromptGuard CLI v2.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 15 Nov 20:11

PromptGuard CLI v2.6.0

Added

  • scan --json and the MCP promptguard_scan_project tool report
    has_api_key_header for each SDK instance
    : whether the call sets the
    X-API-Key header, the only place the proxy reads your PromptGuard key
    from. It is read from the call's literal headers, so a comment or value
    that mentions the name does not count, and it is null when the headers
    come from a variable, a splat or a spread the scan cannot see.
    has_base_url alone could not tell a client that works through the proxy
    from one that points at it and gets 401; the VS Code extension uses both to
    say which calls are protected.
    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