Runtime security for AI agents. Inspect every action, learn normal behaviour, flag what falls outside it, and block known-bad.
Project description
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
pip install kaizen-security
The core is dependency-free and stdlib-only.
Quickstart
from kaizen_security import Kaizen
kz = Kaizen(api_key="kz_live_...", agent="support-bot")
verdict = kz.inspect(tool="issue_refund", target="api.stripe.com")
if verdict.blocked:
raise RuntimeError(verdict.reason)
Wrap a tool so it is checked automatically
@kz.guard(tool="send_email")
def send_email(to, body):
...
A blocked action raises KaizenBlocked.
Declare what an agent should do
Tell Kaizen the tools and destinations an agent is expected to use. Anything outside the declaration is flagged as undeclared.
kz.declare(tools=["lookup_order", "issue_refund"], destinations=["api.stripe.com"])
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; you only change how deeply you see. See observation depth.
License
Apache-2.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kaizen_security-0.2.0.tar.gz.
File metadata
- Download URL: kaizen_security-0.2.0.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e583f3552066570d89e5d25ebd99e7ab13c36891334f1d873f1d64f1c8d3e40
|
|
| MD5 |
b7018ac92069ba2fc98db1437e06d058
|
|
| BLAKE2b-256 |
c7ef1e78d82ef7a29439eb007710b4653fe320e6b2bd9c817d73d898889d4ae5
|
File details
Details for the file kaizen_security-0.2.0-py3-none-any.whl.
File metadata
- Download URL: kaizen_security-0.2.0-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de0c775edaf44cd821babdc6defb3a4f895d6dbdedf8f921e9c960ff5ced3bf3
|
|
| MD5 |
26c8165e5a899b6d3e7a0528631a4dca
|
|
| BLAKE2b-256 |
8e6cc89ad8ba1c58c3e97d6083657652b9eaea77c9500b52b4dd6055525a50a4
|