Dev-001Developer platform
Protect an agent in one request.
Send a prompt, response, tool call, or MCP definition to the inspection API before your agent acts. Six deterministic detectors return allow, flag, or block with structured evidence.
- Step 01
Create a key
Sign up and mint an oton_sk_ key. The raw secret is shown once.
- Step 02
Wrap the model call
Use the SDK guard or call POST /api/inspect directly.
- Step 03
Enforce the verdict
Block critical/high findings and review aggregate telemetry.
5-minute quickstartTypeScript SDK
Use the SDK.
The client works in Node.js 18+, Bun, Deno, and edge runtimes. It retries transient failures and provides typed verdicts and findings.
Install
npm install @otonomi/sdk # first npm release pending — see /docs/sdk to install from the repoGuard a model call
import { Otonomi, guard } from '@otonomi/sdk';
const security = guard(new Otonomi(process.env.OTONOMI_API_KEY));
const { output } = await security.chat(
userMessage,
() => runYourModel(userMessage),
{ extract: (result) => result.output }
);Reference indexDocumentation