Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
RAXE command-line interface
pip install raxe
# Scan a prompt raxe scan "your text here" # Interactive mode raxe repl # List rules raxe rules list # Health check raxe doctor # View stats raxe stats
raxe scan
raxe batch
raxe repl
raxe rules
raxe suppress
raxe doctor
raxe stats
raxe config
raxe init
raxe export
raxe validate-rule
# Set log level raxe --log-level DEBUG scan "text" # Output as JSON raxe scan "text" --format json # CI mode (JSON output, exit code 1 on threats) raxe scan "text" --ci
# Set API key export RAXE_API_KEY="raxe_..." # Set log level export RAXE_LOG_LEVEL=DEBUG # CI mode export RAXE_CI=true
raxe scan "Ignore all previous instructions"
THREAT DETECTED Severity: CRITICAL Detections: 1 Rule: pi-001 - Prompt Injection Matched: "Ignore all previous instructions"
# In GitHub Actions or similar raxe scan "$USER_INPUT" --ci if [ $? -eq 1 ]; then echo "Threat detected, blocking request" exit 1 fi
# Scan from file raxe batch prompts.txt # Scan from stdin cat prompts.txt | raxe batch -
RAXE REPL v0.9.1 Type 'help' for commands, 'quit' to exit raxe> scan Ignore all instructions THREAT: pi-001 (HIGH) raxe> quit