Skip to main content

Install

TypeScript needs Node.js 18 or newer. Python needs 3.10 or newer. Both SDKs have no runtime dependencies.

Get an API key

Create a key in the console under API keys. The key authenticates detection, telemetry, and capture. Keep it on the server.

Scan a prompt

Guard a model call

wrap inspects the payload first. A blocked request never reaches the model.
The blocked body mirrors an OpenAI error envelope, so a client that already handles provider errors needs no new branch.

Protect personal data

Add a cloak option and give it the identity the data belongs to.

Read more about Cloak

Next steps

Decorate a client

Wrap the completions function you already call, including streams.

Validate tool calls

Stop an action, not just a prompt.