Skip to Content
ZeroLeaksDocs

ZeroLeaks documentation

Red-team AI agents from your code or CI, add runtime prompt defenses, or run the source-available ZeroLeaks scan engine.

ZeroLeaks red-teams AI agents. It profiles the agent's role, tools, and reachable data, derives the boundaries it must not cross, and tests those boundaries on every scan.

Choose a product

Compare products

ProductBest forRuns whereAPI key
@zeroleaks/sdkRuntime and endpoint agent scans, plus skill scansZeroLeaks orchestration plus your runnerZEROLEAKS_API_KEY
@zeroleaks/shieldRuntime protection in an LLM request pathHosted API for default detection; your application for local helpersZEROLEAKS_API_KEY for hosted detection; none for local helpers
zeroleaksLocal scans, including system-prompt extraction tests, research, and custom scan enginesYour machine or CI runnerOPENROUTER_API_KEY

For most production agents, run SDK runtime scans against the real agent and add Shield for runtime defense in depth. Use the zeroleaks package when you need local control over the scanning engine.

Protect your API key

Use ZeroLeaks API keys only on a server. Keep them in a server-side environment variable or secret manager, and never include them in browser bundles, mobile applications, source control, or logs.

On this page