Repository navigation
PromptGuard CLI v2.1.0
PromptGuard CLI v2.1.0
Added
-
policy applyacceptstokenizeas apii_detection.mode. It validated
the field against a hand-written list ofredact/mask/blockand 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:
tokenizewas 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 | 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/acebot712/promptguard-cli/issues