SDKs

Add governance in minutes.

Python leads with 11+ framework integrations. Node.js (beta) covers Anthropic, Google, OpenAI, LangChain, Vercel AI, and OpenAI Agents. Wrap your existing LLM client. Everything else stays the same.

01

Python

Python 3.8+
$ pip install controlzero
Documentation

Quick Start

python
import controlzero
from controlzero.integrations.openai import wrap_openai
import openai
cz = controlzero.init(api_key="cz_live_...")
client = wrap_openai(openai.OpenAI(), cz)
# Every call is governed + audited automatically
response = client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": prompt}]
)
02

Node.js

BETA
Node 18+
$ npm config set @controlzero:registry https://npm.controlzero.ai && npm install @controlzero/sdk
Documentation

Quick Start

javascript
import { Client } from '@controlzero/sdk';
import { wrapOpenAI } from '@controlzero/sdk/integrations';
import OpenAI from 'openai';
const cz = await Client.create({ apiKey: 'cz_live_...' });
const client = wrapOpenAI(new OpenAI(), cz);
// Every call is governed + audited automatically
const response = await client.chat.completions.create({
model: 'gpt-4',
messages: [{ role: 'user', content: prompt }],
});

Included in every SDK

All SDKs Include

Policy Enforcement

Policy is evaluated in your process, against a cached signed bundle.

Audit Logging

Every decision recorded with full context. Append-only audit trail.

Policy Sync

The SDK re-checks for a published policy on its next guarded call once a 60-second TTL has elapsed. A failed refresh keeps the last good bundle.

No Round Trip

In-process evaluation against a cached bundle. No proxy and no sidecar, and the decision itself makes no network call.

Full documentation at docs.controlzero.ai

Guides, API reference, and examples for every SDK.