Real-Time Guardrails — Intercept Before Delivery

Stop AI Compliance
Violations Before They Happen

Block PII, forbidden keywords, and policy violations in real-time. Drop-in SDK for LangChain, CrewAI, AutoGPT, OpenAI, and custom agents. One line to guard every output.

60s Setup pip install agentaudit-client && python -c "import agentaudit; print('Ready')"
<50ms
Target Latency
6
Rule Types
3
Compliance Packs
Audit-Ready
Compliance
guardrail-demo
$ pip install agentaudit-client
Installed agentaudit v1.0.0
$ python -c "
import agentaudit
audit = agentaudit.AgentAudit(api_key="aa_live_...")
result = audit.guardrail(
    action="prompt_submitted",
    prompt="User: My SSN is 123-45-6789",
    response="Here is your account info..."
)
$ "
✗ BLOCKED PII detected in response
Violations: ['CRITICAL_pii_detect_SSN']
Output was intercepted. Alert sent. Agent halted.
Live Demo

Try the guardrail — no signup required

Paste agent output below. Our client-side simulator runs the same PII and keyword checks as the real API.

Try an example:

Results will appear here

Clean — no violations Flagged — warning, review required Blocked — critical violation, output halted

Works with your stack

Features

Everything you need for
agent compliance

Built for teams that take AI governance seriously

Agent-to-Agent Audit Trails

Trace every step in multi-agent workflows. Track CrewAI crews, LangChain chains, AutoGPT agents, and OpenAI calls with distributed trace IDs and parent-child span linking.

Learn more →

Real-Time Guardrails

Intercept agent outputs before they reach users. Block PII, forbidden keywords, and policy violations in milliseconds. Not just log them after the fact.

Learn more →

Instant Blocking + Alerts

When a violation is detected, the output is stopped in its tracks. Email or webhook notifications sent instantly — no surprises at audit time.

Learn more →

One-Click Reports

Generate audit-ready CSV or JSON reports for any date range. Export logs with full metadata and compliance flags.

Learn more →

Enterprise Security

PostgreSQL-backed with row-level isolation, encrypted at rest, and full audit trails. Ready for compliance frameworks.

Learn more →

MCP Compatible

REST API schema aligned with MCP tool-call payloads. Route agent events to AgentAudit without reformatting — works with any MCP-compatible agent.

Learn more →
5-Minute Setup

Drop-in integration for
real-time guardrails

One line of code. Automatic interception. Block violations before they reach users.

agent.py
import agentaudit

# Initialize with your API key
audit = agentaudit.AgentAudit(api_key="aa_live_...")

# Guardrail: intercept and block violations before delivery
result = audit.guardrail(
  action="prompt_submitted",
  prompt="User: My SSN is 123-45-6789",
  response="Here is your account info..."
)

if not result.allowed:
  raise ValueError("Output blocked: " + ", ".join(result.violations))

# Violations blocked. Clean output delivered to user.
import { AgentAudit } from 'agentaudit-client';

// Initialize with your API key
const audit = new AgentAudit({
  apiKey: 'aa_live_...'
});

// Guardrail: intercept and block violations before delivery
const result = await audit.guardrail({
  action: 'prompt_submitted',
  prompt: 'User: My SSN is 123-45-6789',
  response: 'Here is your account info...'
});

if (!result.allowed) {
  throw new Error('Output blocked: ' + result.violations.join(', '));
}

// Violations blocked. Clean output delivered to user.
curl -X POST https://agentaudit-api-production.up.railway.app/api/v1/audit-logs \
  -H "X-API-Key: aa_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "action": "prompt_submitted",
    "prompt": "User: My SSN is 123-45-6789",
    "response": "Here is your account info...",
    "checkType": "realtime"
  }'

# Response: {"id": "...", "complianceFlags": ["CRITICAL_pii_detect_SSN"]}
# Your code checks complianceFlags and blocks before delivery.
Zero-Config Integrations

Drop-in SDKs for every stack

One line of code. No refactoring. Works with whatever framework you already use.

from agentaudit import AgentAuditCallbackHandler
from langchain_openai import ChatOpenAI

# One callback guards every LangChain call
llm = ChatOpenAI(model="gpt-4o", callbacks=[AgentAuditCallbackHandler(
    api_key="aa_your_key_here",
    agent_id="uuid-of-your-agent",
    guard=True
)])
llm.invoke("What is the weather?")
# Automatically logged + guarded
from crewai import Crew, Agent, Task
from agentaudit_crewai import AgentAuditObserver

# One line to audit entire crew execution
observer = AgentAuditObserver(
    api_key="aa_your_key_here",
    crew_name="Research Crew",
    guard=True  # Block violations automatically
)

crew = Crew(
    agents=[researcher, writer],
    tasks=[task1, task2],
    callbacks=[observer]
)
crew.kickoff()
# Every task traced, violations blocked
from agentaudit import AgentAuditAutoGPT, ComplianceViolationAutoGPT

# One decorator guards your entire agent
@AgentAuditAutoGPT.guard(api_key="aa_your_key_here", agent_name="MyAutoGPT")
def run_agent(task: str) -> str:
    return agent.run(task)

try:
    result = run_agent("Research topic X")
except ComplianceViolationAutoGPT as e:
    print(f"Blocked: {e.violations}")
# Automatically traced + guarded
from agentaudit import AgentAuditOpenAI

# One wrapper guards every OpenAI call
client = AgentAuditOpenAI(
    openai_api_key="sk-...",
    api_key="aa_your_key_here",
    agent_id="uuid-of-your-agent",
    guard=True  # Block violations automatically
)

response = client.chat_completions_create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)
# Every call traced, violations blocked
Copy. Paste. Done. Zero configuration required.
Pricing

Simple, usage-based pricing

Start free. Scale as your agents grow. No seat-based pricing.

Free

$0/mo
For solo developers
  • 5,000 audit logs / month
  • Up to 3 agents
  • 7-day retention Coming soon
  • Basic compliance rules
  • Email support

Business

$79/mo
For compliance-driven orgs
  • 250,000 audit logs / month
  • Unlimited agents
  • 7-year retention Coming soon
  • Advanced analytics Coming soon
  • Priority support
  • Custom integrations

Enterprise

Custom
For regulated industries
  • Unlimited everything
  • Custom SLA
  • On-premise deployment
  • Dedicated engineer
  • Annual contracts
One-Click Compliance

Pre-built rule packs

No configuration required. Pick your industry, click activate, done.

Healthcare (HIPAA)

SSN PHI Medical IDs HIPAA keywords

Detects patient identifiers, medical record numbers, and HIPAA-sensitive terms.

Activate Pack

Finance (SOX/PCI)

Credit cards Bank accounts Insider trading SOX keywords

Flags payment data, account numbers, and financial compliance violations.

Activate Pack

AI Safety & Content Moderation

Toxicity Bias detection PII leaks Prompt injection

Flags harmful outputs, jailbreak attempts, and model-exploitation patterns in real-time.

Activate Pack

Data Protection (GDPR/CCPA)

Emails Phone numbers Addresses GDPR keywords

Protects PII and flags data privacy policy violations automatically.

Activate Pack

Block violations before they reach users

Start guarding every agent output in under 60 seconds. Free for side projects.