Policy Gateway

Your policies. Applied to every request.

Write rules for the work your organization authorizes. Policy Gateway checks requests and responses, blocks policy matches, and records which rules applied.

Three blue request paths pass through a sand-colored policy gate to an answer. A fourth request path stops at the gate.

How a request is decided

Same request, different target.

A security team may test systems the company owns. Change the target to see an example of how an Enforcing policy can distinguish authorized work from an unapproved request.

Request

Write an SQL injection test plan for our staging site. Our team owns this system.

Project · Security research

Your policy

Does the request ask to test a system without its owner’s permission?

Security testing scope · v14 · Enforcing

Decision

Allowed

The request continues to the model.

No policy matched.

Publish with control

Observe first. Enforce when you’re ready.

Monitoring

Publish a rule in Monitoring to see where it matches. Review the Decisions log and refine the rule against your workloads.

Record the match. Let the request continue.

Enforcing

Switch to Enforcing when the rule is ready. A match blocks the request or response being checked.

Record the match. Block the request.

Published versions are kept. Review a change, restore an earlier version, or apply a policy to selected projects.

v13v14 · Current

Decision records

See which policy matched.

Review the project, policy version, and outcome in the Decisions log. Records contain no prompt or response text.

Export to Splunk, Datadog, Elastic, S3, OpenTelemetry, and other supported destinations.

Example decision · selected fields
project
Security research
decision
blocked
direction
request
policy_version
14
mode
enforcing
result
matched
action
blocked

Get started

Add policies to the apps you already run.

Organization owners and admins can manage policies in the Console. Talk with us about your requirements.

  1. Write a rule

    Create a natural-language policy in the Console or through the Admin API.

  2. Choose its scope

    Apply it across your organization or to selected projects. Check requests, responses, or both.

  3. Keep your client

    Policies apply to the existing Chat Completions, Responses, and Messages endpoints. You can also select published policies with policy_ids.

FAQ

Frequently asked questions.

How do custom policies work?

Write a natural-language rule as a yes-or-no question. Apply it to your organization or selected projects, and choose whether it checks requests, responses, or both. An Enforcing policy blocks a match; a Monitoring policy records it without blocking.

Can I review a rule before enforcing it?

Yes. Publish it in Monitoring, inspect matches in Decisions, and refine it against representative workloads. Published versions are kept and can be restored.

Do I need a separate endpoint?

No. Published policies apply to the existing Chat Completions, Responses, and Messages endpoints. You can also select published policies using policy_ids in the request body.

What is stored in decision records?

Content-free metadata, including the project, policy ID and version, mode, match result, and action. Decision records do not contain prompt or response text. Supported export destinations include Splunk, Datadog, Elastic, S3, and OpenTelemetry.

How much does Policy Gateway cost?

Policy Gateway access is included with every plan, including pay as you go. Model usage is billed at the published rates. Enterprise adds tailored service-level agreements, priority customer support, regional hosting, and custom rate limits and throughput.

Do my policies replace Abliteration’s baseline policies?

No. Customer policies add rules for your organization. Abliteration’s platform policies still apply.