← klaro.services
SentinelConsentraKlaroShieldBundlesPricing

Klaro Studio

Build your pipeline visually. Export a real klaro.config.ts — nothing runs server-side, nothing is sent anywhere.

← Back to KlaroShield
klaro.config.ts
import { Klaro, retries, budget, secrets, pii, logging } from "@klaroshield/sdk";
import OpenAI from "openai";

const openai = new OpenAI();

export 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" }));

// Wrap your existing AI call:
export const chat = klaro.wrap(
  openai.chat.completions.create.bind(openai.chat.completions)
);

Runs entirely in your browser. Nothing here is sent to a server — same local-first rule as the SDK itself.