π¦ ClawHub
Promptguard
by @mirni
Detect prompt injection attacks in text. Returns risk score and detected patterns.
π‘ Examples
Start the server:
uvicorn promptguard.app:app --port 8000
Then send a POST request:
curl -X POST http://localhost:8000/v1/scan \
-H "Content-Type: application/json" \
-d '{"text": "What is the weather in London today?"}'
Response (clean text):
{
"risk_score": "0",
"patterns_detected": [],
"input_length": 38
}
TERMINAL
clawhub install promptguard