Skip to main content
CrowdStrike AIDR provides AI Detection and Response capabilities for scanning LLM inputs and outputs. It can block or sanitize text depending on configured rules.

Get Started with CrowdStrike

Using CrowdStrike AIDR with Portkey

1. Add CrowdStrike Credentials to Portkey

  • Navigate to the Integration page under Sidebar
  • Click on the edit button for the CrowdStrike AIDR integration
  • Add your CrowdStrike API credentials

2. Add CrowdStrike’s Guardrail Check

  • Navigate to the Guardrails page and click the Create button
  • Search for Guard Chat Completions and click Add
  • Configure your guardrail settings
  • Set any actions you want on your check, and create the Guardrail!
Guardrail Actions allow you to orchestrate your guardrails logic. You can learn them here
Check NameDescriptionParametersSupported Hooks
Guard Chat CompletionsPass LLM Input and Output to CrowdStrike’s guard_chat_completions endpoint. Able to block or sanitize text depending on configured rules.Redact, TimeoutbeforeRequestHook, afterRequestHook
Parameters:
ParameterTypeDefaultDescription
redactbooleanfalseIf true, detected harmful content will be redacted
timeoutnumber5000Timeout in milliseconds

3. Add Guardrail ID to a Config and Make Your Request

  • When you save a Guardrail, you’ll get an associated Guardrail ID - add this ID to the input_guardrails or output_guardrails params in your Portkey Config
  • Create these Configs in Portkey UI, save them, and get an associated Config ID to attach to your requests. More here.
Here’s an example config:
{
  "input_guardrails": ["guardrails-id-xxx", "guardrails-id-yyy"],
  "output_guardrails": ["guardrails-id-xxx", "guardrails-id-yyy"]
}
const portkey = new Portkey({
    apiKey: "PORTKEY_API_KEY",
    config: "pc-***" // Supports a string config id or a config object
});
For more, refer to the Config documentation. Your requests are now guarded by CrowdStrike AIDR and you can see the Verdict and any action you take directly on Portkey logs!

Get Support

If you face any issues with the CrowdStrike AIDR integration, just ping the Portkey team on the community forum.
Last modified on February 6, 2026