Skip to main content
New to RAXE? Start with the Quickstart and learn how detection works.

Installation

Basic Usage

Drop-In Replacement

Replace Anthropic() with RaxeAnthropic() — one line change

Automatic Scanning

Every message scanned before reaching the model

Zero Latency Impact

Sub-millisecond L1 scanning adds negligible overhead
basic.py

How It Works

  1. User sends request through RaxeAnthropic
  2. RAXE scans the prompt before calling Anthropic
  3. If threat detected → RaxeBlockedError raised
  4. If safe → Request forwarded to Anthropic
  5. 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

What’s Next

Production Checklist

Deploy RAXE safely to production

Async SDK

High-throughput scanning with async support