Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@crowdstrike/aidr-openai

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crowdstrike/aidr-openai

A wrapper around the OpenAI TypeScript library that wraps the Responses API with CrowdStrike AIDR

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

CrowdStrike AIDR + OpenAI TypeScript API Library

A wrapper around the OpenAI TypeScript library that wraps the Responses API with CrowdStrike AIDR. Supports Node.js v22 and greater.

Installation

npm install @crowdstrike/aidr-openai

Usage

import { AidrOpenAI } from "@crowdstrike/aidr-openai";

const client = new AidrOpenAI({
  apiKey: process.env.OPENAI_API_KEY,
  aidrApiKey: process.env.AIDR_API_KEY,
});

const response = await client.responses.create({
  model: "gpt-4o-mini",
  instructions: "You are a helpful assistant.",
  input: "Are semicolons optional in JavaScript?",
});

console.log(response.output_text);

Azure OpenAI

To use this library with Azure OpenAI, use the AidrAzureOpenAI class with an Azure base URL.

import { AidrAzureOpenAI } from "@crowdstrike/aidr-openai";

const client = new AidrAzureOpenAI({
  baseURL: "https://YOUR-RESOURCE-NAME.openai.azure.com/openai/v1/",
  apiKey: process.env.AZURE_OPENAI_API_KEY,
  aidrApiKey: process.env.AIDR_API_KEY,
});

const response = await client.responses.create({
  model: "gpt-4o-mini",
  instructions: "You are a helpful assistant.",
  input: "Are semicolons optional in JavaScript?",
});

console.log(response.output_text);

FAQs

Package last updated on 15 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts