New to RAXE? Start with the Quickstart and learn how detection works.
Installation
Basic Usage
Drop-In Replacement
Replace
Anthropic() with RaxeAnthropic() — one line changeAutomatic Scanning
Every message scanned before reaching the model
Zero Latency Impact
Sub-millisecond L1 scanning adds negligible overhead
basic.py
How It Works
- User sends request through
RaxeAnthropic - RAXE scans the prompt before calling Anthropic
- If threat detected →
RaxeBlockedErrorraised - If safe → Request forwarded to Anthropic
- Response returned normally
Error Handling
error_handling.py
Configuration
config.py
Streaming Support
streaming.py
System Prompts
System prompts are also scanned:system_prompts.py
All Messages Scanned
The wrapper scans all messages in the conversation:multi_turn.py
Migration Guide
migration.py
Async Support
async.py
