Skip to main content

Bairav developer documentation

Bairav governs AI agents. It finds them, scores their risk, enforces your policies on what they do, and keeps a tamper-evident record of every governed action. This site shows you how to connect your own software to it.

Choose how to connect​

You want toUseCredentialStart here
Govern every model call an application makesAI Gateway: change one base URLGateway key, bst_Gateway quickstart
Discover agents running on Windows hostsSensorSensor token, bst_Sensor quickstart
Feed security events from your own toolsIngest APIIngest token, obt_Security events
Send OpenTelemetry GenAI tracesOTLP receiverIngest token, obt_OpenTelemetry traces
Assess your software supply chainSBOM upload from CIIngest token, obt_SBOM upload
Automate administrationPortal APISession token from sign-inAuthentication

You can combine them. The most common start is the gateway for application calls plus the sensor for discovery.

How the pieces fit​

  1. Discover. Agents appear in the Intake queue from the sensor, the gateway (the first call from a new agent name registers it) or an import.
  2. Decide. A reviewer approves or rejects each one. Approving assigns a permanent AGT-###### ID and the agent enters the Registry.
  3. Govern. Policies decide each action: block, require_approval, flag or notify. Try it out shows the effect of a change before you make it.
  4. Prove. Every decision and lifecycle change is written to the Audit ledger, a hash-chained record you can verify and export.

Words used consistently​

SayNot
Agentbot, assistant
Policyrule, guardrail (a guardrail is one kind of policy)
Suspend (reversible) / Block (not reversible)pause, ban
Audit ledgerlog, history
Intake queueinbox

Before you rely on the API reference​

The API reference is generated from the Bairav source and published for a chosen set of operations. Request bodies are fully described. Many response bodies are not yet typed in the source, so some operations show an open response schema. The guides give verified response examples for the calls you will use first.

Calls are not versioned: paths are under /api/. Read the changelog before upgrading a deployment.