Skip to content

Install

Installation

Install Redactum using your preferred package manager. Requires Node.js 18+ and TypeScript 4.5+ (for TypeScript users).

bash
pnpm add redactum
bash
yarn add redactum
bash
npm install redactum

Providers

Redactum includes native adapters for popular AI/ML frameworks and SDKs. These adapters automatically redact sensitive data before it reaches external services.

ProviderPackageDocumentation
OpenAIopenaiplatform.openai.com
Anthropic@anthropic-ai/sdkdocs.anthropic.com
LangChain@langchain/corejs.langchain.com
LlamaIndexllamaindexts.llamaindex.ai
Vercel AI SDKaisdk.vercel.ai

Zero Dependencies

The core redactum package has zero runtime dependencies. Provider packages are optional peer dependencies that are only loaded when you use the specific integrations.

Module Systems

Redactum supports ESM and CommonJS with TypeScript definitions included.

typescript
import { redactum } from "redactum";
javascript
const { redactum } = require("redactum");