Python
Quickstart
Get protected in 5 minutes
API Reference
REST API with interactive playground
MCP Server
Connect to Cursor, Claude, VS Code
How it works
Three ways to integrate:| Method | Code | Best for |
|---|---|---|
| Auto-instrumentation | promptguard.init() | Most apps — patches SDK calls automatically |
| Guard API | POST /api/v1/guard | Custom workflows, framework callbacks |
| HTTP Proxy | Change base_url | Drop-in, no SDK needed |
What we detect
Prompt Injection and Jailbreaks
ML ensemble plus LLM-powered analysis across 7 attack categories, including multi-turn escalation.
PII and Secrets
39+ entity types with checksum validation. API keys, tokens, and credentials with entropy analysis.
Content Safety
Toxicity, multi-turn intent drift, streaming output guardrails, and MCP tool security.
AI Agent Traps
21 attack vectors from DeepMind’s framework: steganography, RAG poisoning, sub-agent spawning, and more.