SDKs

Add governance to your AI applications in minutes. Available for Python, Node.js, and Go.

🐍

Python

Python 3.8+
pip install control-zero

Quick Start

python
from control_zero import ControlZero
from langchain_openai import ChatOpenAI
cz = ControlZero(api_key="cz_...")
llm = cz.wrap(ChatOpenAI(model="gpt-4"))
response = llm.invoke("Hello!")
📦

Node.js

Node 18+
npm install @controlzero/sdk

Quick Start

node.js
import { ControlZero } from '@controlzero/sdk';
import { ChatOpenAI } from '@langchain/openai';
const cz = new ControlZero({ apiKey: 'cz_...' });
const llm = cz.wrap(new ChatOpenAI({ model: 'gpt-4' }));
const response = await llm.invoke('Hello!');
🔵

Go

Go 1.19+
go get github.com/controlzeroai/control-zero-go

Quick Start

go
import "github.com/controlzeroai/controlzero"
cz := controlzero.New(
controlzero.WithAPIKey("cz_..."),
)
client := cz.Wrap(openai.NewClient())
response, _ := client.Chat.Complete(ctx, req)

All SDKs Include

🔐

Secret Injection

API keys injected at runtime

🛡️

Policy Enforcement

Local policy evaluation

📊

Audit Logging

Every call tracked

Zero Latency

No proxy, no overhead

Need a different language?

We're adding more SDKs based on community demand. Let us know what you need!

Request an SDK