Back to Documentation

SDK Documentation

Integrate ADLIBO security into your application with our official SDKs. Available for JavaScript, Python, and PHP.

Quick Start

1. Get your API Key

Create an API key from your dashboard. Keys start with al_live_ or al_test_.

2. Install the SDK

npm install @adlibo/sdk

3. Analyze your first prompt

import Adlibo from '@adlibo/sdk';

const adlibo = new Adlibo({ apiKey: 'al_live_...' });

const result = await adlibo.analyze({
  text: 'User input to check for injection'
});

if (!result.safe) {
  console.log('Injection detected!', result.action);
}

Available Clients

Prompt Guard

adlibo.analyze()Full prompt analysis with risk scoring
adlibo.detect()Quick injection detection
adlibo.sanitize()Sanitize malicious prompts

Hallucination Guard

adlibo.hallucination.analyze()Verify AI output against sources
adlibo.hallucination.correct()Submit RLHF corrections
adlibo.hallucination.isTrustworthy()Quick trust check

DataShield

adlibo.datashield.tokenize()Tokenize sensitive data before LLM
adlibo.datashield.rehydrate()Restore original data after LLM
adlibo.datashield.protect()Full tokenize-send-rehydrate flow

DLP (Legacy)

adlibo.dlp.analyze()Analyze text for sensitive data patterns
adlibo.dlp.redact()Redact sensitive data

Resources

Documentation API - ADLIBO | Adlibo