CL-0 SDK
An SDK for AI agents working with insurance
Clarity Labs is an applied AI research lab building the infrastructure for AI to work safely with insurance.
CL-0 SDK is an SDK for AI agents working with insurance. Any product or agent can import it to understand, reason about, and act on insurance. Provider-agnostic — works with Anthropic, OpenAI, Google, or any model via the Vercel AI SDK.
Capabilities
Document Extraction
Multi-pass pipeline that turns insurance PDFs into structured data — coverages, limits, exclusions, sections — with page-level provenance.
Agent System
Composable prompt modules for building insurance-aware conversational agents across email, chat, SMS, Slack, and Discord.
Application Processing
Prompt builders for detecting application forms, extracting fields, auto-filling from context, batching questions, and filling PDFs.
Install
npm install @claritylabs-inc/cl-sdk ai pdf-lib
import { classifyDocumentType, extractFromPdf, applyExtracted } from "@claritylabs-inc/cl-sdk";
const { documentType } = await classifyDocumentType(pdfBase64);
const { extracted } = await extractFromPdf(pdfBase64);
const fields = applyExtracted(extracted);
Get started
Quickstart
Install CL-0 SDK and run your first extraction in minutes.
Architecture
Understand the multi-pass extraction pipeline and how components fit together.
Model Configuration
Configure models per pipeline pass — or bring any provider.
API Reference
Full reference for every exported function and type.