Skip to content

PromptGuard CLI v2.4.0

Choose a tag to compare

@github-actions github-actions released this 05 Nov 18:26
· 30 commits to main since this release

PromptGuard CLI v2.4.0

Added

  • promptguard mcp install adds PromptGuard's MCP server to every AI client
    on the machine.
    It finds Claude Code, Codex, Cursor, VS Code, Windsurf and
    Claude Desktop and adds the hosted server, https://api.promptguard.co/mcp,
    to each: through claude mcp add and codex mcp add for the first two, by
    merging one promptguard entry into the JSON config of the others, and, for
    Claude Desktop, which takes remote servers only as connectors, by printing
    the step to add one. --clients limits it to named clients, --dry-run
    shows what would change, --local installs the local stdio server instead
    and --url points at another server. It never replaces a config file: other
    entries, key order and indentation are kept, the write is atomic, the
    original is kept as <file>.bak, an entry pointing elsewhere is left alone
    without --force, and a file that is not valid JSON is reported and not
    touched. No API key is written; each client signs in to PromptGuard itself.
    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