

# Third-party guardrail providers

In addition to [Amazon Bedrock Guardrails](https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html), Policy in AgentCore can call a third-party guardrail provider during policy evaluation. You keep your account and configuration with the provider, store your provider API key in AgentCore Identity, and register the provider on your policy engine. Your policies then call the provider’s checks in a `when guardrails` condition, the same way they call `BedrockGuardrails` checks.

With third-party guardrail providers, you can bring the guardrail provider that your organization already uses to your agents, and use its detections and profiles alongside Amazon Bedrock Guardrails in the same policy engine.

**Topics**
+ [Supported providers](#policy-3p-supported-providers)
+ [How it works](#policy-3p-how-it-works)
+ [Failure behavior](#policy-3p-fail-closed)
+ [Streamed responses and request masking](#policy-3p-streaming)
+ [Regional availability](#policy-3p-regional-availability)
+ [Register a third-party guardrail provider](policy-third-party-guardrails-setup.md)
+ [Write policies with third-party checks](policy-third-party-guardrails-policies.md)
+ [Third-party guardrail reference](policy-third-party-guardrails-reference.md)

## Supported providers
<a name="policy-3p-supported-providers"></a>

Each provider has a provider ID. You use the ID to register the provider on a policy engine, and as the namespace for the provider’s checks in policies.


| Provider | Provider ID and namespace | Provider documentation | 
| --- | --- | --- | 
| Check Point (Check Point AI Guardrails) |  `CheckPoint`  |  [Check Point AI Guardrails API documentation](https://docs.lakera.ai/docs/api/guard)  | 
| Netskope AI Guardrails |  `Netskope`  |  [Netskope AI Guardrails documentation](https://docs.netskope.com/en/ai-guardrails)  | 
| Prompt Security |  `PromptSecurity`  |  [Prompt Security](https://www.sentinelone.com/platform/prompt-security-agentic-ai-security/)  | 
| Rubrik Agent Cloud |  `Rubrik`  |  [Rubrik Agent Cloud documentation](https://docs.rubrik.com/en-us/saas/agent_cloud/agent_cloud_RSC.html)  | 
| Zscaler AI Guard |  `Zscaler`  |  [Zscaler AI Guard documentation](https://help.zscaler.com/ai-guard)  | 

For the checks, categories, and results each provider supports, see [Third-party guardrail reference](policy-third-party-guardrails-reference.md).

## How it works
<a name="policy-3p-how-it-works"></a>

1. Create an account with the provider and get an API key, following the provider’s documentation.

1. Store the API key as an API key credential provider in AgentCore Identity.

1. Register the provider on a policy engine. The registration names the provider ID, the credential provider, and, optionally, your provider URL. AgentCore verifies the API key with the provider when you register it.

1. Write policies that call the provider’s checks, in the form `<Namespace>::<GuardrailType>([<categories>], [<content>])`.

1. When a request reaches a gateway that uses the engine, Policy in AgentCore calls the provider with your API key and evaluates your policy against the result.

Checks for the same provider in one evaluation are combined into a single request to that provider where possible.

**Content sent to the provider**  
When a policy calls a third-party check, Policy in AgentCore sends the content that you define in the policy to the provider. The provider processes that content under your agreement with the provider. Review the provider’s terms and data handling before you use the provider with your content.

## Failure behavior
<a name="policy-3p-fail-closed"></a>

Third-party checks fail closed, like every guardrail check. If the provider can’t be reached, rejects the API key, or returns an error, the request or response is denied, and a streamed response ends. The provider’s availability and rate limits therefore affect your gateway. For details, see [When a guardrail check fails](policy-guardrails-in-policies.md#guardrail-check-failures).

## Streamed responses and request masking
<a name="policy-3p-streaming"></a>

Third-party checks work with the `interruptOutput`, `redactOutput`, and `redactInput` effects, the same way Amazon Bedrock Guardrails checks do. For the checks that you can use with each effect, see [Guardrail checks for each effect](policy-guardrails-streaming.md#policy-guardrails-streaming-checks). For how the gateway screens a streamed response and masks a request, see [Screen streamed responses with guardrails](policy-guardrails-streaming.md) and [Mask sensitive information in requests](policy-guardrails-redact-input.md).

Each evaluation of a streamed response calls the provider with all the text received so far, so a long response results in several calls to the provider. Take this into account for the provider’s rate limits and pricing. For when the gateway evaluates a streamed response, see [When you receive the text](policy-guardrails-streaming.md#policy-guardrails-streaming-timing).

## Regional availability
<a name="policy-3p-regional-availability"></a>

For the Regions where third-party guardrail providers are available, see [Guardrails regional availability](policy-guardrails-in-policies.md#guardrails-regional-availability).