Skip to main content
Plugins transform the request, the response, or stored traces as the AI Gateway handles a call. This sets plugins apart from Guardrails, which only observe and block. Attach a plugin per request through the plugins array, or turn it on for the whole workspace under Settings > Plugins so it applies without a plugins array on each call. Each plugin is identified by an id discriminator.

PII Redaction

Replace personally identifiable information with placeholders before the provider sees it, then restore the original values in the response.

Response Healing

Repair malformed JSON in model output, such as markdown code fences, trailing commas, and missing brackets.

Trace Scrubbing

Mask selected fields in stored traces, without changing the live request, the response, or the payload the provider receives.

Supported endpoints

The plugins array is accepted on the following AI Gateway endpoints: