Policy Enforcement

Enforce guardrails without slowing teams down

Real-time policy enforcement at the gateway level. Define organizational rules, model access controls, and compliance frameworks that automatically protect every AI interaction.

< 15ms

Policy evaluation

10K+

Rules per org

100%

Auditable decisions

How It Works

Every request evaluated against your rules.

1

Request received

User request hits the gateway with organization context, tags, and metadata.

2

Policy matching

Evaluate against org, team, and environment-specific rules with inheritance.

3

Action and audit

Allow, block, modify, or escalate. Every decision logged for compliance.

Policy Types

Eight categories of enforceable rules.

TypeScopeAction
Model AccessRole, team, environmentAllow / Block
Rate LimitingUser, team, organizationThrottle
Cost BudgetsPer-day, per-user capsBlock / Notify
Content FilteringKeywords, patterns, topicsBlock / Redact
PII Redaction14 data typesMask / Block
Approval RequiredHigh-cost, sensitive modelsEscalate
Provider FailoverCircuit breaker rulesReroute
ComplianceSOC 2, GDPR, HIPAA, PCIEnforce / Log
Policy Actions

Five enforcement actions with full audit logging.

ActionBehaviorAudit
allowRequest proceeds to LLM providerLogged
blockRequest rejected with reasonLogged + Alert
modifyContent redacted or filteredLogged
throttleRate limited per policy windowLogged
escalateRouted for human approvalLogged + Notify

What's included

Access control, compliance, and audit — built in

Every request is evaluated against your organizational policies with zero configuration overhead.

Model access by role & environment
Per-user and per-team rate limits
Cost budgets and spending controls
Content filtering & topic blocking
PII detection and redaction rules
Approval workflows for sensitive ops
Provider failover and retry logic
SOC 2 / GDPR / HIPAA / PCI support
Multi-tenant with inheritance
Real-time policy updates (zero downtime)
Environment-specific overrides
Full audit trail for compliance

Policy Definition

Define rules via API or dashboard with environment scoping.

{
  "policy_name": "dev_team_restrictions",
  "environment": "development",
  "rules": [
    {
      "type": "model_access",
      "models": ["gpt-4o-mini", "claude-3-haiku"],
      "max_cost_per_day": 100.00
    },
    {
      "type": "content_filter",
      "patterns": ["password", "api_key"],
      "action": "block"
    }
  ]
}

Audit Response

Every decision includes policy context and rationale.

{
  "decision": "block",
  "policy": "dev_team_restrictions",
  "rule": "content_filter",
  "reason": "Pattern matched: api_key",
  "user": "dev@acme.com",
  "environment": "development",
  "timestamp": "2025-01-15T10:30:00Z",
  "request_id": "req_abc123"
}

Multi-Tenant Scoping

Organization, team, and environment-level policies with inheritance and overrides.

100% Auditable

Every policy decision logged with full context, rationale, and compliance metadata.

Real-Time Updates

Policy changes apply instantly across all proxies with zero downtime or restarts.

Start enforcing your AI policies

Policy enforcement included with every plan. No extra cost.