← klaro.services
SentinelConsentraKlaroShieldBundlesPricing

Docs

@klaroshield/sdk — everything checked against the actual shipped code.

← Back to KlaroShield

Getting started

npm install @klaroshield/sdk
import { Klaro, retries, budget, secrets, pii, logging } from "@klaroshield/sdk";
import OpenAI from "openai";

const openai = new OpenAI();

const klaro = new Klaro()
  .use(retries({ max: 3, backoff: "exponential" }))
  .use(budget({ maxMonthlyUsd: 50 }))
  .use(secrets({ mode: "mask" }))
  .use(pii({ mode: "mask" }))
  .use(logging({ format: "pretty" }));

const chat = klaro.wrap(
  openai.chat.completions.create.bind(openai.chat.completions)
);
Middleware Reference
Every option for retries(), budget(), secrets(), pii(), validation(), and logging() — with the actual defaults and behavior, not just the type signature.
CLI Reference
Every command — init, doctor, inspect, stats, explain, simulate, benchmark, dashboard, telemetry — what it does and what its output actually looks like.
Local Dashboard
Architecture, storage, security, and troubleshooting for klaro dashboard.
Klaro Studio
Build your pipeline visually and export a real klaro.config.ts — runs entirely in your browser.
Recipes
27 copy-paste-ready code examples across providers, frameworks, and patterns.
Privacy & Telemetry
Exactly what the SDK's anonymous telemetry sends, what it never sends, and how to disable it.