Documentation Index
Fetch the complete documentation index at: https://docs.complior.ai/llms.txt
Use this file to discover all available pages before exploring further.
@complior/sdk is an npm library that wraps LLM clients with a compliance pipeline. Every API call passes through: pre-hooks → LLM call → post-hooks. All checks are deterministic (regex + rules).
Quick start
Two modes
| Mode | Function | Features |
|---|---|---|
| Basic | complior(client, config) | Core hooks: prohibited, sanitize, disclosure, bias, escalation |
| Agent | compliorAgent(client, { passport }) | All core hooks + passport enforcement: permissions, rate-limit, budget, action-log |
Agent mode (passport enforcement)
All Hooks
6 pre-hooks + 8 post-hooks in detail.
Providers
OpenAI, Anthropic, Google, Vercel AI.