Get Started
Quickstart
Add governance to your AI agents in under 5 minutes.
3 lines of code
Under 5 minutes
1
Install the SDK
bash
npm install @omega/sdk2
Initialize the Client
typescript
import { Omega } from "@omega/sdk";
const omega = new Omega({
apiKey: process.env.OMEGA_API_KEY!,
});3
Judge a Decision
typescript
const verdict = await omega.judge({
intent: "wire_transfer",
amount: 50000,
destination: "external_account",
agent_id: "fin_controller_01",
context: {
customer_tier: "VIP",
risk_profile: "low",
}
});
if (verdict.outcome === "BLOCK") {
throw new Error(verdict.reason);
}
if (verdict.outcome === "ESCALATE") {
await escalateToHuman(verdict);
return;
}
// Proceed with action
await executeTransfer();4
Handle the Response
typescript
// Verdict structure
{
outcome: "ALLOW" | "BLOCK" | "ESCALATE",
risk_score: 0.42,
risk_level: "MEDIUM",
policy_match: "policy_7a_wire_limits",
reason: "Amount within VIP threshold",
requires_human: false,
audit_id: "aud_9f8a7c2b...",
episode_id: "ep_7d3f9a1e...",
latency_ms: 12,
signature: "hmac-sha256:..."
}