ZeroLeaks

ZeroLeaks Developer Documentation

Integrate hosted AI red-team scans, runtime prompt defenses, or the open-source ZeroLeaks scan engine.

ZeroLeaks Developer Documentation

ZeroLeaks gives developers three complementary ways to secure AI applications: a hosted scanning SDK, a lightweight runtime Shield SDK, and the open-source zeroleaks scan engine.

Choose a product

How they fit together

ProductBest forRuns whereCredential
@zeroleaks/sdkProduction-fidelity runtime, endpoint, prompt, and skill scansZeroLeaks orchestration plus your runnerZEROLEAKS_API_KEY
@zeroleaks/shieldRuntime protection in an LLM request pathYour applicationNone for core features
zeroleaksLocal scans, research, and custom scan enginesYour machine or CI runnerOPENROUTER_API_KEY

For most production applications, use SDK runtime scans to exercise the real agent and Shield for runtime defense in depth. Use the zeroleaks package when you need local control over the scanning engine.

Security note

ZeroLeaks API keys are server credentials. 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