kaizen-security
v0.2.0
Published
Runtime security for AI agents. Inspect every action, learn normal behaviour, flag what falls outside it, and block known-bad.
Maintainers
Readme
Kaizen Security
Runtime security for the AI agents you build. Attach Kaizen to an agent and it inspects every action (a tool call, a connection, a file or data access), learns the agent's normal behaviour, and flags what falls outside it. It can also block known-bad outright. It runs in your environment, as the action happens.
Docs: docs.getkaizen.io · Console: app.getkaizen.io · Source: github.com/getkaizen/kaizen-security
Install
npm install kaizen-securityQuickstart
import { Kaizen } from "kaizen-security";
const kz = new Kaizen({ apiKey: "kz_live_...", agent: "support-bot" });
const verdict = await kz.inspect({ tool: "issue_refund", target: "api.stripe.com" });
if (verdict.blocked) throw new Error(verdict.reason);Create a key in the console under API keys.
Vercel AI SDK
Wrap your tools so Kaizen inspects every call. A blocked call returns a refusal to the model instead of executing.
import { guardTools } from "kaizen-security/vercel";
const tools = guardTools(kz, { lookupOrder, issueRefund });How it decides
Kaizen evaluates in two stages: a deterministic check on every action (the learned baseline plus your declaration), and a selective reasoning check (your model, your key) for the cases a rule cannot settle. See how Kaizen decides.
Observation depth
The SDK is the lightest way to attach, and it is cooperative: it sees what you route through it. For ground truth, route the agent's egress through the Kaizen sidecar. The same Observer and the same verdict serve every attachment. See observation depth.
There is a Python SDK too: pip install kaizen-security.
License
Apache-2.0
