Overview

DriftGate is a governance runtime for AI agents in production. It provides a policy enforcement layer between your application and downstream services, ensuring every execution is governed, audited, and compliant.

DriftGate is not a model proxy. It does not sit in the LLM request path. Instead, it wraps the execution of agent workflows — evaluating policies, enforcing SLAs, gating approvals, and emitting audit logs at runtime.

TypeScript
import { driftgate } from "@driftgate/sdk"

// Initialize the client
const client = driftgate({
  apiKey: process.env.DRIFTGATE_API_KEY,
  workspace: "my-workspace"
})

// Run a governed workflow
const result = await client.run({
  workflow: "refund-agent",
  input: { orderId: "ord_123" }
})

console.log(result.status)    // "completed"
console.log(result.auditId)   // "aud_abc123"
console.log(result.cost)      // { tokens: 1523, usd: 0.003 }