xAI Guardrails
Add guardrails to your Grok-powered agents with DataHippo proxy.
Supported Models
Grok-2, Grok-3
Features
- Block prompt injection on Grok models
- Output screening for policy compliance
- Custom guardrail rules
- Audit logging
Setup
Point your xAI client at DataHippo:
https://flow.datahippohq.com/xai/v1/chat/completionsFive layers of protection
Every xAI request passes through all five guardrail layers before it reaches the model. Same protection. Zero code changes.
PII Detection
Emails, phone numbers, and API keys are stripped from prompts and redacted in responses. Automatic. No config needed.
Prompt Injection Detection
Known injection patterns are blocked at the gateway. Suspicious inputs are flagged for review. Your model never sees them.
Topic Blocking
Define off-limit subjects per project and per agent. Competitor names, confidential data, restricted topics. Enforced automatically.
Whitelisted Tools
Only approved functions can be called. No unauthorized API calls. No surprises. You define the boundary.
Cost Caps
Set spend limits per session, per agent, per project. Requests are rejected at the cap. No runaway costs.